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:
parent
b8fae56c67
commit
b665fc933d
53 changed files with 68 additions and 186 deletions
|
@ -144,7 +144,6 @@ public:
|
|||
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;
|
||||
|
@ -158,7 +157,8 @@ bool SagaMetaEngine::hasFeature(MetaEngineFeature f) const {
|
|||
(f == kSavesSupportMetaInfo) ||
|
||||
(f == kSavesSupportThumbnail) ||
|
||||
(f == kSavesSupportCreationDate) ||
|
||||
(f == kSavesSupportPlayTime);
|
||||
(f == kSavesSupportPlayTime) ||
|
||||
(f == kSimpleSavesNames);
|
||||
}
|
||||
|
||||
bool Saga::SagaEngine::hasFeature(EngineFeature f) const {
|
||||
|
@ -208,8 +208,6 @@ SaveStateList SagaMetaEngine::listSaves(const char *target) const {
|
|||
return saveList;
|
||||
}
|
||||
|
||||
bool SagaMetaEngine::simpleSaveNames() const { return true; }
|
||||
|
||||
int SagaMetaEngine::getMaximumSaveSlot() const { return MAX_SAVES - 1; }
|
||||
|
||||
void SagaMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue