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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Thu Jan 28 23:26:13 CET 2010


Revision: 47658
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47658&view=rev
Author:   thebluegr
Date:     2010-01-28 22:26:13 +0000 (Thu, 28 Jan 2010)

Log Message:
-----------
Corrected the map number for the GK2 resource patch files, and added some preliminary non-working code for the hires content in GK1

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

Modified: scummvm/trunk/engines/sci/resource.cpp
===================================================================
--- scummvm/trunk/engines/sci/resource.cpp	2010-01-28 21:59:05 UTC (rev 47657)
+++ scummvm/trunk/engines/sci/resource.cpp	2010-01-28 22:26:13 UTC (rev 47658)
@@ -398,6 +398,13 @@
 			addSource(map, kSourceVolume, name.c_str(), number);
 		}
 #ifdef ENABLE_SCI32
+
+		/*
+		// TODO: not working yet
+		if (Common::File::exists("RESOURCE.ALT")) {	// GK1CD hires content
+			addSource(addExternalMap("RESOURCE.MAP", 10), kSourceVolume, "RESOURCE.ALT", 10);
+		}
+		*/
 	} else {
 		// SCI2.1-SCI3 file naming scheme
 		Common::ArchiveMemberList mapFiles;
@@ -425,7 +432,8 @@
 
 		// SCI2.1 resource patches
 		if (Common::File::exists("RESMAP.PAT") && Common::File::exists("RESSCI.PAT")) {
-			addSource(addExternalMap("RESMAP.PAT", 65535), kSourceVolume, "RESSCI.PAT", 65535);
+			// We add this resource with a map which surely won't exist
+			addSource(addExternalMap("RESMAP.PAT", 100), kSourceVolume, "RESSCI.PAT", 100);
 		}
 	}
 #else


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