@@ -913,43 +913,43 @@ void initAddressOverwrites()
913
913
void *JumpOnWaterAddress = reinterpret_cast <void *>(0x80093CF0 );
914
914
#endif
915
915
916
- patch::writeBranchBL (AllowRunningFromBattlesAddress, reinterpret_cast < void *>( StartAllowRunningFromBattles) );
916
+ patch::writeBranchBL_Template (AllowRunningFromBattlesAddress, StartAllowRunningFromBattles);
917
917
918
- patch::writeBranchBL (ForceNPCItemDropAddress, reinterpret_cast < void *>( StartForceNPCItemDrop) );
918
+ patch::writeBranchBL_Template (ForceNPCItemDropAddress, StartForceNPCItemDrop);
919
919
920
- patch::writeBranchBL (ReplaceJumpAnimAddress, reinterpret_cast < void *>( StartReplaceJumpFallAnim) );
920
+ patch::writeBranchBL_Template (ReplaceJumpAnimAddress, StartReplaceJumpFallAnim);
921
921
922
- patch::writeBranchBL (DisplayBattleMenuJumpAddress, reinterpret_cast < void *>( StartDisplayMegaJumpBadgeBattleMenu) );
922
+ patch::writeBranchBL_Template (DisplayBattleMenuJumpAddress, StartDisplayMegaJumpBadgeBattleMenu);
923
923
924
- patch::writeBranchBL (DisplayBattleMenuHammerAddress, reinterpret_cast < void *>( StartDisplayMegaHammerBadgesBattleMenu) );
924
+ patch::writeBranchBL_Template (DisplayBattleMenuHammerAddress, StartDisplayMegaHammerBadgesBattleMenu);
925
925
926
- patch::writeBranchBL (FixBlooperCrash1Address, reinterpret_cast < void *>( StartFixBlooperCrash1) );
926
+ patch::writeBranchBL_Template (FixBlooperCrash1Address, StartFixBlooperCrash1);
927
927
928
- patch::writeBranchBL (FixBlooperCrash2Address, reinterpret_cast < void *>( StartFixBlooperCrash2) );
928
+ patch::writeBranchBL_Template (FixBlooperCrash2Address, StartFixBlooperCrash2);
929
929
930
- patch::writeBranchBL (PreventTextboxSelectionAddress, reinterpret_cast < void *>( StartPreventTextboxSelection) );
930
+ patch::writeBranchBL_Template (PreventTextboxSelectionAddress, StartPreventTextboxSelection);
931
931
932
- patch::writeBranchBL (DisableDPadOptionsDisplayAddress, reinterpret_cast < void *>( StartDisableDPadOptionsDisplay) );
932
+ patch::writeBranchBL_Template (DisableDPadOptionsDisplayAddress, StartDisableDPadOptionsDisplay);
933
933
934
- patch::writeBranchBL (FixEvtMapBlendSetFlagPartnerCrashAddress, reinterpret_cast < void *>( StartFixEvtMapBlendSetFlagPartnerCrash) );
934
+ patch::writeBranchBL_Template (FixEvtMapBlendSetFlagPartnerCrashAddress, StartFixEvtMapBlendSetFlagPartnerCrash);
935
935
936
- patch::writeBranchBL (FixEvtMapBlendSetFlagFollowerCrashAddress, reinterpret_cast < void *>( StartFixEvtMapBlendSetFlagFollowerCrash) );
936
+ patch::writeBranchBL_Template (FixEvtMapBlendSetFlagFollowerCrashAddress, StartFixEvtMapBlendSetFlagFollowerCrash);
937
937
938
- patch::writeBranchBL (PreventPouchInitMemoryLeakAddress, reinterpret_cast < void *>( preventPouchInitMemoryLeak) );
938
+ patch::writeBranchBL_Template (PreventPouchInitMemoryLeakAddress, preventPouchInitMemoryLeak);
939
939
940
- patch::writeBranchBL (InitStageEventsAddress, reinterpret_cast < void *>( initStageEvents) );
940
+ patch::writeBranchBL_Template (InitStageEventsAddress, initStageEvents);
941
941
942
- patch::writeBranchBL (FallThroughMostObjectsStandAddress, reinterpret_cast < void *>( StartFallThroughMostObjectsStandard) );
943
- patch::writeBranchBL (FallThroughMostObjectsTubeAddress, reinterpret_cast < void *>( StartFallThroughMostObjectsStandard) );
942
+ patch::writeBranchBL_Template (FallThroughMostObjectsStandAddress, StartFallThroughMostObjectsStandard);
943
+ patch::writeBranchBL_Template (FallThroughMostObjectsTubeAddress, StartFallThroughMostObjectsStandard);
944
944
945
- patch::writeBranchBL (FallThroughMostObjectsBowserAddress, reinterpret_cast < void *>( StartFallThroughMostObjectsBowser) );
945
+ patch::writeBranchBL_Template (FallThroughMostObjectsBowserAddress, StartFallThroughMostObjectsBowser);
946
946
947
- patch::writeBranchBL (AutoMashThroughText1Address, reinterpret_cast < void *>( autoMashText) );
948
- patch::writeBranchBL (AutoMashThroughText2Address, reinterpret_cast < void *>( autoMashText) );
949
- patch::writeBranchBL (AutoMashThroughText3Address, reinterpret_cast < void *>( autoMashText) );
947
+ patch::writeBranchBL_Template (AutoMashThroughText1Address, autoMashText);
948
+ patch::writeBranchBL_Template (AutoMashThroughText2Address, autoMashText);
949
+ patch::writeBranchBL_Template (AutoMashThroughText3Address, autoMashText);
950
950
951
951
#ifdef TTYD_EU
952
- patch::writeBranchBL (JumpOnWaterAddress, reinterpret_cast < void *>( StartJumpOnWater) );
952
+ patch::writeBranchBL_Template (JumpOnWaterAddress, StartJumpOnWater);
953
953
#endif
954
954
955
955
*reinterpret_cast <uint32_t *>(DebugModeInitialzeAddress) = 0x3800FFFF ; // li r0,-1
0 commit comments