mirror of
https://github.com/dborth/vbagx.git
synced 2025-02-19 20:12:45 +01:00
"Unsaved progress will be lost. Are you sure?" on Reset or exit game.
This commit is contained in:
parent
8451552bd7
commit
8f6b66091e
@ -1248,15 +1248,20 @@ static int MenuGame()
|
||||
menu = MENU_GAME_LOAD;
|
||||
}
|
||||
else if(resetBtn.GetState() == STATE_CLICKED)
|
||||
{
|
||||
if (WindowPrompt("Reset Game", "Usaved progress will be lost. Are you sure?", "OK", "Cancel"))
|
||||
{
|
||||
emulator.emuReset();
|
||||
menu = MENU_EXIT;
|
||||
}
|
||||
}
|
||||
else if(gameSettingsBtn.GetState() == STATE_CLICKED)
|
||||
{
|
||||
menu = MENU_GAMESETTINGS;
|
||||
}
|
||||
else if(mainmenuBtn.GetState() == STATE_CLICKED)
|
||||
{
|
||||
if (WindowPrompt("Exit Game", "Usaved progress will be lost. Are you sure?", "OK", "Cancel"))
|
||||
{
|
||||
if(gameScreenImg)
|
||||
{
|
||||
@ -1275,6 +1280,7 @@ static int MenuGame()
|
||||
#endif
|
||||
menu = MENU_GAMESELECTION;
|
||||
}
|
||||
}
|
||||
else if(closeBtn.GetState() == STATE_CLICKED)
|
||||
{
|
||||
menu = MENU_EXIT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user