BASE: Upgrade fullpipe engineid to ngi

Making it hardcoded because:
  * This is the only place where it could happen
  * It is the second time in history of ScummVM when we renamed
    and engine (the first one was Simon -> AGOS)

Thus, there is a little sense in creating a universal solution.
This commit is contained in:
Eugene Sandulenko 2020-10-04 14:17:59 +02:00
parent 7c5e1c01ed
commit 9590eed4b4

View file

@ -836,6 +836,14 @@ void EngineManager::upgradeTargetIfNecessary(const Common::String &target) const
if (!domain->contains("engineid")) {
upgradeTargetForEngineId(target);
} else {
if (domain->getVal("engineid").equals("fullpipe")) {
domain->setVal("engineid", "ngi");
debug("Upgrading engineid from 'fullpipe' to 'ngi'");
ConfMan.flushToDisk();
}
}
}