Skip to content

Commit

Permalink
rg_gui: Do not quit when save fails during "Save & Quit" action
Browse files Browse the repository at this point in the history
The user might want to retry or do something else, rather than abruptly lose progress.

This usually fails because of a corrupt or full SD card though, so the odds of success on retry aren't great...
  • Loading branch information
ducalex committed Aug 8, 2024
1 parent 007f098 commit a4313c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/retro-go/rg_gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ void rg_gui_game_menu(void)
switch (sel)
{
case 1000: if ((slot = rg_gui_savestate_menu("Save", 0, 0)) >= 0) rg_emu_save_state(slot); break;
case 2000: if ((slot = rg_gui_savestate_menu("Save", 0, 0)) >= 0) {rg_emu_save_state(slot); rg_system_exit();} break;
case 2000: if ((slot = rg_gui_savestate_menu("Save", 0, 0)) >= 0 && rg_emu_save_state(slot)) rg_system_exit(); break;
case 3001: if ((slot = rg_gui_savestate_menu("Load", 0, 0)) >= 0) rg_emu_load_state(slot); break;
case 3002: rg_emu_reset(false); break;
case 3003: rg_emu_reset(true); break;
Expand Down

0 comments on commit a4313c6

Please sign in to comment.