From 9887deae7e1980af8fd375026311728d8bdf2a2d Mon Sep 17 00:00:00 2001 From: DeaTh-G Date: Mon, 24 Feb 2025 20:02:49 +0100 Subject: [PATCH] code style adjustments --- UnleashedRecomp/patches/misc_patches.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/UnleashedRecomp/patches/misc_patches.cpp b/UnleashedRecomp/patches/misc_patches.cpp index b78ee02b..a3189746 100644 --- a/UnleashedRecomp/patches/misc_patches.cpp +++ b/UnleashedRecomp/patches/misc_patches.cpp @@ -114,15 +114,13 @@ 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)); + auto* groupId = (const char*)(base + PPC_LOAD_U32(ctx.r3.u32 + 0x100)); // 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")) - { + if (!Config::Hints && strcmp(groupId, "WhiteIsland_ACT1_001") != 0) return; - } __imp__sub_82736E80(ctx, base); }