From beac8339c24c65d3bdbbd7696fa243c048edfdd2 Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Sun, 16 Feb 2025 10:27:58 +0000 Subject: [PATCH] Fix D-Pad support for bosses with 2D or overhead sections (#411) --- UnleashedRecompLib/config/SWA.toml | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/UnleashedRecompLib/config/SWA.toml b/UnleashedRecompLib/config/SWA.toml index 0d3e9bb..9f5fc2a 100644 --- a/UnleashedRecompLib/config/SWA.toml +++ b/UnleashedRecompLib/config/SWA.toml @@ -608,13 +608,13 @@ jump_address = 0x82585480 name = "LoadingScreenControllerMidAsmHook" address = 0x824DC9D4 -# SWA::Player::CPlayerSpeedPostureInputOnPath +# SWA::Player::CPlayerSpeedPostureInputOnPath / SWA::Player::CPlayerSpeedPostureInputForcePath / SWA::Player::CPlayerSpeedPostureInput2DStandard [[midasm_hook]] name = "PostureDPadSupportInvertYMidAsmHook" address = 0x8234F194 registers = ["r31", "f13", "f0"] -# SWA::Player::CPlayerSpeedPostureInputOnPathLocal +# SWA::Player::CPlayerSpeedPostureInputPathLocal [[midasm_hook]] name = "PostureDPadSupportMidAsmHook" address = 0x8234F610 @@ -722,7 +722,7 @@ name = "PostureDPadSupportXMidAsmHook" address = 0x8266B6AC registers = ["r29", "f0"] -# SWA::Player::CSonicStateStompingLand +# SWA::Player::CPlayerSpeedStateNormalDamageStandUp / SWA::Player::CSonicStateStartEvent / SWA::Player::CSonicStateStompingLand [[midasm_hook]] name = "PostureDPadSupportMidAsmHook" address = 0x8231F824 @@ -771,6 +771,30 @@ address = 0x82454104 registers = ["r29", "f28", "f27"] after_instruction = true +# SWA::CBossEggBeetle +[[midasm_hook]] +name = "PostureDPadSupportXMidAsmHook" +address = 0x829A4FCC +registers = ["r29", "f13"] + +# SWA::CBossEggRayBird (horizontal) +[[midasm_hook]] +name = "PostureDPadSupportXMidAsmHook" +address = 0x829BA7E0 +registers = ["r21", "f13"] + +# SWA::CBossEggRayBird (vertical) +[[midasm_hook]] +name = "PostureDPadSupportYMidAsmHook" +address = 0x829C53E8 +registers = ["r21", "f13"] + +# SWA::CBossEggLancer +[[midasm_hook]] +name = "PostureDPadSupportXMidAsmHook" +address = 0x82A55A48 +registers = ["r21", "f13"] + # SWA::CWorldMapCamera - disable rotation deadzone for touch [[midasm_hook]] name = "WorldMapDeadzoneMidAsmHook"