Skip to content

Commit 6b6579f

Browse files
committed
ControllableSpinkick
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent dc0da0e commit 6b6579f

3 files changed

Lines changed: 16 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 ControllableSpinkick()
165+
{
166+
return Config::ControllableSpinkick;
167+
}

MarathonRecomp/user/config_def.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,6 @@ CONFIG_DEFINE_HIDDEN("Codes", bool, TailsGauge, false);
8787
CONFIG_DEFINE_HIDDEN("Codes", bool, PlayerDebugMode, false);
8888
CONFIG_DEFINE_HIDDEN("Codes", bool, MidairControlForMachSpeed, false);
8989
CONFIG_DEFINE_HIDDEN("Codes", bool, MidairControlForSnowboards, false);
90+
CONFIG_DEFINE_HIDDEN("Codes", bool, ControllableSpinkick, false);
9091

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

MarathonRecompLib/config/Marathon.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,13 @@ registers = ["r8"]
263263
name = "MovieVoiceLang"
264264
address = 0x8264B4E4
265265
registers = ["r19"]
266+
267+
[[midasm_hook]]
268+
name = "ControllableSpinkick"
269+
address = 0x821A2984
270+
jump_address_on_true = 0x821A2988
271+
272+
[[midasm_hook]]
273+
name = "ControllableSpinkick"
274+
address = 0x821A7A04
275+
jump_address_on_true = 0x821A7A08

0 commit comments

Comments
 (0)