Skip to content

Commit

Permalink
FULLPIPE: Fix playtime not being read from savegames
Browse files Browse the repository at this point in the history
Fixes Trac#10394.
  • Loading branch information
bonki committed Mar 24, 2018
1 parent abe9f0f commit c750a8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions engines/fullpipe/stateloader.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit c750a8e

Please sign in to comment.