From dabda369ca41f1426cd43a493c5999cd9b28f396 Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Sat, 9 Nov 2024 14:54:44 +0000 Subject: [PATCH] patches: move XButtonHoming hook to player_patches --- UnleashedRecomp/patches/misc_patches.cpp | 5 ----- UnleashedRecomp/patches/player_patches.cpp | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/UnleashedRecomp/patches/misc_patches.cpp b/UnleashedRecomp/patches/misc_patches.cpp index 616ee73..a130764 100644 --- a/UnleashedRecomp/patches/misc_patches.cpp +++ b/UnleashedRecomp/patches/misc_patches.cpp @@ -32,11 +32,6 @@ void WerehogBattleMusicMidAsmHook(PPCRegister& r11) r11.u8 = 3; } -void SetXButtonHomingMidAsmHook(PPCRegister& r30) -{ - r30.u32 = Config::XButtonHoming; -} - /* Hook function that gets the game region and force result to zero for Japanese to display the correct logos. */ diff --git a/UnleashedRecomp/patches/player_patches.cpp b/UnleashedRecomp/patches/player_patches.cpp index a926a31..1420f6a 100644 --- a/UnleashedRecomp/patches/player_patches.cpp +++ b/UnleashedRecomp/patches/player_patches.cpp @@ -89,3 +89,8 @@ void PostUnleashMidAsmHook(PPCRegister& r30) m_isUnleashCancelled = false; } } + +void SetXButtonHomingMidAsmHook(PPCRegister& r30) +{ + r30.u32 = Config::XButtonHoming; +}