[Scummvm-cvs-logs] SF.net SVN: scummvm: [22352] scummvm/trunk/base/main.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Thu May 4 17:04:03 CEST 2006
Revision: 22352
Author: fingolfin
Date: 2006-05-04 17:03:21 -0700 (Thu, 04 May 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22352&view=rev
Log Message:
-----------
Some further cleanup in scummvm_main
Modified Paths:
--------------
scummvm/trunk/base/main.cpp
Modified: scummvm/trunk/base/main.cpp
===================================================================
--- scummvm/trunk/base/main.cpp 2006-05-05 00:00:39 UTC (rev 22351)
+++ scummvm/trunk/base/main.cpp 2006-05-05 00:03:21 UTC (rev 22352)
@@ -302,6 +302,10 @@
// 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 @@
} 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 @@
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list