From 6ecbc237dbff316cb133e506d5191f53bd635c2f Mon Sep 17 00:00:00 2001 From: John Peterson Date: Sun, 8 Feb 2009 10:10:47 +0000 Subject: [PATCH] ActionReplay: Made the BadCount message appear only in the debug builds git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2140 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/ActionReplay.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/ActionReplay.cpp b/Source/Core/Core/Src/ActionReplay.cpp index 2b1c18eb63..00c6881b1e 100644 --- a/Source/Core/Core/Src/ActionReplay.cpp +++ b/Source/Core/Core/Src/ActionReplay.cpp @@ -241,7 +241,9 @@ bool RunCode(const ARCode &arcode) { if (count == -1 || count < -2 || count > (int)code.ops.size()) { LogInfo("Bad Count: %i", count); - PanicAlert("Action Replay: Bad Count: %i (%s)", count, code.name.c_str()); + #if defined(_DEBUG) || defined(DEBUGFAST) + PanicAlert("Action Replay: Bad Count: %i (%s)", count, code.name.c_str()); + #endif return false; }