summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-08-12 15:18:25 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-08-12 15:18:25 +0000
commit13a24aaee6b6cc7f1142ffe0c0dff6b893a884e0 (patch)
tree49ae2005d6c7166ed70ecac8ffbc5adf49895d20 /apps/main.c
parent69cdc75a0f5dfb2405da165719b7d5384c3df73a (diff)
Fixed dircache hibernation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10549 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/main.c b/apps/main.c
index c21accb2aa..95e6663ba0 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -127,7 +127,11 @@ int init_dircache(bool preinit)
result = dircache_load(DIRCACHE_FILE);
remove(DIRCACHE_FILE);
if (result < 0)
+ {
firmware_settings.disk_clean = false;
+ if (global_settings.dircache_size >= 0)
+ dircache_build(global_settings.dircache_size);
+ }
return result;
}