From ba4c9ada3d3c3bea16ecede06705c6fa3f1c1e20 Mon Sep 17 00:00:00 2001 From: Nemoumbra Date: Sat, 7 Nov 2026 18:59:54 +0300 Subject: [PATCH] Better func replacement comments --- Core/HLE/ReplaceTables.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/HLE/ReplaceTables.h b/Core/HLE/ReplaceTables.h index 9afb2cbf37..ce5eb139e0 100644 --- a/Core/HLE/ReplaceTables.h +++ b/Core/HLE/ReplaceTables.h @@ -51,9 +51,9 @@ typedef int (* ReplaceFunc)(MIPSState *mips); enum { // Used to keep things around but disable them. REPFLAG_DISABLED = 0x02, - // Note that this will re-execute in a function that loops at start. + // Executes the replacement, then the original instruction (note: this will re-execute if a function loops here.) REPFLAG_HOOK = 0x04, - // Only hooks jr ra, so only use on funcs that have that. + // Finds 'jr ra' instructions and hooks only them, so only use on funcs that have that. REPFLAG_HOOKEXIT = 0x08, // Function may take a lot of time and execute in slices (executed multiple times.) REPFLAG_SLICED = 0x10, @@ -65,7 +65,7 @@ struct ReplacementTableEntry { ReplaceFunc replaceFunc; MIPSComp::MIPSReplaceFunc jitReplaceFunc; int flags; - s32 hookOffset; + s32 hookOffset; // hook's offset from the function's start (only for REPFLAG_HOOK) }; void Replacement_Init();