Fix Windmill Isle Act 1 (Night) chip 'hint' not being shown

This commit is contained in:
DeaTh-G 2025-02-24 19:45:23 +01:00
parent 0b16633ee1
commit 7e6511db77
2 changed files with 18 additions and 6 deletions

View file

@ -108,3 +108,21 @@ PPC_FUNC(sub_82586698)
__imp__sub_82586698(ctx, base);
}
// Disable only certain hints coming from invisible hints
PPC_FUNC_IMPL(__imp__sub_82736E80);
PPC_FUNC(sub_82736E80)
{
// GroupID parameter text
auto* groupId = (const char*)g_memory.Translate(PPC_LOAD_U32(ctx.r3.u32 + 256));
// WhiteIsland_ACT1_001 (Windmill Isle Act 1 Night, Start)
// Your friend went off that way, Sonic.
// Quick, let's go after him!
if (!Config::Hints && strcmp(groupId, "WhiteIsland_ACT1_001"))
{
return;
}
__imp__sub_82736E80(ctx, base);
}

View file

@ -106,12 +106,6 @@ jump_address = 0x82468EE0
name = "ResetScoreOnRestartMidAsmHook"
address = 0x82304374
# Disable hint volumes
[[midasm_hook]]
name = "DisableHintsMidAsmHook"
address = 0x827A2504
jump_address_on_true = 0x827A251C
# Disable hint rings
[[midasm_hook]]
name = "DisableHintsMidAsmHook"