Skip to content

Commit cb80268

Browse files
DisablePushState (#149)
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent 94d1e4c commit cb80268

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

MarathonRecomp/patches/player_patches.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,3 +183,8 @@ bool ControllableSpinkick()
183183
{
184184
return Config::ControllableSpinkick;
185185
}
186+
187+
bool DisablePushState()
188+
{
189+
return Config::DisablePushState;
190+
}

MarathonRecomp/user/config_def.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ CONFIG_DEFINE_ENUM_LOCALISED("Video", EUIAlignmentMode, UIAlignmentMode, EUIAlig
7777
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableDWMRoundedCorners, false);
7878
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableTitleInputDelay, false);
7979
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableKingdomValleyMist, false);
80+
CONFIG_DEFINE_HIDDEN("Codes", bool, DisablePushState, false);
8081
CONFIG_DEFINE_HIDDEN("Codes", bool, HUDToggleKey, false);
8182
CONFIG_DEFINE_HIDDEN("Codes", bool, SkipIntroLogos, false);
8283
CONFIG_DEFINE_HIDDEN("Codes", bool, FixPowerUpJingleDuration, false);

MarathonRecompLib/config/Marathon.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,3 +337,8 @@ jump_address = 0x8258E308
337337
name = "NOP"
338338
address = 0x8258E600
339339
jump_address = 0x8258E604
340+
341+
[[midasm_hook]]
342+
name = "DisablePushState"
343+
address = 0x821A03F0
344+
jump_address_on_true = 0x821A03FC

0 commit comments

Comments
 (0)