From 92aa270062b2b0ee1245b484318b26d26ca79a29 Mon Sep 17 00:00:00 2001 From: Kingcom Date: Sun, 16 Apr 2017 08:31:56 +0200 Subject: [PATCH] Align functions to up to 16 bytes in the function scanner --- pcsx2/DebugTools/MIPSAnalyst.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/DebugTools/MIPSAnalyst.cpp b/pcsx2/DebugTools/MIPSAnalyst.cpp index 864bc5abaa..fadd8d3258 100644 --- a/pcsx2/DebugTools/MIPSAnalyst.cpp +++ b/pcsx2/DebugTools/MIPSAnalyst.cpp @@ -294,7 +294,7 @@ namespace MIPSAnalyst if (end) { // most functions are aligned to 8 or 16 bytes // add the padding to this one - if (((addr+8) % 8) && r5900Debug.read32(addr+8) == 0) + while (((addr+8) % 16) && r5900Debug.read32(addr+8) == 0) addr += 4; currentFunction.end = addr + 4;