From c49074742c078840fdde7b684675cf7528f8711d Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 15 Aug 2015 10:00:49 +0200 Subject: [PATCH] Restore old assert message for unknown instruction The assert(0) that was introduced in PR #2811 is not user friendly since it has no explanation at all about what happened. Regular users probably won't think of looking at the log to get more information. --- Source/Core/Core/PowerPC/Interpreter/Interpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter.cpp index 68b8f2c484..349a235d64 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter.cpp @@ -295,7 +295,7 @@ void Interpreter::unknown_instruction(UGeckoInstruction _inst) i + 1, rGPR[i + 1], i + 2, rGPR[i + 2], i + 3, rGPR[i + 3]); - assert(0); + _assert_msg_(POWERPC, 0, "\nIntCPU: Unknown instruction %08x at PC = %08x last_PC = %08x LR = %08x\n", _inst.hex, PC, last_pc, LR); } void Interpreter::ClearCache()