forked from len0rd/rockbox
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
This commit is contained in:
parent
16784598ac
commit
20b662a946
8 changed files with 54 additions and 52 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue