@@ -770,23 +770,20 @@ void initAddressOverwrites()
770
770
771
771
patch::writeBranchBL (FallThroughMostObjectsBowserAddress, reinterpret_cast <void *>(StartFallThroughMostObjectsBowser));
772
772
773
- patch::overwriteAddressValue (DebugModeInitialzeAddress, 0x3800FFFF ); // li r0,-1
773
+ *reinterpret_cast <uint32_t *>(DebugModeInitialzeAddress) = 0x3800FFFF ; // li r0,-1
774
+ *reinterpret_cast <uint32_t *>(DebugModeShowBuildDateAddress) = 0x60000000 ; // nop
774
775
775
- patch::overwriteAddressValue (DebugModeShowBuildDateAddress, 0x60000000 ); // nop
776
+ *reinterpret_cast <uint32_t *>(PauseMenuPartnerMenuAddress) = 0x60000000 ; // nop
777
+ *reinterpret_cast <uint32_t *>(PauseMenuBadgeMenuAddress) = 0x60000000 ; // nop
776
778
777
- patch::overwriteAddressValue (PauseMenuPartnerMenuAddress, 0x60000000 ) ; // nop
779
+ * reinterpret_cast < uint32_t *>(PreventImportantItemCutscenesAddress) = 0x48000030 ; // b 0x30
778
780
779
- patch::overwriteAddressValue (PauseMenuBadgeMenuAddress, 0x60000000 ); // nop
780
-
781
- patch::overwriteAddressValue (PreventImportantItemCutscenesAddress, 0x48000030 ); // b 0x30
782
-
783
- patch::overwriteAddressValue (msgWindowMrAddress, 0x38830001 ); // addi r4,r3,1
781
+ *reinterpret_cast <uint32_t *>(msgWindowMrAddress) = 0x38830001 ; // addi r4,r3,1
784
782
785
783
// Set the initial value for the debug mode variable
786
- int32_t *DebugModeVar = reinterpret_cast <int32_t *>(
787
- reinterpret_cast <uint32_t >(ttyd::seq_title::seqTitleWorkPointer2) + 0x30 );
788
-
789
- patch::overwriteAddressValue (DebugModeVar, static_cast <uint32_t >(-1 ));
784
+ *reinterpret_cast <int32_t *>(
785
+ reinterpret_cast <uint32_t >(
786
+ ttyd::seq_title::seqTitleWorkPointer2) + 0x30 ) = -1 ;
790
787
}
791
788
792
789
void Mod::run ()
0 commit comments