diff options
author | Max Horn | 2006-05-05 00:03:21 +0000 |
---|---|---|
committer | Max Horn | 2006-05-05 00:03:21 +0000 |
commit | f42baa6dabf82191e3a56e5115fe0e345d101c6c (patch) | |
tree | e0cb1e570d682cf80eceddbd7794fd52fbe267dc /base | |
parent | 5e2d023aa83fe66347b921f1ef2cc769f432c8d0 (diff) | |
download | scummvm-rg350-f42baa6dabf82191e3a56e5115fe0e345d101c6c.tar.gz scummvm-rg350-f42baa6dabf82191e3a56e5115fe0e345d101c6c.tar.bz2 scummvm-rg350-f42baa6dabf82191e3a56e5115fe0e345d101c6c.zip |
Some further cleanup in scummvm_main
svn-id: r22352
Diffstat (limited to 'base')
-rw-r--r-- | base/main.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/base/main.cpp b/base/main.cpp index f9ec3449ea..6dfd3f6306 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -302,6 +302,10 @@ extern "C" int scummvm_main(int argc, char *argv[]) { // Update the config file ConfMan.set("versioninfo", gScummVMVersion, Common::ConfigManager::kApplicationDomain); + + // Load and setup the debuglevel and the debug flags. We do this at the + // soonest possible moment to ensure debug output starts early on, if + // requested. if (settings.contains("debuglevel")) { gDebugLevel = (int)strtol(settings["debuglevel"].c_str(), 0, 10); printf("Debuglevel (from command line): %d\n", gDebugLevel); @@ -309,13 +313,12 @@ extern "C" int scummvm_main(int argc, char *argv[]) { } else if (ConfMan.hasKey("debuglevel")) gDebugLevel = ConfMan.getInt("debuglevel"); - // Look for special debug flags if (settings.contains("debugflags")) { specialDebug = settings["debugflags"]; settings.erase("debugflags"); } - // Load the plugins + // Load the plugins. PluginManager::instance().loadPlugins(); // Process the remaining command line settings. Must be done after the @@ -324,7 +327,8 @@ extern "C" int scummvm_main(int argc, char *argv[]) { return 0; #if defined(__SYMBIAN32__) || defined(_WIN32_WCE) - // init keymap support here: we wanna move this somewhere else? + // Init keymap support. + // FIXME: Fingolfin asks: why is this not in your OSystem::initBackend method??? GUI::Actions::init(); #endif |