forked from len0rd/rockbox
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
This commit is contained in:
parent
97548f34d7
commit
22ddbd9ff0
1 changed files with 3 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue