From fa4ab10bbbd5b3588bc0e7057b338d1068939fda Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 10 Feb 2010 18:55:07 +0000 Subject: 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 --- apps/plugins/bubbles.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/plugins') 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; } -- cgit v1.2.3