From d48589f1087d814267f6843d3fe78563ecaf0930 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Mon, 1 Sep 2025 17:58:03 -0400 Subject: [PATCH] ControllableTeleportDash Signed-off-by: Isaac Marovitz --- MarathonRecomp/patches/player_patches.cpp | 5 +++++ MarathonRecomp/user/config_def.h | 1 + MarathonRecompLib/config/Marathon.toml | 5 +++++ 3 files changed, 11 insertions(+) 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 74bb2c5ff..da8f9551a 100644 --- a/MarathonRecompLib/config/Marathon.toml +++ b/MarathonRecompLib/config/Marathon.toml @@ -263,3 +263,8 @@ registers = ["r8"] name = "MovieVoiceLang" address = 0x8264B4E4 registers = ["r19"] + +[[midasm_hook]] +name = "ControllableTeleportDash" +address = 0x8221C49C +jump_address_on_true = 0x8221C4A0