BASE: Allow 'all' to enable all debug channels via CLI too.
This commit is contained in:
parent
559c10e91a
commit
960e16009c
1 changed files with 3 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue