Skip to content

Commit c9224ff

Browse files
IsaacMarovitzhyperbx
authored andcommitted
RestoreChaosBoostJump
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent 06dfaee commit c9224ff

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

MarathonRecomp/patches/player_patches.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,12 @@ bool RestoreChaosSpearFlips()
188188
{
189189
return Config::RestoreChaosSpearFlips;
190190
}
191+
192+
void RestoreChaosBoostJump(PPCRegister& r10, PPCRegister& r11)
193+
{
194+
if (!Config::RestoreChaosBoostJump)
195+
return;
196+
197+
r10.u32 = 1;
198+
r11.u32 = 2;
199+
}

MarathonRecomp/user/config_def.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ CONFIG_DEFINE_HIDDEN("Codes", bool, UseOfficialTitleOnTitleBar, false);
8484
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableLowResolutionFontOnCustomUI, false);
8585
CONFIG_DEFINE_HIDDEN("Codes", bool, RestoreContextualHUDColours, false);
8686
CONFIG_DEFINE_HIDDEN("Codes", bool, RestoreChaosSpearFlips, false);
87+
CONFIG_DEFINE_HIDDEN("Codes", bool, RestoreChaosBoostJump, false);
8788
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableEdgeGrabLeftover, false);
8889
CONFIG_DEFINE_HIDDEN("Codes", bool, TailsGauge, false);
8990
CONFIG_DEFINE_HIDDEN("Codes", bool, PlayerDebugMode, false);

MarathonRecompLib/config/Marathon.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,3 +342,8 @@ jump_address = 0x8258E604
342342
name = "RestoreChaosSpearFlips"
343343
address = 0x821A6730
344344
jump_address_on_true = 0x821A6734
345+
346+
[[midasm_hook]]
347+
name = "RestoreChaosBoostJump"
348+
address = 0x821A6988
349+
registers = ["r10", "r11"]

0 commit comments

Comments
 (0)