diff options
author | Lorenzo Miori <memorys60@gmail.com> | 2013-07-26 21:21:21 +0200 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2013-09-27 09:21:05 +0200 |
commit | c300c1b58d53e1469040e86c66537ebb5d94241c (patch) | |
tree | 2bf44d362260529417f9cc8b81dbaed2994ea4b1 /firmware/screendump.c | |
parent | 4c6c8cd1aaf11ceea9e8e801f29e0c000fee7d32 (diff) | |
download | rockbox-c300c1b58d53e1469040e86c66537ebb5d94241c.tar.gz rockbox-c300c1b58d53e1469040e86c66537ebb5d94241c.zip |
screendump.c: use HOME_DIR instead of the hard-coded "" (root)
This adds the support for hosted or other
particular platforms, where the "root" ("home")
path is NOT "/" (or "").
The change affects screendump in particular.
Change-Id: I4c218d102fe12cc782aedb99d456e9f72679ea07
Reviewed-on: http://gerrit.rockbox.org/613
Reviewed-by: Thomas Martitz <kugel@rockbox.org>
Diffstat (limited to 'firmware/screendump.c')
-rw-r--r-- | firmware/screendump.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/screendump.c b/firmware/screendump.c index 0dfe79a69f..28c37610af 100644 --- a/firmware/screendump.c +++ b/firmware/screendump.c | |||
@@ -21,6 +21,7 @@ | |||
21 | 21 | ||
22 | #include "config.h" | 22 | #include "config.h" |
23 | #include "screendump.h" | 23 | #include "screendump.h" |
24 | #include "rbpaths.h" | ||
24 | 25 | ||
25 | #include "file.h" | 26 | #include "file.h" |
26 | #include "general.h" | 27 | #include "general.h" |
@@ -120,9 +121,9 @@ void screen_dump(void) | |||
120 | #endif | 121 | #endif |
121 | 122 | ||
122 | #if CONFIG_RTC | 123 | #if CONFIG_RTC |
123 | create_datetime_filename(filename, "", "dump ", ".bmp", false); | 124 | create_datetime_filename(filename, HOME_DIR, "dump ", ".bmp", false); |
124 | #else | 125 | #else |
125 | create_numbered_filename(filename, "", "dump_", ".bmp", 4 | 126 | create_numbered_filename(filename, HOME_DIR, "dump_", ".bmp", 4 |
126 | IF_CNFN_NUM_(, NULL)); | 127 | IF_CNFN_NUM_(, NULL)); |
127 | #endif | 128 | #endif |
128 | 129 | ||