aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorJohannes Schickel2014-06-05 16:35:07 +0200
committerJohannes Schickel2014-06-05 16:35:07 +0200
commit960e16009c634e4060ffd892b19834b49ddfcbe9 (patch)
tree430d24ad348f8d144a029434552de59fc6baf03b /base
parent559c10e91af05b846355156a439ce873d8e241e3 (diff)
downloadscummvm-rg350-960e16009c634e4060ffd892b19834b49ddfcbe9.tar.gz
scummvm-rg350-960e16009c634e4060ffd892b19834b49ddfcbe9.tar.bz2
scummvm-rg350-960e16009c634e4060ffd892b19834b49ddfcbe9.zip
BASE: Allow 'all' to enable all debug channels via CLI too.
Diffstat (limited to 'base')
-rw-r--r--base/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 1fa75d5e9c..7451c007a4 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -222,7 +222,9 @@ static Common::Error runGame(const EnginePlugin *plugin, OSystem &system, const
Common::StringTokenizer tokenizer(edebuglevels, " ,");
while (!tokenizer.empty()) {
Common::String token = tokenizer.nextToken();
- if (!DebugMan.enableDebugChannel(token))
+ if (token.equalsIgnoreCase("all"))
+ DebugMan.enableAllDebugChannels();
+ else if (!DebugMan.enableDebugChannel(token))
warning(_("Engine does not support debug level '%s'"), token.c_str());
}