Fix for bug #1719463: "DETECTOR: Launching undefined target adds launcher entry"

svn-id: r27352
This commit is contained in:
Eugene Sandulenko 2007-06-11 08:38:23 +00:00
parent e63041fcb7
commit add3243e5e
2 changed files with 22 additions and 1 deletions

View file

@ -212,7 +212,12 @@ PluginError detectGameForEngineCreation(
ConfMan.set("platform", Common::getPlatformCode(o->platform));
warning("Target upgraded from %s to %s", o->from, o->to);
ConfMan.flushToDisk();
if (ConfMan.hasKey("id_came_from_command_line")) {
warning("Target came from command line. Skipping save");
} else {
ConfMan.flushToDisk();
}
break;
}
}