forked from len0rd/rockbox
Unload tagcache from ram when entering USB mode.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10496 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
29b9146aa7
commit
c2eb67bc9f
3 changed files with 16 additions and 0 deletions
|
@ -1365,6 +1365,10 @@ void tree_flush(void)
|
|||
tagcache_stop_scan();
|
||||
playlist_shutdown();
|
||||
|
||||
#ifdef HAVE_TC_RAMCACHE
|
||||
tagcache_unload_ramcache();
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DIRCACHE
|
||||
if (global_settings.dircache)
|
||||
{
|
||||
|
@ -1387,6 +1391,10 @@ void tree_flush(void)
|
|||
|
||||
void tree_restore(void)
|
||||
{
|
||||
#ifdef HAVE_EEPROM
|
||||
firmware_settings.disk_clean = false;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DIRCACHE
|
||||
remove(DIRCACHE_FILE);
|
||||
if (global_settings.dircache)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue