Implemented hooks for disabling hints

This commit is contained in:
Hyper committed 2024-10-17 22:25:14 +01:00
1 parent 0cae5feba9
commit ce95692d8a
2 files changed
+18 -1

No files matched your search

+5
View File
@@ -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. */
+13 -1
View File
@@ -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