SAGA: Add support for played time
This commit is contained in:
parent
1b5e96f429
commit
faa7579241
3 changed files with 16 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue