From b665fc933d7d1c9e32820e5a3f24d0e3456a0ff7 Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Mon, 25 Jul 2016 14:32:04 +0600 Subject: ALL: Make simpleSaveNames() a MetaEngineFeature Added it into hasFeature() of all engines which returned `true` in simpleSaveNames() before. As mentioned in #788, SCI is not always using simple names, so it doesn't have such feature now. --- engines/toltecs/detection.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'engines/toltecs') diff --git a/engines/toltecs/detection.cpp b/engines/toltecs/detection.cpp index 8da9106931..cc27341e10 100644 --- a/engines/toltecs/detection.cpp +++ b/engines/toltecs/detection.cpp @@ -221,7 +221,6 @@ public: virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const; virtual const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const; SaveStateList listSaves(const char *target) const; - virtual bool simpleSaveNames() const; virtual int getMaximumSaveSlot() const; void removeSaveState(const char *target, int slot) const; SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const; @@ -235,7 +234,8 @@ bool ToltecsMetaEngine::hasFeature(MetaEngineFeature f) const { (f == kSavesSupportMetaInfo) || (f == kSavesSupportThumbnail) || (f == kSavesSupportCreationDate) || - (f == kSavesSupportPlayTime); + (f == kSavesSupportPlayTime) || + (f == kSimpleSavesNames); } bool Toltecs::ToltecsEngine::hasFeature(EngineFeature f) const { @@ -289,8 +289,6 @@ SaveStateList ToltecsMetaEngine::listSaves(const char *target) const { return saveList; } -bool ToltecsMetaEngine::simpleSaveNames() const { return true; } - int ToltecsMetaEngine::getMaximumSaveSlot() const { return 999; } -- cgit v1.2.3