aboutsummaryrefslogtreecommitdiff
path: root/common/debug.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2014-06-05 16:27:44 +0200
committerJohannes Schickel2014-06-05 16:27:44 +0200
commit450924a0c72bfdcdee627e2da4782853b94bd866 (patch)
treedf13fbf05220cc827873617f36ec1c37d246c16f /common/debug.cpp
parentd76c375c3f060db0912cce26b5b38b94cb3ad414 (diff)
parent025556d9a54b8b53c2cf8d3d6627d7ce2d42c934 (diff)
downloadscummvm-rg350-450924a0c72bfdcdee627e2da4782853b94bd866.tar.gz
scummvm-rg350-450924a0c72bfdcdee627e2da4782853b94bd866.tar.bz2
scummvm-rg350-450924a0c72bfdcdee627e2da4782853b94bd866.zip
Merge pull request #465 from digitall/debugRework
Add "all" option for debug flags to GUI::Debugger base class.
Diffstat (limited to 'common/debug.cpp')
-rw-r--r--common/debug.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/common/debug.cpp b/common/debug.cpp
index 58cc0287a8..b8c345e4f0 100644
--- a/common/debug.cpp
+++ b/common/debug.cpp
@@ -85,7 +85,6 @@ bool DebugManager::disableDebugChannel(const String &name) {
}
}
-
DebugManager::DebugChannelList DebugManager::listDebugChannels() {
DebugChannelList tmp;
for (DebugChannelMap::iterator i = gDebugChannels.begin(); i != gDebugChannels.end(); ++i)
@@ -95,6 +94,16 @@ DebugManager::DebugChannelList DebugManager::listDebugChannels() {
return tmp;
}
+void DebugManager::enableAllDebugChannels() {
+ for (DebugChannelMap::iterator i = gDebugChannels.begin(); i != gDebugChannels.end(); ++i)
+ enableDebugChannel(i->_value.name);
+}
+
+void DebugManager::disableAllDebugChannels() {
+ for (DebugChannelMap::iterator i = gDebugChannels.begin(); i != gDebugChannels.end(); ++i)
+ disableDebugChannel(i->_value.name);
+}
+
bool DebugManager::isDebugChannelEnabled(uint32 channel) {
// Debug level 11 turns on all special debug level messages
if (gDebugLevel == 11)