[Scummvm-git-logs] scummvm master -> 85f341e0f30af6721e340ec14eee4720136f0e31

dreammaster noreply at scummvm.org
Thu Nov 16 09:41:33 UTC 2023


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:
85f341e0f3 MM: Add automatic update of old xeen engineId


Commit: 85f341e0f30af6721e340ec14eee4720136f0e31
    https://github.com/scummvm/scummvm/commit/85f341e0f30af6721e340ec14eee4720136f0e31
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2023-11-15T23:41:21-10:00

Commit Message:
MM: Add automatic update of old xeen engineId

Changed paths:
    base/plugins.cpp


diff --git a/base/plugins.cpp b/base/plugins.cpp
index 48fcb3f3b40..afeda97673c 100644
--- a/base/plugins.cpp
+++ b/base/plugins.cpp
@@ -895,12 +895,19 @@ void EngineManager::upgradeTargetIfNecessary(const Common::String &target) const
 	if (!domain->contains("engineid")) {
 		upgradeTargetForEngineId(target);
 	} else {
-		if (domain->getVal("engineid").equals("fullpipe")) {
+		Common::String engineId = domain->getVal("engineid");
+
+		if (engineId.equals("fullpipe")) {
 			domain->setVal("engineid", "ngi");
 
 			debug("Upgrading engineid from 'fullpipe' to 'ngi'");
 
 			ConfMan.flushToDisk();
+
+		} else if (engineId.equals("xeen")) {
+			domain->setVal("engineid", "mm");
+
+			debug("Upgrading engineid from 'xeen' to 'mm'");
 		}
 	}
 }




More information about the Scummvm-git-logs mailing list