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/sword2 | |
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/sword2')
-rw-r--r-- | engines/sword2/sword2.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/sword2/sword2.cpp b/engines/sword2/sword2.cpp index 3213a26e4c..4f3caa437e 100644 --- a/engines/sword2/sword2.cpp +++ b/engines/sword2/sword2.cpp @@ -97,7 +97,6 @@ public: virtual GameDescriptor findGame(const char *gameid) const; virtual GameList detectGames(const Common::FSList &fslist) 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; @@ -108,7 +107,8 @@ bool Sword2MetaEngine::hasFeature(MetaEngineFeature f) const { return (f == kSupportsListSaves) || (f == kSupportsLoadingDuringStartup) || - (f == kSupportsDeleteSave); + (f == kSupportsDeleteSave) || + (f == kSimpleSavesNames); } bool Sword2::Sword2Engine::hasFeature(EngineFeature f) const { @@ -257,8 +257,6 @@ SaveStateList Sword2MetaEngine::listSaves(const char *target) const { return saveList; } -bool Sword2MetaEngine::simpleSaveNames() const { return true; } - int Sword2MetaEngine::getMaximumSaveSlot() const { return 999; } void Sword2MetaEngine::removeSaveState(const char *target, int slot) const { |