diff options
-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()); } |