aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/detection.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-13 13:40:47 +0100
committerMartin Kiewitz2016-02-13 13:40:47 +0100
commite49658cf819815286b4e386889ed55a8143dade6 (patch)
tree6e569c84aa962359557f3887d5119e7f1650b482 /engines/agi/detection.cpp
parent02d00cb17f896362843adda508eba24c76750783 (diff)
downloadscummvm-rg350-e49658cf819815286b4e386889ed55a8143dade6.tar.gz
scummvm-rg350-e49658cf819815286b4e386889ed55a8143dade6.tar.bz2
scummvm-rg350-e49658cf819815286b4e386889ed55a8143dade6.zip
AGI: Adding seconds of current time to saved games
Useful to properly detect the most recent saved game (that's done by the original save/restore dialogs)
Diffstat (limited to 'engines/agi/detection.cpp')
-rw-r--r--engines/agi/detection.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp
index 6fca86db63..7d5243e023 100644
--- a/engines/agi/detection.cpp
+++ b/engines/agi/detection.cpp
@@ -359,6 +359,9 @@ SaveStateDescriptor AgiMetaEngine::querySaveMetaInfos(const char *target, int sl
uint32 saveDate = in->readUint32BE();
uint16 saveTime = in->readUint16BE();
+ if (saveVersion >= 9) {
+ in->readByte(); // skip over seconds of saveTime (not needed here)
+ }
if (saveVersion >= 6) {
uint32 playTime = in->readUint32BE();
descriptor.setPlayTime(playTime * 1000);