Implemented XButtonHoming hook

This commit is contained in:
Hyper 2024-10-18 00:10:18 +01:00
parent 56657a85f0
commit 52f751c6c8
2 changed files with 11 additions and 1 deletions

View file

@ -162,6 +162,11 @@ bool DisableHintsMidAsmHook()
return !Config::Hints;
}
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. */

View file

@ -146,4 +146,9 @@ jump_address_on_true = 0x827A251C
[[midasm_hook]]
name = "DisableHintsMidAsmHook"
address = 0x827A2E34
jump_address_on_true = 0x827A2E4C
jump_address_on_true = 0x827A2E4C
[[midasm_hook]]
name = "SetXButtonHomingMidAsmHook"
address = 0x8237AC88
registers = ["r30"]