diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2009-08-24 01:11:20 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2009-08-24 01:11:20 +0000 |
| commit | 22ddbd9ff0506c32564637ac1d73fbcc54222ab3 (patch) | |
| tree | cda4614791e3de17a64713f0fe761e58ace56d75 /apps/plugins/bubbles.c | |
| parent | 97548f34d767f14de3fafc2333cfeac97ab36151 (diff) | |
| download | rockbox-22ddbd9ff0506c32564637ac1d73fbcc54222ab3.zip rockbox-22ddbd9ff0506c32564637ac1d73fbcc54222ab3.tar.gz rockbox-22ddbd9ff0506c32564637ac1d73fbcc54222ab3.tar.bz2 rockbox-22ddbd9ff0506c32564637ac1d73fbcc54222ab3.tar.xz | |
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
Diffstat (limited to 'apps/plugins/bubbles.c')
| -rw-r--r-- | apps/plugins/bubbles.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c index ebf2051..697f690 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; |