ENGINES: Provide a default MetaEngine::hasFeature with extended save options on

This commit is contained in:
Paul Gilbert 2020-02-04 19:47:08 -08:00
parent 2d09358030
commit 9f8c45ac4e
5 changed files with 13 additions and 29 deletions

View file

@ -129,6 +129,18 @@ Common::KeymapArray MetaEngine::initKeymaps(const char *target) const {
return Keymap::arrayOf(engineKeyMap);
}
bool MetaEngine::hasFeature(MetaEngineFeature f) const {
return
(f == kSupportsListSaves) ||
(f == kSupportsDeleteSave) ||
(f == kSavesSupportMetaInfo) ||
(f == kSavesSupportThumbnail) ||
(f == kSavesSupportCreationDate) ||
(f == kSavesSupportPlayTime) ||
(f == kSupportsLoadingDuringStartup) ||
(f == kSavesUseExtendedFormat);
}
void MetaEngine::appendExtendedSave(Common::OutSaveFile *saveFile, uint32 playtime, Common::String desc) {
ExtendedSavegameHeader header;