From abe3d9587796ff396ab1c1729b0b320f80f2d540 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 26 Jun 2013 07:56:36 -0700 Subject: [PATCH] Revert "Remove hack for BREAK in Sol Trigger" This reverts commit 3d2c3c722713fc7276ab5cec71b122dac9082ec7. This wasn't a hack dedicated to Sol Trigger. It helps other games, and keeping it is just like allowing games to continue on bad memory address reads. --- Core/MIPS/MIPSInt.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/MIPS/MIPSInt.cpp b/Core/MIPS/MIPSInt.cpp index ea8049f6e9..68f8e7b8f4 100644 --- a/Core/MIPS/MIPSInt.cpp +++ b/Core/MIPS/MIPSInt.cpp @@ -27,6 +27,7 @@ #include "MIPSInt.h" #include "MIPSTables.h" #include "Core/Reporting.h" +#include "Core/Config.h" #include "../HLE/HLE.h" #include "../System.h" @@ -191,7 +192,8 @@ namespace MIPSInt { Reporting::ReportMessage("BREAK instruction hit"); ERROR_LOG(CPU, "BREAK!"); - Core_UpdateState(CORE_STEPPING); + if (!g_Config.bIgnoreBadMemAccess) + Core_UpdateState(CORE_STEPPING); PC += 4; }