mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Fix XButtonHoming patch leaking state into other parameters (#640)
This commit is contained in:
parent
fe06134bb1
commit
fd2fb745e0
2 changed files with 6 additions and 4 deletions
|
|
@ -95,9 +95,11 @@ void PostUnleashMidAsmHook(PPCRegister& r30)
|
|||
g_isUnleashCancelled = false;
|
||||
}
|
||||
|
||||
void SetXButtonHomingMidAsmHook(PPCRegister& r30)
|
||||
void SetXButtonHomingMidAsmHook(PPCRegister& r1)
|
||||
{
|
||||
r30.u32 = !Config::HomingAttackOnJump;
|
||||
auto pXButtonHoming = (bool*)(g_memory.base + r1.u32 + 0x63);
|
||||
|
||||
*pXButtonHoming = !Config::HomingAttackOnJump;
|
||||
}
|
||||
|
||||
// SWA::Player::CEvilSonicContext
|
||||
|
|
|
|||
|
|
@ -199,8 +199,8 @@ return_on_false = true
|
|||
|
||||
[[midasm_hook]]
|
||||
name = "SetXButtonHomingMidAsmHook"
|
||||
address = 0x8237AC88
|
||||
registers = ["r30"]
|
||||
address = 0x8237AC90
|
||||
registers = ["r1"]
|
||||
|
||||
# Down force HFR fix
|
||||
[[midasm_hook]]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue