Skip to content

Commit

Permalink
suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
aMannus committed Feb 4, 2025
1 parent 1744f1f commit d269c10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion soh/soh/Enhancements/randomizer/LockOverworldDoors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ void RegisterLockOverworldDoors() {
});
}

static RegisterShipInitFunc initFunc(RegisterLockOverworldDoors, { "IS_RANDO" });
static RegisterShipInitFunc initFunc(RegisterLockOverworldDoors, { "ON_SAVEFILE_LOAD" });
2 changes: 0 additions & 2 deletions soh/soh/Enhancements/randomizer/hook_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2372,8 +2372,6 @@ void RandomizerRegisterHooks() {
static uint32_t shuffleFreestandingOnVanillaBehaviorHook = 0;

GameInteractor::Instance->RegisterGameHook<GameInteractor::OnLoadGame>([](int32_t fileNum) {
ShipInit::Init("IS_RANDO");

randomizerQueuedChecks = std::queue<RandomizerCheck>();
randomizerQueuedCheck = RC_UNKNOWN_CHECK;
randomizerQueuedItemEntry = GET_ITEM_NONE;
Expand Down
4 changes: 4 additions & 0 deletions soh/soh/OTRGlobals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,10 @@ extern "C" void InitOTR() {
VanillaItemTable_Init();
DebugConsole_Init();

GameInteractor::Instance->RegisterGameHook<GameInteractor::OnLoadGame>([](int32_t fileNum) {
ShipInit::Init("ON_SAVEFILE_LOAD");
});

InitMods();
ActorDB::AddBuiltInCustomActors();
// #region SOH [Randomizer] TODO: Remove these and refactor spoiler file handling for randomizer
Expand Down

0 comments on commit d269c10

Please sign in to comment.