Add Script Cmd for Forcing Save Game (#6090)
Co-authored-by: ghoulslash <pokevoyager0@gmail.com>
This commit is contained in:
parent
cd84e07341
commit
774e61e74a
@ -2471,6 +2471,11 @@
|
||||
callnative Script_SetDifficulty, requests_effects=1
|
||||
.byte \difficulty
|
||||
.endm
|
||||
|
||||
.macro forcesave
|
||||
callnative Script_ForceSaveGame
|
||||
waitstate
|
||||
.endm
|
||||
|
||||
@ Makes the trainer unable to see the player if executed.
|
||||
@ This is a no-op if the player interacts with the trainer.
|
||||
|
||||
@ -1497,3 +1497,11 @@ static bool8 StartMenuDexNavCallback(void)
|
||||
CreateTask(Task_OpenDexNavFromStartMenu, 0);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void Script_ForceSaveGame(struct ScriptContext *ctx)
|
||||
{
|
||||
SaveGame();
|
||||
ShowSaveInfoWindow();
|
||||
gMenuCallback = SaveCallback;
|
||||
sSaveDialogCallback = SaveSavingMessageCallback;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user