From ba07e46cf8c3f320603383d50ee5fea388f461b4 Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Sat, 25 Jun 2022 01:18:12 +0200 Subject: [PATCH] iR3000A: Cleanup variable scope. Codacy. --- pcsx2/x86/iR3000A.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcsx2/x86/iR3000A.cpp b/pcsx2/x86/iR3000A.cpp index 059e83b9b9..61ef6841ff 100644 --- a/pcsx2/x86/iR3000A.cpp +++ b/pcsx2/x86/iR3000A.cpp @@ -1288,13 +1288,14 @@ static void PreBlockCheck(u32 blockpc) extern void iDumpPsxRegisters(u32 startpc, u32 temp); static u32 lastrec = 0; - static int curcount = 0; - const int skip = 0; //*(int*)PSXM(0x27990) = 1; // enables cdvd bios output for scph10000 if ((psxdump & 2) && lastrec != blockpc) { + static int curcount = 0; + constexpr int skip = 0; + curcount++; if (curcount > skip)