mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Implemented hooks for disabling hints
This commit is contained in:
parent
0cae5feba9
commit
ce95692d8a
2 changed files with 18 additions and 1 deletions
|
|
@ -72,6 +72,11 @@ void CSDOffsetMidAsmHook(PPCRegister& f1, PPCRegister& f2)
|
|||
}
|
||||
}
|
||||
|
||||
bool DisableHintsMidAsmHook()
|
||||
{
|
||||
return !Config::Hints;
|
||||
}
|
||||
|
||||
/* Hook function that gets the game region
|
||||
and force result to zero for Japanese
|
||||
to display the correct logos. */
|
||||
|
|
|
|||
|
|
@ -130,4 +130,16 @@ registers = ["f1", "f2"]
|
|||
name = "CSDOffsetMidAsmHook"
|
||||
address = 0x830C0A78
|
||||
registers = ["f1", "f2"]
|
||||
return = true
|
||||
return = true
|
||||
|
||||
# Disable hint volumes
|
||||
[[midasm_hook]]
|
||||
name = "DisableHintsMidAsmHook"
|
||||
address = 0x827A2504
|
||||
jump_address_on_true = 0x827A251C
|
||||
|
||||
# Disable hint rings
|
||||
[[midasm_hook]]
|
||||
name = "DisableHintsMidAsmHook"
|
||||
address = 0x827A2E34
|
||||
jump_address_on_true = 0x827A2E4C
|
||||
Loading…
Add table
Reference in a new issue