[Scummvm-git-logs] scummvm master -> f2a5ec2dce1a4ac2da37b5bda11e066635013626
aquadran
noreply at scummvm.org
Tue Jun 17 10:36:40 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
f2a5ec2dce WINTERMUTE: Added W/A to allow load save games for 2D games with SXVlink class referenced
Commit: f2a5ec2dce1a4ac2da37b5bda11e066635013626
https://github.com/scummvm/scummvm/commit/f2a5ec2dce1a4ac2da37b5bda11e066635013626
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2025-06-17T12:36:36+02:00
Commit Message:
WINTERMUTE: Added W/A to allow load save games for 2D games with SXVlink class referenced
Changed paths:
engines/wintermute/system/sys_class_registry.cpp
diff --git a/engines/wintermute/system/sys_class_registry.cpp b/engines/wintermute/system/sys_class_registry.cpp
index 347cf76a696..2adf94d6f36 100644
--- a/engines/wintermute/system/sys_class_registry.cpp
+++ b/engines/wintermute/system/sys_class_registry.cpp
@@ -236,6 +236,15 @@ bool SystemClassRegistry::loadTable(BaseGame *gameRef, BasePersistenceManager *p
gameRef->_renderer->setIndicatorVal((int)(50.0f / (float)((float)numClasses / (float)(i + 1))));
Common::String className = persistMgr->getStringObj();
+
+ // WA to be removed later
+ // This allow load save games from 2D games where SXVlink class reference is stored
+ if (!gameRef->_is3D && className == "SXVlink") {
+ persistMgr->getDWORD(); // saveId
+ persistMgr->getDWORD(); // numInstances
+ continue;
+ }
+
NameMap::iterator mapIt = _nameMap.find(className);
if (mapIt != _nameMap.end()) {
(*mapIt)._value->loadTable(gameRef, persistMgr);
More information about the Scummvm-git-logs
mailing list