svn-id: r21572
This commit is contained in:
Max Horn 2006-04-02 21:38:36 +00:00
parent 214c01d15d
commit 4df2948902
2 changed files with 4 additions and 9 deletions

View file

@ -333,6 +333,9 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
ConfMan.loadDefaultConfigFile();
}
// Update the config file
ConfMan.set("versioninfo", gScummVMVersion, Common::ConfigManager::kApplicationDomain);
if (settings.contains("debuglevel")) {
gDebugLevel = (int)strtol(settings["debuglevel"].c_str(), 0, 10);
printf("Debuglevel (from command line): %d\n", gDebugLevel);
@ -340,9 +343,6 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
} else if (ConfMan.hasKey("debuglevel"))
gDebugLevel = ConfMan.getInt("debuglevel");
// Update the config file
ConfMan.set("versioninfo", gScummVMVersion, Common::ConfigManager::kApplicationDomain);
// Look for special debug flags
if (settings.contains("debugflags")) {
specialDebug = settings["debugflags"];
@ -368,7 +368,7 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
}
// Process the command line settings
// Process the remaining command line settings
#ifndef _WIN32_WCE
GameDetector detector;
#endif