From 20b662a946861b5acee8970948a22f7a2d1aedf3 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 25 Dec 2011 20:11:18 +0000 Subject: 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 --- apps/plugins/battery_bench.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/battery_bench.c') diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c index be509cffcb..302d74c02a 100644 --- a/apps/plugins/battery_bench.c +++ b/apps/plugins/battery_bench.c @@ -24,7 +24,7 @@ #include "plugin.h" -#define BATTERY_LOG "/battery_bench.txt" +#define BATTERY_LOG HOME_DIR"/battery_bench.txt" #define BUF_SIZE 16000 #define EV_EXIT 1337 -- cgit v1.2.3