diff --git a/MarathonRecomp/patches/player_patches.cpp b/MarathonRecomp/patches/player_patches.cpp index e39b8f3f5..f908c943d 100644 --- a/MarathonRecomp/patches/player_patches.cpp +++ b/MarathonRecomp/patches/player_patches.cpp @@ -160,3 +160,8 @@ PPC_FUNC(sub_82195500) __imp__sub_82195500(ctx, base); } + +bool ControllableTeleportDash() +{ + return Config::ControllableTeleportDash; +} diff --git a/MarathonRecomp/user/config_def.h b/MarathonRecomp/user/config_def.h index 27e104f49..80d274c72 100644 --- a/MarathonRecomp/user/config_def.h +++ b/MarathonRecomp/user/config_def.h @@ -87,5 +87,6 @@ CONFIG_DEFINE_HIDDEN("Codes", bool, TailsGauge, false); CONFIG_DEFINE_HIDDEN("Codes", bool, PlayerDebugMode, false); CONFIG_DEFINE_HIDDEN("Codes", bool, MidairControlForMachSpeed, false); CONFIG_DEFINE_HIDDEN("Codes", bool, MidairControlForSnowboards, false); +CONFIG_DEFINE_HIDDEN("Codes", bool, ControllableTeleportDash, false); CONFIG_DEFINE("Update", time_t, LastChecked, 0); diff --git a/MarathonRecompLib/config/Marathon.toml b/MarathonRecompLib/config/Marathon.toml index 36269892d..655cf6f90 100644 --- a/MarathonRecompLib/config/Marathon.toml +++ b/MarathonRecompLib/config/Marathon.toml @@ -252,3 +252,8 @@ name = "TitleTask_RedirectStateTransitionToOutroAnim" address = 0x82512C90 registers = ["r31"] jump_address_on_true = 0x82512C9C + +[[midasm_hook]] +name = "ControllableTeleportDash" +address = 0x8221C49C +jump_address_on_true = 0x8221C4A0