diff options
author | Filippos Karapetis | 2012-11-11 23:32:07 +0200 |
---|---|---|
committer | Filippos Karapetis | 2012-11-11 23:32:07 +0200 |
commit | faa7579241b1abcedf1f177124c301d6eeafbf9f (patch) | |
tree | 9bbc7c88263a20575013f44625aa64a9086e101e /engines/saga/detection.cpp | |
parent | 1b5e96f42903b0cf3a5456e85a09c2c01eef0538 (diff) | |
download | scummvm-rg350-faa7579241b1abcedf1f177124c301d6eeafbf9f.tar.gz scummvm-rg350-faa7579241b1abcedf1f177124c301d6eeafbf9f.tar.bz2 scummvm-rg350-faa7579241b1abcedf1f177124c301d6eeafbf9f.zip |
SAGA: Add support for played time
Diffstat (limited to 'engines/saga/detection.cpp')
-rw-r--r-- | engines/saga/detection.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/saga/detection.cpp b/engines/saga/detection.cpp index 9c178559f2..f6872c41ad 100644 --- a/engines/saga/detection.cpp +++ b/engines/saga/detection.cpp @@ -156,7 +156,8 @@ bool SagaMetaEngine::hasFeature(MetaEngineFeature f) const { (f == kSupportsDeleteSave) || (f == kSavesSupportMetaInfo) || (f == kSavesSupportThumbnail) || - (f == kSavesSupportCreationDate); + (f == kSavesSupportCreationDate) || + (f == kSavesSupportPlayTime); } bool Saga::SagaEngine::hasFeature(EngineFeature f) const { @@ -270,7 +271,10 @@ SaveStateDescriptor SagaMetaEngine::querySaveMetaInfos(const char *target, int s desc.setSaveTime(hour, minutes); - // TODO: played time + if (version >= 8) { + uint32 playTime = in->readUint32BE(); + desc.setPlayTime(playTime * 1000); + } } delete in; |