Initial Commit

This commit is contained in:
Patrick12115 2024-01-25 19:45:26 -05:00
parent 3e91d5565a
commit 05558d527e
2 changed files with 19 additions and 0 deletions

View File

@ -687,6 +687,23 @@ void RegisterMirrorModeHandler() {
});
}
void UpdatePatchDlist() {
if (CVarGetInteger("gRandomizeShuffleMasterSword", 0) && B_BTN_ITEM == ITEM_NONE) {
ResourceMgr_PatchGfxByName(gLinkAdultHylianShieldSwordAndSheathNearDL, "adultHylianShield", 75, gsSPEndDisplayList());
ResourceMgr_PatchGfxByName(gLinkAdultMasterSwordAndSheathNearDL, "adultMasterSword", 2, gsSPEndDisplayList());
}
else {
ResourceMgr_UnpatchGfxByName(gLinkAdultHylianShieldSwordAndSheathNearDL, "adultHylianShield");
ResourceMgr_UnpatchGfxByName(gLinkAdultMasterSwordAndSheathNearDL, "adultMasterSword");
}
}
void RegisterPatchDlistHandler() {
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnSceneInit>([](int32_t sceneNum) {
UpdatePatchDlist();
});
}
f32 triforcePieceScale;
void RegisterTriforceHunt() {
@ -1256,4 +1273,5 @@ void InitMods() {
RegisterRandomizedEnemySizes();
RegisterToTMedallions();
NameTag_RegisterHooks();
RegisterPatchDlistHandler();
}

View File

@ -12,6 +12,7 @@ void UpdateMirrorModeState(int32_t sceneNum);
void PatchToTMedallions();
void UpdatePermanentHeartLossState();
void InitMods();
void UpdatePatchDlist();
#ifdef __cplusplus
}