aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2016-09-21 05:53:57 +0200
committerEugene Sandulenko2016-09-21 08:11:55 +0200
commita5d9834780e236016fe3953232e950b97dbd238c (patch)
tree5b6c997a643dda3ef37db4438d90d6ca3fb73a27 /engines/fullpipe
parent76fcf4f025801a426246d515efe65953158e01f1 (diff)
downloadscummvm-rg350-a5d9834780e236016fe3953232e950b97dbd238c.tar.gz
scummvm-rg350-a5d9834780e236016fe3953232e950b97dbd238c.tar.bz2
scummvm-rg350-a5d9834780e236016fe3953232e950b97dbd238c.zip
FULLPIPE: Optimize savegame loading
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/stateloader.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/fullpipe/stateloader.cpp b/engines/fullpipe/stateloader.cpp
index 4df97636d1..c383442098 100644
--- a/engines/fullpipe/stateloader.cpp
+++ b/engines/fullpipe/stateloader.cpp
@@ -186,10 +186,8 @@ bool readSavegameHeader(Common::InSaveFile *in, FullpipeSavegameHeader &header)
uint oldPos = in->pos();
// SEEK_END doesn't work with zipped savegames, so simulate it
- while (!in->eos())
- in->readByte();
+ in->seek(in->size() - 4, SEEK_SET);
- in->seek(-4, SEEK_CUR);
uint headerOffset = in->readUint32LE();
// Sanity check