Skip to content

Fix time savers not applying with boot to debug warp#6151

Merged
serprex merged 1 commit intoHarbourMasters:developfrom
serprex:fix-debug-warp-time-savers
Jan 18, 2026
Merged

Fix time savers not applying with boot to debug warp#6151
serprex merged 1 commit intoHarbourMasters:developfrom
serprex:fix-debug-warp-time-savers

Conversation

@serprex
Copy link
Contributor

@serprex serprex commented Jan 17, 2026

@mergify
Copy link
Contributor

mergify bot commented Jan 17, 2026

⚠️ The sha of the head commit of this PR conflicts with #6150. Mergify cannot evaluate rules on this PR. ⚠️

@serprex serprex force-pushed the fix-debug-warp-time-savers branch from e16c3af to 9ddb8ce Compare January 17, 2026 17:28
@serprex serprex changed the title Fix debug warp time savers Fix time savers not applying with boot to debug warp Jan 17, 2026
@serprex serprex requested a review from garrettjoecox January 17, 2026 17:32
Copy link
Contributor

@garrettjoecox garrettjoecox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the correct fix, this will cause all "OnLoadGame" hooks to fire every time the scene changes.

We probably instead need to manually invoke GameInteractor_ExecuteOnLoadGame within the boot sequence somewhere

@garrettjoecox
Copy link
Contributor

I'm busy most of today working on 2ship stuff but tomorrow I can try getting this working if you haven't already

@serprex serprex force-pushed the fix-debug-warp-time-savers branch 2 times, most recently from 343c936 to f17349d Compare January 17, 2026 20:35
@serprex serprex requested a review from garrettjoecox January 17, 2026 20:35
@garrettjoecox
Copy link
Contributor

@serprex I think this alone should do the trick

diff --git i/soh/src/overlays/gamestates/ovl_select/z_select.c w/soh/src/overlays/gamestates/ovl_select/z_select.c
index 7f15d3971..47c546608 100644
--- i/soh/src/overlays/gamestates/ovl_select/z_select.c
+++ w/soh/src/overlays/gamestates/ovl_select/z_select.c
@@ -13,6 +13,7 @@
 #include "soh/Enhancements/randomizer/randomizer_grotto.h"
 #include "soh/OTRGlobals.h"
 #include "soh/ResourceManagerHelpers.h"
+#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
 
 void Select_SwitchBetterWarpMode(SelectContext* this, u8 isBetterWarpMode);
 void Sram_InitDebugSave(void);
@@ -32,6 +33,7 @@ void Select_LoadGame(SelectContext* this, s32 entranceIndex) {
         gSaveContext.magic = 0;
         gSaveContext.magicCapacity = 0;
         gSaveContext.magicLevel = gSaveContext.magic;
+        GameInteractor_ExecuteOnLoadGame(gSaveContext.fileNum);
     }
     for (int buttonIndex = 0; buttonIndex < ARRAY_COUNT(gSaveContext.buttonStatus); buttonIndex++) {
         gSaveContext.buttonStatus[buttonIndex] = BTN_ENABLED;

@serprex serprex force-pushed the fix-debug-warp-time-savers branch from f17349d to 8ebf865 Compare January 18, 2026 23:09
@serprex serprex merged commit be0f8fe into HarbourMasters:develop Jan 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants