Skip to content

Commit b4f9b8c

Browse files
ControllableTeleportDash (#143)
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent dae8dec commit b4f9b8c

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
@@ -160,3 +160,8 @@ PPC_FUNC(sub_82195500)
160160

161161
__imp__sub_82195500(ctx, base);
162162
}
163+
164+
bool ControllableTeleportDash()
165+
{
166+
return Config::ControllableTeleportDash;
167+
}

MarathonRecomp/user/config_def.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,6 @@ CONFIG_DEFINE_HIDDEN("Codes", bool, TailsGauge, false);
8888
CONFIG_DEFINE_HIDDEN("Codes", bool, PlayerDebugMode, false);
8989
CONFIG_DEFINE_HIDDEN("Codes", bool, MidairControlForMachSpeed, false);
9090
CONFIG_DEFINE_HIDDEN("Codes", bool, MidairControlForSnowboards, false);
91+
CONFIG_DEFINE_HIDDEN("Codes", bool, ControllableTeleportDash, false);
9192

9293
CONFIG_DEFINE("Update", time_t, LastChecked, 0);

MarathonRecompLib/config/Marathon.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,3 +257,8 @@ name = "TitleTask_RedirectStateTransitionToOutroAnim"
257257
address = 0x82512C90
258258
registers = ["r31"]
259259
jump_address_on_true = 0x82512C9C
260+
261+
[[midasm_hook]]
262+
name = "ControllableTeleportDash"
263+
address = 0x8221C49C
264+
jump_address_on_true = 0x8221C4A0

0 commit comments

Comments
 (0)