Fix magic being zeroed out when using fast file select (#3389)

* Move to frame counter init to a place that fast file select also touches

* Undo removing old fix

* Reset on gameover
This commit is contained in:
Josh Bodner
2023-11-14 14:08:45 -08:00
committed by GitHub
parent ba987c49e2
commit fb45b66903
3 changed files with 10 additions and 0 deletions
+1
View File
@@ -207,6 +207,7 @@ static bool ResetHandler(std::shared_ptr<LUS::Console> Console, std::vector<std:
return 1;
}
gPlayState->gameplayFrames = 0;
SET_NEXT_GAMESTATE(&gPlayState->state, TitleSetup_Init, GameState);
gPlayState->state.running = false;
GameInteractor::Instance->ExecuteHooks<GameInteractor::OnExitGame>(gSaveContext.fileNum);