aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-25 14:32:04 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commitb665fc933d7d1c9e32820e5a3f24d0e3456a0ff7 (patch)
treee98f6ad4dbe2100bed8b328014a89c6080c1e5b8 /engines/drascula
parentb8fae56c6733cdb5f6e4f64266ca61105eb3155d (diff)
downloadscummvm-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/drascula')
-rw-r--r--engines/drascula/detection.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/drascula/detection.cpp b/engines/drascula/detection.cpp
index 863ea98786..3bc8069b76 100644
--- a/engines/drascula/detection.cpp
+++ b/engines/drascula/detection.cpp
@@ -326,7 +326,6 @@ public:
virtual bool hasFeature(MetaEngineFeature f) const;
virtual const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) 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;
@@ -340,7 +339,8 @@ bool DrasculaMetaEngine::hasFeature(MetaEngineFeature f) const {
(f == kSavesSupportMetaInfo) ||
(f == kSavesSupportThumbnail) ||
(f == kSavesSupportCreationDate) ||
- (f == kSavesSupportPlayTime);
+ (f == kSavesSupportPlayTime) ||
+ (f == kSimpleSavesNames);
}
const ExtraGuiOptions DrasculaMetaEngine::getExtraGuiOptions(const Common::String &target) const {
@@ -383,8 +383,6 @@ SaveStateList DrasculaMetaEngine::listSaves(const char *target) const {
return saveList;
}
-bool DrasculaMetaEngine::simpleSaveNames() const { return true; }
-
SaveStateDescriptor DrasculaMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
Common::String fileName = Common::String::format("%s.%03d", target, slot);