[Scummvm-git-logs] scummvm master -> 41fea11ce68d21f900f39e65c35f766f2d7a5509

sev- sev at scummvm.org
Wed Sep 21 08:46:41 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
41fea11ce6 FULLPIPE: Furhter simplification of loading code


Commit: 41fea11ce68d21f900f39e65c35f766f2d7a5509
    https://github.com/scummvm/scummvm/commit/41fea11ce68d21f900f39e65c35f766f2d7a5509
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-09-21T08:46:19+02:00

Commit Message:
FULLPIPE: Furhter simplification of loading code

Changed paths:
    engines/fullpipe/stateloader.cpp



diff --git a/engines/fullpipe/stateloader.cpp b/engines/fullpipe/stateloader.cpp
index c383442..b61834d 100644
--- a/engines/fullpipe/stateloader.cpp
+++ b/engines/fullpipe/stateloader.cpp
@@ -185,8 +185,7 @@ bool readSavegameHeader(Common::InSaveFile *in, FullpipeSavegameHeader &header)
 
 	uint oldPos = in->pos();
 
-	// SEEK_END doesn't work with zipped savegames, so simulate it
-	in->seek(in->size() - 4, SEEK_SET);
+	in->seek(-4, SEEK_END);
 
 	uint headerOffset = in->readUint32LE();
 





More information about the Scummvm-git-logs mailing list