diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-12-25 20:11:18 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-12-25 20:11:18 +0000 |
commit | 20b662a946861b5acee8970948a22f7a2d1aedf3 (patch) | |
tree | 392d9568a3baaa23be0e109799485255ddcd067f /apps/plugins/test_gfx.c | |
parent | 16784598ac550dab147ea8ee15634a2f15739fff (diff) | |
download | rockbox-20b662a946861b5acee8970948a22f7a2d1aedf3.tar.gz rockbox-20b662a946861b5acee8970948a22f7a2d1aedf3.zip |
rbpaths: Add new special dir HOME_DIR for RaaA.
HOME_DIR is intended for not-so-advanced files which shall be user
visible, and thus not in /.rockbox. Therefore HOME_DIR is translated
to $HOME on RaaA, /sdcard on android, the internal memory on ypr0
and "/" on native targets.
ROCKBOX_DIR ("/.rockbox") already existed as special and is translated
to whatever the real rockbox dir is on the target (e.g. /sdcard/rockbox
on android), but it's not suitable for some files we generate
(e.g. battery-bench.txt).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31430 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/test_gfx.c')
-rw-r--r-- | apps/plugins/test_gfx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/test_gfx.c b/apps/plugins/test_gfx.c index 4081e64d13..1dfab8c3b4 100644 --- a/apps/plugins/test_gfx.c +++ b/apps/plugins/test_gfx.c | |||
@@ -46,7 +46,7 @@ static int log_init(void) | |||
46 | char logfilename[MAX_PATH]; | 46 | char logfilename[MAX_PATH]; |
47 | int fd; | 47 | int fd; |
48 | 48 | ||
49 | rb->create_numbered_filename(logfilename, "/", "test_gfx_log_", ".txt", | 49 | rb->create_numbered_filename(logfilename, HOME_DIR, "test_gfx_log_", ".txt", |
50 | 2 IF_CNFN_NUM_(, NULL)); | 50 | 2 IF_CNFN_NUM_(, NULL)); |
51 | fd = rb->open(logfilename, O_RDWR|O_CREAT|O_TRUNC, 0666); | 51 | fd = rb->open(logfilename, O_RDWR|O_CREAT|O_TRUNC, 0666); |
52 | return fd; | 52 | return fd; |