[Scummvm-git-logs] scummvm master -> 9590eed4b4e493c318728096d8819ecc51082f6e

sev- sev at scummvm.org
Sun Oct 4 12:19:22 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
9590eed4b4 BASE: Upgrade fullpipe engineid to ngi


Commit: 9590eed4b4e493c318728096d8819ecc51082f6e
    https://github.com/scummvm/scummvm/commit/9590eed4b4e493c318728096d8819ecc51082f6e
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-10-04T14:17:59+02:00

Commit Message:
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.

Changed paths:
    base/plugins.cpp


diff --git a/base/plugins.cpp b/base/plugins.cpp
index 723f960200..a8d80c3d2b 100644
--- a/base/plugins.cpp
+++ b/base/plugins.cpp
@@ -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();
+		}
 	}
 }
 




More information about the Scummvm-git-logs mailing list