mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Implemented XButtonHoming hook
This commit is contained in:
parent
56657a85f0
commit
52f751c6c8
2 changed files with 11 additions and 1 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
Loading…
Add table
Reference in a new issue