path: root/apps/plugins/test_grey.c
diff options
authorThomas Martitz <>2011-12-25 20:11:18 +0000
committerThomas Martitz <>2011-12-25 20:11:18 +0000
commit20b662a946861b5acee8970948a22f7a2d1aedf3 (patch)
tree392d9568a3baaa23be0e109799485255ddcd067f /apps/plugins/test_grey.c
parent16784598ac550dab147ea8ee15634a2f15739fff (diff)
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:// a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/test_grey.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/test_grey.c b/apps/plugins/test_grey.c
index efceeff2c3..f4555c1eed 100644
--- a/apps/plugins/test_grey.c
+++ b/apps/plugins/test_grey.c
@@ -247,7 +247,7 @@ enum plugin_status plugin_start(const void* parameter)
case GREY_OK:
/* dump result in form suitable for lcdlinear[] */
- rb->create_numbered_filename(filename, "/", "test_grey_",
+ rb->create_numbered_filename(filename, HOME_DIR, "test_grey_",
".txt", 2 IF_CNFN_NUM_(, NULL));
fd = rb->open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
if (fd >= 0)