From 22ddbd9ff0506c32564637ac1d73fbcc54222ab3 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 24 Aug 2009 01:11:20 +0000 Subject: 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(-) (limited to 'apps/plugins') diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c index ebf2051f1c..697f690458 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; -- cgit v1.2.3