[Scummvm-cvs-logs] SF.net SVN: scummvm:[41407] scummvm/trunk/engines/gob/mult_v2.cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Tue Jun 9 20:53:35 CEST 2009


Revision: 41407
          http://scummvm.svn.sourceforge.net/scummvm/?rev=41407&view=rev
Author:   drmccoy
Date:     2009-06-09 18:53:35 +0000 (Tue, 09 Jun 2009)

Log Message:
-----------
Added a workaround for Win Lost in Time.
It's got VMD files which are still referenced as IMD

Modified Paths:
--------------
    scummvm/trunk/engines/gob/mult_v2.cpp

Modified: scummvm/trunk/engines/gob/mult_v2.cpp
===================================================================
--- scummvm/trunk/engines/gob/mult_v2.cpp	2009-06-09 18:53:17 UTC (rev 41406)
+++ scummvm/trunk/engines/gob/mult_v2.cpp	2009-06-09 18:53:35 UTC (rev 41407)
@@ -269,6 +269,19 @@
 
 	_multData->imdFiles = new char[size * 14];
 	memcpy(_multData->imdFiles, _vm->_global->_inter_execPtr, size * 14);
+
+	// WORKAROUND: The Windows version of Lost in Time has VMD not IMD files,
+	//             but they are still referenced as IMD.
+	if ((_vm->getGameType() == kGameTypeLostInTime) &&
+	    (_vm->getPlatform() == Common::kPlatformWindows)) {
+
+		for (int i = 0; i < size; i++) {
+			char *dot = strrchr(_multData->imdFiles + (i * 14), '.');
+			if (dot)
+				*dot = '\0';
+		}
+	}
+
 	_vm->_global->_inter_execPtr += size * 14;
 	data.seek(2, SEEK_CUR);
 	for (int i = 0; i < 4; 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