[Scummvm-cvs-logs] SF.net SVN: scummvm:[49380] scummvm/trunk/engines/sci/resource.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Tue Jun 1 22:37:56 CEST 2010


Revision: 49380
          http://scummvm.svn.sourceforge.net/scummvm/?rev=49380&view=rev
Author:   thebluegr
Date:     2010-06-01 20:37:55 +0000 (Tue, 01 Jun 2010)

Log Message:
-----------
Add support for SCI2.1 resource patches to the fallback detector

Modified Paths:
--------------
    scummvm/trunk/engines/sci/resource.cpp

Modified: scummvm/trunk/engines/sci/resource.cpp
===================================================================
--- scummvm/trunk/engines/sci/resource.cpp	2010-06-01 18:06:31 UTC (rev 49379)
+++ scummvm/trunk/engines/sci/resource.cpp	2010-06-01 20:37:55 UTC (rev 49380)
@@ -537,8 +537,6 @@
 		Common::String filename = file->getName();
 		filename.toLowercase();
 
-		// TODO: Load the SCI2.1+ maps (resmap.*) in concurrence with the volumes to
-		// get the proper volume numbers from the maps.
 		if (filename.contains("resource.map") || filename.contains("resmap.000")) {
 			map = addExternalMap(file);
 			break;
@@ -564,6 +562,14 @@
 		}
 	}
 
+#ifdef ENABLE_SCI32
+	// SCI2.1 resource patches
+	if (Common::File::exists("RESMAP.PAT") && Common::File::exists("RESSCI.PAT")) {
+		// We add this resource with a map which surely won't exist
+		addSource(addExternalMap("RESMAP.PAT", 100), kSourceVolume, "RESSCI.PAT", 100);
+	}
+#endif
+
 	// This function is only called by the advanced detector, and we don't really need
 	// to add a patch directory or message.map here
 


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