summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorJohn Peterson <jpeterson57@gmail.com>2009-02-08 10:10:47 +0000
committerJohn Peterson <jpeterson57@gmail.com>2009-02-08 10:10:47 +0000
commit6ecbc237dbff316cb133e506d5191f53bd635c2f (patch)
tree035e8acabdbcb412aa47a93cddb4a422200f119c /Source
parentf610f7e1979788b5db9c4fd6ac96dab81c27b0ab (diff)
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
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/Src/ActionReplay.cpp4
1 files changed, 3 insertions, 1 deletions
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;
}