mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-07 12:11:22 -06:00
Fix XButtonHoming patch leaking state into other parameters (#640)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user