summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-08-24 01:11:20 +0000
committerThomas Martitz <kugel@rockbox.org>2009-08-24 01:11:20 +0000
commit22ddbd9ff0506c32564637ac1d73fbcc54222ab3 (patch)
treecda4614791e3de17a64713f0fe761e58ace56d75
parent97548f34d767f14de3fafc2333cfeac97ab36151 (diff)
downloadrockbox-22ddbd9ff0506c32564637ac1d73fbcc54222ab3.tar.gz
rockbox-22ddbd9ff0506c32564637ac1d73fbcc54222ab3.zip
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
-rw-r--r--apps/plugins/bubbles.c10
1 files changed, 3 insertions, 7 deletions
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) {
2231 2231
2232 rb->close(fd); 2232 rb->close(fd);
2233 2233
2234 /* delete saved file */
2235 rb->remove(SAVE_FILE);
2236 return ret; 2234 return ret;
2237} 2235}
2238 2236
@@ -2378,14 +2376,12 @@ static int bubbles_menu(struct game_context* bb) {
2378 { 2376 {
2379 case 0: /* resume game */ 2377 case 0: /* resume game */
2380 if (!resume) 2378 if (!resume)
2381 {
2382 rb->splash(HZ/2, "Nothing to resume"); 2379 rb->splash(HZ/2, "Nothing to resume");
2383 break;
2384 }
2385 else 2380 else
2386 {
2387 startgame = true; 2381 startgame = true;
2388 } 2382
2383 if(rb->file_exists(SAVE_FILE))
2384 rb->remove(SAVE_FILE);
2389 break; 2385 break;
2390 case 1: /* new game */ 2386 case 1: /* new game */
2391 bb->level = startlevel; 2387 bb->level = startlevel;