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

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Thu Jul 9 18:16:08 CEST 2009


Revision: 42303
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42303&view=rev
Author:   lordhoto
Date:     2009-07-09 16:16:08 +0000 (Thu, 09 Jul 2009)

Log Message:
-----------
By comparing the commit log of r42300, it seems that "off" was renamed to "lastDirectoryOffset". I changed the SCI32 specific code to use that now. I can't assure this is anyhow correct, so anyone with knowledge of this code please check it.

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

Modified: scummvm/trunk/engines/sci/resource.cpp
===================================================================
--- scummvm/trunk/engines/sci/resource.cpp	2009-07-09 16:08:13 UTC (rev 42302)
+++ scummvm/trunk/engines/sci/resource.cpp	2009-07-09 16:16:08 UTC (rev 42303)
@@ -766,7 +766,7 @@
 #ifdef ENABLE_SCI32
 	// late SCI1.1 and SCI32 maps have last directory entry set to 0xFF
 	// offset set to filesize and 4 more bytes
-	file.seek(off - 7, SEEK_SET);
+	file.seek(lastDirectoryOffset - 7, SEEK_SET);
 	if (file.readByte() == 0xFF && file.readUint16LE() == file.size())
 		return SCI_VERSION_32; // TODO : check if there is a difference between these maps
 #endif


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