diff options
author | Max Horn | 2009-01-30 04:52:53 +0000 |
---|---|---|
committer | Max Horn | 2009-01-30 04:52:53 +0000 |
commit | 76deee02d6b2638cd04be6cfb50aaf217b6252ee (patch) | |
tree | 2662abc9deec308936693cbf7b95c19b30039b9c /base/main.cpp | |
parent | de7c89e38143ccac34e5228d5591a2738f27a661 (diff) | |
download | scummvm-rg350-76deee02d6b2638cd04be6cfb50aaf217b6252ee.tar.gz scummvm-rg350-76deee02d6b2638cd04be6cfb50aaf217b6252ee.tar.bz2 scummvm-rg350-76deee02d6b2638cd04be6cfb50aaf217b6252ee.zip |
Some more 'special debug levels' tweaks
svn-id: r36140
Diffstat (limited to 'base/main.cpp')
-rw-r--r-- | base/main.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/base/main.cpp b/base/main.cpp index 9efe582301..8540c309e0 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -175,9 +175,14 @@ static Common::Error runGame(const EnginePlugin *plugin, OSystem &system, const SearchMan.addDirectory(dir.getPath(), dir); } - // On creation the engine should've set up all debug levels so we can use + // On creation the engine should have set up all debug levels so we can use // the command line arugments here - Common::enableSpecialDebugLevelList(edebuglevels); + Common::StringTokenizer tokenizer(edebuglevels, " ,"); + while (!tokenizer.empty()) { + Common::String token = tokenizer.nextToken(); + if (!enableSpecialDebugLevel(token)) + warning("Engine does not support debug level '%s'", token.c_str()); + } // Inform backend that the engine is about to be run system.engineInit(); |