diff options
author | Johannes Schickel | 2014-06-05 16:35:07 +0200 |
---|---|---|
committer | Johannes Schickel | 2014-06-05 16:35:07 +0200 |
commit | 960e16009c634e4060ffd892b19834b49ddfcbe9 (patch) | |
tree | 430d24ad348f8d144a029434552de59fc6baf03b | |
parent | 559c10e91af05b846355156a439ce873d8e241e3 (diff) | |
download | scummvm-rg350-960e16009c634e4060ffd892b19834b49ddfcbe9.tar.gz scummvm-rg350-960e16009c634e4060ffd892b19834b49ddfcbe9.tar.bz2 scummvm-rg350-960e16009c634e4060ffd892b19834b49ddfcbe9.zip |
BASE: Allow 'all' to enable all debug channels via CLI too.
-rw-r--r-- | base/main.cpp | 4 |
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()); } |