[Game Interactor] Add LoadGame and ExitGame hooks (#2542)

* add loadgame/exitgame GI hooks

* implement loadgame/exitgame hooks in game code

* move entrance tracker data lifecycle to hooks

* update cosmetic editor to update onloadgame hook
This commit is contained in:
Adam Bird
2023-02-26 23:04:57 -05:00
committed by GitHub
parent 17aeec4b13
commit f7bb807940
10 changed files with 47 additions and 21 deletions
+1
View File
@@ -206,6 +206,7 @@ static bool ResetHandler(std::shared_ptr<Ship::Console> Console, std::vector<std
SET_NEXT_GAMESTATE(&gPlayState->state, TitleSetup_Init, GameState);
gPlayState->state.running = false;
GameInteractor::Instance->ExecuteHooks<GameInteractor::OnExitGame>(gSaveContext.fileNum);
return CMD_SUCCESS;
}