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.
This commit is contained in:
Alexander Tkachev 2016-07-25 14:32:04 +06:00
parent b8fae56c67
commit b665fc933d
53 changed files with 68 additions and 186 deletions

View file

@ -100,7 +100,6 @@ public:
virtual bool hasFeature(MetaEngineFeature f) const;
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
virtual SaveStateList listSaves(const char *target) const;
virtual bool simpleSaveNames() const;
virtual int getMaximumSaveSlot() const;
virtual void removeSaveState(const char *target, int slot) const;
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
@ -112,7 +111,8 @@ bool AccessMetaEngine::hasFeature(MetaEngineFeature f) const {
(f == kSupportsLoadingDuringStartup) ||
(f == kSupportsDeleteSave) ||
(f == kSavesSupportMetaInfo) ||
(f == kSavesSupportThumbnail);
(f == kSavesSupportThumbnail) ||
(f == kSimpleSavesNames);
}
bool Access::AccessEngine::hasFeature(EngineFeature f) const {
@ -172,8 +172,6 @@ SaveStateList AccessMetaEngine::listSaves(const char *target) const {
return saveList;
}
bool AccessMetaEngine::simpleSaveNames() const { return true; }
int AccessMetaEngine::getMaximumSaveSlot() const {
return MAX_SAVES;
}