summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-02-10 18:55:07 +0000
committerThomas Martitz <kugel@rockbox.org>2010-02-10 18:55:07 +0000
commitfa4ab10bbbd5b3588bc0e7057b338d1068939fda (patch)
tree6cc2de1e34c2910de721ed358f4f416845cfe26c
parentf47b706225cb3152275c5d67c71484fde7d051e1 (diff)
downloadrockbox-fa4ab10bbbd5b3588bc0e7057b338d1068939fda.tar.gz
rockbox-fa4ab10bbbd5b3588bc0e7057b338d1068939fda.tar.bz2
rockbox-fa4ab10bbbd5b3588bc0e7057b338d1068939fda.zip
Bubbles: Don't save scores when quit without saving is selected and reduce splash duration
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24586 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/bubbles.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c
index 76affa270b..2f7ead8d82 100644
--- a/apps/plugins/bubbles.c
+++ b/apps/plugins/bubbles.c
@@ -2369,7 +2369,7 @@ static int bubbles_menu_cb(int action, const struct menu_item_ex *this_item)
{
int i = ((intptr_t)this_item);
if(action == ACTION_REQUEST_MENUITEM
- && !resume && (i==0 || i==5))
+ && !resume && (i==0))
return ACTION_EXIT_MENUITEM;
return action;
}
@@ -2537,8 +2537,10 @@ enum plugin_status plugin_start(const void* parameter) {
break;
case BB_QUIT:
- rb->splash(HZ*1, "Saving game ...");
+ rb->splash(HZ/3, "Saving game ...");
bubbles_savegame(&bb);
+ bubbles_savedata();
+ highscore_save(SCORE_FILE, highscores, NUM_SCORES);
/* fall through */
case BB_QUIT_WITHOUT_SAVING:
@@ -2549,8 +2551,6 @@ enum plugin_status plugin_start(const void* parameter) {
break;
}
}
- bubbles_savedata();
- highscore_save(SCORE_FILE, highscores, NUM_SCORES);
rb->lcd_setfont(FONT_UI);
return ret;
}