Skip to content

Commit

Permalink
Rename OnPauseMenu to OnKaleidoUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
mckinlee committed Feb 12, 2024
1 parent c80adcc commit b8f175f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion soh/soh/Enhancements/game-interactor/GameInteractor.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class GameInteractor {

DEFINE_HOOK(OnFileDropped, void(std::string filePath));
DEFINE_HOOK(OnAssetAltChange, void());
DEFINE_HOOK(OnPauseMenu, void());
DEFINE_HOOK(OnKaleidoUpdate, void());

// Helpers
static bool IsSaveLoaded();
Expand Down
4 changes: 2 additions & 2 deletions soh/soh/Enhancements/game-interactor/GameInteractor_Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,6 @@ void GameInteractor_RegisterOnAssetAltChange(void (*fn)(void)) {

//MARK: Pause Menu

void GameInteractor_ExecuteOnPauseMenu() {
GameInteractor::Instance->ExecuteHooks<GameInteractor::OnPauseMenu>();
void GameInteractor_ExecuteOnKaleidoUpdate() {
GameInteractor::Instance->ExecuteHooks<GameInteractor::OnKaleidoUpdate>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void GameInteractor_ExecuteOnSetGameLanguage();
void GameInteractor_RegisterOnAssetAltChange(void (*fn)(void));

//Mark: - Pause Menu
void GameInteractor_ExecuteOnPauseMenu();
void GameInteractor_ExecuteOnKaleidoUpdate();

#ifdef __cplusplus
}
Expand Down
2 changes: 1 addition & 1 deletion soh/soh/Enhancements/mods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ void RegisterPauseMenuHooks() {
return;
}
if (!pauseWarpHooksRegistered) {
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnPauseMenu>([]() {PauseWarp_HandleSelection();});
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnKaleidoUpdate>([]() {PauseWarp_HandleSelection();});
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnGameFrameUpdate>([]() {
PauseWarp_Execute();
});
Expand Down
2 changes: 1 addition & 1 deletion soh/src/code/z_kaleido_scope_call.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void KaleidoScopeCall_Update(PlayState* play) {
KaleidoMgrOverlay* kaleidoScopeOvl = &gKaleidoMgrOverlayTable[KALEIDO_OVL_KALEIDO_SCOPE];
PauseContext* pauseCtx = &play->pauseCtx;

GameInteractor_ExecuteOnPauseMenu();
GameInteractor_ExecuteOnKaleidoUpdate();

if (!gSaveContext.sohStats.gameComplete &&
(!IS_BOSS_RUSH || !gSaveContext.isBossRushPaused)) {
Expand Down

0 comments on commit b8f175f

Please sign in to comment.