diff options
author | Alexander Tkachev | 2016-07-25 14:32:04 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | b665fc933d7d1c9e32820e5a3f24d0e3456a0ff7 (patch) | |
tree | e98f6ad4dbe2100bed8b328014a89c6080c1e5b8 /engines/sherlock | |
parent | b8fae56c6733cdb5f6e4f64266ca61105eb3155d (diff) | |
download | scummvm-rg350-b665fc933d7d1c9e32820e5a3f24d0e3456a0ff7.tar.gz scummvm-rg350-b665fc933d7d1c9e32820e5a3f24d0e3456a0ff7.tar.bz2 scummvm-rg350-b665fc933d7d1c9e32820e5a3f24d0e3456a0ff7.zip |
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.
Diffstat (limited to 'engines/sherlock')
-rw-r--r-- | engines/sherlock/detection.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/sherlock/detection.cpp b/engines/sherlock/detection.cpp index f54c6db952..c6e632f999 100644 --- a/engines/sherlock/detection.cpp +++ b/engines/sherlock/detection.cpp @@ -159,8 +159,6 @@ public: */ virtual SaveStateList listSaves(const char *target) const; - virtual bool simpleSaveNames() const; - /** * Returns the maximum number of allowed save slots */ @@ -201,7 +199,8 @@ bool SherlockMetaEngine::hasFeature(MetaEngineFeature f) const { (f == kSupportsLoadingDuringStartup) || (f == kSupportsDeleteSave) || (f == kSavesSupportMetaInfo) || - (f == kSavesSupportThumbnail); + (f == kSavesSupportThumbnail) || + (f == kSimpleSavesNames); } bool Sherlock::SherlockEngine::hasFeature(EngineFeature f) const { @@ -219,8 +218,6 @@ SaveStateList SherlockMetaEngine::listSaves(const char *target) const { return Sherlock::SaveManager::getSavegameList(target); } -bool SherlockMetaEngine::simpleSaveNames() const { return true; } - int SherlockMetaEngine::getMaximumSaveSlot() const { return MAX_SAVEGAME_SLOTS; } |