[Scummvm-cvs-logs] SF.net SVN: scummvm:[42305] scummvm/trunk/engines/sci/resource.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Thu Jul 9 18:23:23 CEST 2009
Revision: 42305
http://scummvm.svn.sourceforge.net/scummvm/?rev=42305&view=rev
Author: lordhoto
Date: 2009-07-09 16:23:22 +0000 (Thu, 09 Jul 2009)
Log Message:
-----------
Add fixme about SCI32 specific code.
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:18:35 UTC (rev 42304)
+++ scummvm/trunk/engines/sci/resource.cpp 2009-07-09 16:23:22 UTC (rev 42305)
@@ -766,6 +766,12 @@
#ifdef ENABLE_SCI32
// late SCI1.1 and SCI32 maps have last directory entry set to 0xFF
// offset set to filesize and 4 more bytes
+
+ // TODO/FIXME: This code was not updated in r43000, which changed the behavior of this
+ // function a lot. To make it compile again "off" was changed to the newly introduced
+ // "lastDirectoryOffset". This is probably not the correct fix, since before r43000
+ // the loop above could not prematurely terminate and thus this would always check the
+ // last directory entry instead of the last checked directory entry.
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
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