From c8a9ca748d0a3b1961f6577159a9de8ac4af60e7 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Fri, 22 Dec 2006 09:11:09 +0000 Subject: Try to make sure dircache state file on flashed H1xx targets is handled correctly and no old state is never used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11833 a1c6a512-1295-4272-9138-f99709370657 --- firmware/include/dircache.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'firmware/include/dircache.h') diff --git a/firmware/include/dircache.h b/firmware/include/dircache.h index 9c3bc68ddc..1483843a73 100644 --- a/firmware/include/dircache.h +++ b/firmware/include/dircache.h @@ -25,7 +25,8 @@ #define DIRCACHE_RESERVE (1024*64) #define DIRCACHE_LIMIT (1024*1024*6) -#define DIRCACHE_FILE ROCKBOX_DIR "/dircache.dat" +/* FIXME: We should use ROCKBOX_DIR here but it's defined in apps/ */ +#define DIRCACHE_FILE "/.rockbox/dircache.dat" /* Internal structures. */ struct travel_data { @@ -80,8 +81,8 @@ typedef struct { } DIRCACHED; void dircache_init(void); -int dircache_load(const char *path); -int dircache_save(const char *path); +int dircache_load(void); +int dircache_save(void); int dircache_build(int last_size); void* dircache_steal_buffer(long *size); bool dircache_is_enabled(void); -- cgit v1.2.3