mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Fixed dircache hibernation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10549 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
69cdc75a0f
commit
13a24aaee6
1 changed files with 4 additions and 0 deletions
|
@ -127,7 +127,11 @@ int init_dircache(bool preinit)
|
||||||
result = dircache_load(DIRCACHE_FILE);
|
result = dircache_load(DIRCACHE_FILE);
|
||||||
remove(DIRCACHE_FILE);
|
remove(DIRCACHE_FILE);
|
||||||
if (result < 0)
|
if (result < 0)
|
||||||
|
{
|
||||||
firmware_settings.disk_clean = false;
|
firmware_settings.disk_clean = false;
|
||||||
|
if (global_settings.dircache_size >= 0)
|
||||||
|
dircache_build(global_settings.dircache_size);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue