diff --git a/MarathonRecomp/patches/player_patches.cpp b/MarathonRecomp/patches/player_patches.cpp index e48e01a6f..a3104b170 100644 --- a/MarathonRecomp/patches/player_patches.cpp +++ b/MarathonRecomp/patches/player_patches.cpp @@ -178,3 +178,8 @@ bool ControllableBoundAttack2(PPCCRRegister& cmp) return cmp.eq; } + +bool ControllableSpinkick() +{ + return Config::ControllableSpinkick; +} diff --git a/MarathonRecomp/user/config_def.h b/MarathonRecomp/user/config_def.h index 9b9a78c3b..6ff529718 100644 --- a/MarathonRecomp/user/config_def.h +++ b/MarathonRecomp/user/config_def.h @@ -90,5 +90,6 @@ CONFIG_DEFINE_HIDDEN("Codes", bool, MidairControlForMachSpeed, false); CONFIG_DEFINE_HIDDEN("Codes", bool, MidairControlForSnowboards, false); CONFIG_DEFINE_HIDDEN("Codes", bool, ControllableTeleportDash, false); CONFIG_DEFINE_HIDDEN("Codes", bool, ControllableBoundAttack, false); +CONFIG_DEFINE_HIDDEN("Codes", bool, ControllableSpinkick, false); CONFIG_DEFINE("Update", time_t, LastChecked, 0); diff --git a/MarathonRecompLib/config/Marathon.toml b/MarathonRecompLib/config/Marathon.toml index 3f06cc50d..c0dc500bf 100644 --- a/MarathonRecompLib/config/Marathon.toml +++ b/MarathonRecompLib/config/Marathon.toml @@ -279,3 +279,13 @@ address = 0x82217DC8 registers = ["cr6"] jump_address_on_true = 0x82217DD8 jump_address_on_false = 0x82217DCC + +[[midasm_hook]] +name = "ControllableSpinkick" +address = 0x821A2984 +jump_address_on_true = 0x821A2988 + +[[midasm_hook]] +name = "ControllableSpinkick" +address = 0x821A7A04 +jump_address_on_true = 0x821A7A08