diff options
author | Adrian Frühwirth | 2018-03-24 23:09:06 +0100 |
---|---|---|
committer | Adrian Frühwirth | 2018-03-24 23:38:36 +0100 |
commit | c750a8e6be9dc69cd2ba7bd4b7b17b0f7ee7b313 (patch) | |
tree | 9e7424a9c2fc589a26b3e684b619c16336da2b11 /engines/fullpipe | |
parent | abe9f0fa15f37d12dd5da7358dbb3d912bc98f1a (diff) | |
download | scummvm-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.cpp | 5 |
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); |