[Scummvm-cvs-logs] SF.net SVN: scummvm:[48069] scummvm/trunk/engines/mohawk/riven_saveload.cpp

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Tue Feb 16 02:48:20 CET 2010


Revision: 48069
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48069&view=rev
Author:   mthreepwood
Date:     2010-02-16 01:48:19 +0000 (Tue, 16 Feb 2010)

Log Message:
-----------
Add a workaround for two 'spare' variables that can exist in some save files.

Modified Paths:
--------------
    scummvm/trunk/engines/mohawk/riven_saveload.cpp

Modified: scummvm/trunk/engines/mohawk/riven_saveload.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/riven_saveload.cpp	2010-02-16 00:12:00 UTC (rev 48068)
+++ scummvm/trunk/engines/mohawk/riven_saveload.cpp	2010-02-16 01:48:19 UTC (rev 48069)
@@ -151,6 +151,12 @@
 			c = (char)names->readByte();
 		}
 
+		// WORKAROUND: Some versions have two extra variables. However, the saves are
+		// still compatible with other saves of the same version. Are these used in the
+		// original interpreter anywhere? (They come from DVD v1.1)
+		if (name == "dropLeftStart" || name == "dropRightStart")
+			continue;
+
 		uint32 *var = _vm->matchVarToString(name);
 
 		*var = rawVariables[i];


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list