diff options
author | Christopher Page | 2008-08-15 18:15:14 +0000 |
---|---|---|
committer | Christopher Page | 2008-08-15 18:15:14 +0000 |
commit | 9d3cdcb2da64ae3afdcd19f1ea18a917f9318190 (patch) | |
tree | 2d49249deec6d26bd875a5bbe1e8b8a3946bfec7 /engines/kyra/detection.cpp | |
parent | 5bc5855ae9148672b242bd99f3faf5e7ede93ac8 (diff) | |
download | scummvm-rg350-9d3cdcb2da64ae3afdcd19f1ea18a917f9318190.tar.gz scummvm-rg350-9d3cdcb2da64ae3afdcd19f1ea18a917f9318190.tar.bz2 scummvm-rg350-9d3cdcb2da64ae3afdcd19f1ea18a917f9318190.zip |
Defined some MetaEngineFeatures for the engines, the launcher uses these features to allow/disallow loading and deleting saves
svn-id: r33909
Diffstat (limited to 'engines/kyra/detection.cpp')
-rw-r--r-- | engines/kyra/detection.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/engines/kyra/detection.cpp b/engines/kyra/detection.cpp index f8aa44be63..5ed556cc27 100644 --- a/engines/kyra/detection.cpp +++ b/engines/kyra/detection.cpp @@ -931,11 +931,18 @@ public: return "The Legend of Kyrandia (C) Westwood Studios"; } - bool createInstance(OSystem *syst, Engine **engine, const Common::ADGameDescription *desc) const; - - SaveStateList listSaves(const char *target) const; + virtual bool hasFeature(MetaEngineFeature f) const; + virtual bool createInstance(OSystem *syst, Engine **engine, const Common::ADGameDescription *desc) const; + virtual SaveStateList listSaves(const char *target) const; }; +bool KyraMetaEngine::hasFeature(MetaEngineFeature f) const { + return + (f == kSupportsListSaves) || + (f == kSupportsDirectLoad) || + (f == kSupportsDeleteSave); +} + bool KyraMetaEngine::createInstance(OSystem *syst, Engine **engine, const Common::ADGameDescription *desc) const { const KYRAGameDescription *gd = (const KYRAGameDescription *)desc; bool res = true; |