aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);