mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Makes quit game option return to menu instead of rebooting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user