Makes quit game option return to menu instead of rebooting

This commit is contained in:
infinitefusion
2022-07-21 10:19:20 -04:00
parent d3a7454930
commit 92bd2a3cf7

View File

@@ -265,14 +265,12 @@ class PokemonPauseMenu
}
elsif cmdEndGame >= 0 && command == cmdEndGame
@scene.pbHideMenu
if pbConfirmMessage(_INTL("Are you sure you want to quit the game?"))
if pbConfirmMessage(_INTL("Are you sure you want to quit the game and return to the main menu?"))
scene = PokemonSave_Scene.new
screen = PokemonSaveScreen.new(scene)
if screen.pbSaveScreen
@scene.pbEndScene
end
@scene.pbEndScene
$scene = nil
screen.pbSaveScreen
resetPlayerPosition
$game_temp.to_title = true
return
else
pbShowMenu