[Scummvm-cvs-logs] SF.net SVN: scummvm:[34582] scummvm/trunk/engines/scumm/saveload.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Tue Sep 16 16:22:51 CEST 2008


Revision: 34582
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34582&view=rev
Author:   lordhoto
Date:     2008-09-16 14:22:51 +0000 (Tue, 16 Sep 2008)

Log Message:
-----------
Cleanup.

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/saveload.cpp

Modified: scummvm/trunk/engines/scumm/saveload.cpp
===================================================================
--- scummvm/trunk/engines/scumm/saveload.cpp	2008-09-16 14:10:55 UTC (rev 34581)
+++ scummvm/trunk/engines/scumm/saveload.cpp	2008-09-16 14:22:51 UTC (rev 34582)
@@ -542,16 +542,8 @@
 		return false;
 	}
 
-	uint32 type = in->readUint32BE();
-
-	// Check for the THMB header. Also, work around a bug which caused
-	// the chunk type (incorrectly) to be written in LE on LE machines.
-	if (! (type == MKID_BE('THMB') || (hdr.ver < VER(55) && type == MKID_BE('BMHT')))){
-		delete in;
+	if (!Graphics::skipThumbnailHeader(*in))
 		return false;
-	}
-	uint32 size = in->readUint32BE();
-	in->skip(size - 8);
 
 	if (!loadInfos(in, stuff)) {
 		delete in;


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