diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2006-12-19 11:05:07 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2006-12-19 11:05:07 +0000 |
commit | 6f4f58916417bdd11f2faf8339a0e94a039ca7a8 (patch) | |
tree | acaf3664befaf58ab0f81982607b96024a00eac1 | |
parent | 5833f05acb5b5bac65eee5a7698afbcc58ff2231 (diff) | |
download | rockbox-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.c | 2 |
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) | |||
556 | static void system_flush(void) | 556 | static void system_flush(void) |
557 | { | 557 | { |
558 | tree_flush(); | 558 | tree_flush(); |
559 | settings_save(); | ||
559 | call_ata_idle_notifys(true); /*doesnt work on usb and shutdown from ata thread */ | 560 | call_ata_idle_notifys(true); /*doesnt work on usb and shutdown from ata thread */ |
560 | } | 561 | } |
561 | 562 | ||
@@ -569,6 +570,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter) | |||
569 | #ifdef SIMULATOR | 570 | #ifdef SIMULATOR |
570 | (void)callback; | 571 | (void)callback; |
571 | (void)parameter; | 572 | (void)parameter; |
573 | settings_save(); | ||
572 | call_ata_idle_notifys(true); | 574 | call_ata_idle_notifys(true); |
573 | exit(0); | 575 | exit(0); |
574 | #else | 576 | #else |