aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorAdrian Frühwirth2018-03-24 23:09:06 +0100
committerAdrian Frühwirth2018-03-24 23:38:36 +0100
commitc750a8e6be9dc69cd2ba7bd4b7b17b0f7ee7b313 (patch)
tree9e7424a9c2fc589a26b3e684b619c16336da2b11 /engines/fullpipe
parentabe9f0fa15f37d12dd5da7358dbb3d912bc98f1a (diff)
downloadscummvm-rg350-c750a8e6be9dc69cd2ba7bd4b7b17b0f7ee7b313.tar.gz
scummvm-rg350-c750a8e6be9dc69cd2ba7bd4b7b17b0f7ee7b313.tar.bz2
scummvm-rg350-c750a8e6be9dc69cd2ba7bd4b7b17b0f7ee7b313.zip
FULLPIPE: Fix playtime not being read from savegames
Fixes Trac#10394.
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/stateloader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/fullpipe/stateloader.cpp b/engines/fullpipe/stateloader.cpp
index 2424d8f2a1..9d4d5ab09a 100644
--- a/engines/fullpipe/stateloader.cpp
+++ b/engines/fullpipe/stateloader.cpp
@@ -69,6 +69,11 @@ bool GameLoader::readSavegame(const char *fname) {
Common::Array<byte> map(800);
saveFile->read(map.data(), 800);
+ FullpipeSavegameHeader header2;
+ if (Fullpipe::readSavegameHeader(saveFile.get(), header2)) {
+ g_fp->setTotalPlayTime(header2.playtime * 1000);
+ }
+
{
Common::MemoryReadStream tempStream(map.data(), 800, DisposeAfterUse::NO);
MfcArchive temp(&tempStream);