Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions UnleashedRecomp/patches/player_patches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions UnleashedRecompLib/config/SWA.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down