cleanup
svn-id: r21572
This commit is contained in:
parent
214c01d15d
commit
4df2948902
2 changed files with 4 additions and 9 deletions
|
@ -576,11 +576,6 @@ void GameDetector::processSettings(Common::String &target, Common::StringMap &se
|
|||
settings.erase("force-1x-overlay"); // This option should not be passed to ConfMan.
|
||||
}
|
||||
|
||||
// The following options shouldn't get into ConfMan, so we remove them
|
||||
settings.erase("config");
|
||||
settings.erase("debugflags");
|
||||
settings.erase("target");
|
||||
|
||||
|
||||
// Finally, store the command line settings into the config manager.
|
||||
for (Common::StringMap::const_iterator x = settings.begin(); x != settings.end(); ++x) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue