From a61539bd4c69917712f3fd03aaa88999438afc3f Mon Sep 17 00:00:00 2001 From: kugel Date: Mon, 24 Aug 2009 01:11:20 +0000 Subject: [PATCH] Bubbles: Don't remove the savegame before actually resuming the saved game, as per dev mailing list discussion around the changes in r22143. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22487 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/bubbles.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c index ebf2051f1..697f69045 100644 --- a/apps/plugins/bubbles.c +++ b/apps/plugins/bubbles.c @@ -2231,8 +2231,6 @@ static bool bubbles_loadgame(struct game_context* bb) { rb->close(fd); - /* delete saved file */ - rb->remove(SAVE_FILE); return ret; } @@ -2378,14 +2376,12 @@ static int bubbles_menu(struct game_context* bb) { { case 0: /* resume game */ if (!resume) - { rb->splash(HZ/2, "Nothing to resume"); - break; - } else - { startgame = true; - } + + if(rb->file_exists(SAVE_FILE)) + rb->remove(SAVE_FILE); break; case 1: /* new game */ bb->level = startlevel; -- 2.11.4.GIT