summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2006-12-19 11:05:07 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2006-12-19 11:05:07 +0000
commit6f4f58916417bdd11f2faf8339a0e94a039ca7a8 (patch)
treeacaf3664befaf58ab0f81982607b96024a00eac1
parent5833f05acb5b5bac65eee5a7698afbcc58ff2231 (diff)
downloadrockbox-6f4f58916417bdd11f2faf8339a0e94a039ca7a8.tar.gz
rockbox-6f4f58916417bdd11f2faf8339a0e94a039ca7a8.zip
Force saving settings to disk on shutdown. Better an extra disk write
than losing settings (this shouldnt be needed, so a better fix is being looked into) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11814 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 155027b1bf..b5c1dc28b9 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -556,6 +556,7 @@ bool settings_parseline(char* line, char** name, char** value)
static void system_flush(void)
{
tree_flush();
+ settings_save();
call_ata_idle_notifys(true); /*doesnt work on usb and shutdown from ata thread */
}
@@ -569,6 +570,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
#ifdef SIMULATOR
(void)callback;
(void)parameter;
+ settings_save();
call_ata_idle_notifys(true);
exit(0);
#else