From 6f4f58916417bdd11f2faf8339a0e94a039ca7a8 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 19 Dec 2006 11:05:07 +0000 Subject: 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 --- apps/misc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps') 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 -- cgit v1.2.3