File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -718,6 +718,6 @@ void initMenuVars();
718
718
void assignCheatButtonCombo (uint32_t cheat);
719
719
void assignDisplayButtonCombo (uint32_t display);
720
720
void initArtAttackAssemblyOverwrites ();
721
- void initAssemblyOverwrites ();
721
+ void initAddressOverwrites ();
722
722
723
723
}
Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ void initArtAttackAssemblyOverwrites()
425
425
StartArtAttackHitboxes, BranchArtAttackHitboxes);
426
426
}
427
427
428
- void initAssemblyOverwrites ()
428
+ void initAddressOverwrites ()
429
429
{
430
430
#ifdef TTYD_US
431
431
void *PreventPreBattleSoftlockAddress = reinterpret_cast <void *>(0x800465CC );
@@ -546,6 +546,13 @@ void initAssemblyOverwrites()
546
546
*reinterpret_cast <uint32_t *>(BacktraceScreenPPCHaltBranchAddress) = 0x3B400000 ; // li r26,0
547
547
*reinterpret_cast <uint32_t *>(BacktraceScreenEndBranchAddress) = 0x4BFFFDD4 ; // b -0x22C
548
548
#endif
549
+
550
+ // Set the initial value for the debug mode variable, to allow backtrace screens before the title sequence begins
551
+ uint32_t tempTitleMainAddress = *reinterpret_cast <uint32_t *>(titleMainAddress);
552
+ if (tempTitleMainAddress != 0 )
553
+ {
554
+ *reinterpret_cast <int32_t *>(tempTitleMainAddress + 0x30 ) = -1 ;
555
+ }
549
556
}
550
557
551
558
void Mod::run ()
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ void Mod::init()
36
36
gMod = this ;
37
37
initMenuVars ();
38
38
initArtAttackAssemblyOverwrites ();
39
- initAssemblyOverwrites ();
39
+ initAddressOverwrites ();
40
40
actionCommandsTimingsInit ();
41
41
42
42
mPFN_makeKey_trampoline = patch::hookFunction (ttyd::system::makeKey, []()
You can’t perform that action at this time.
0 commit comments