aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/detection.cpp
diff options
context:
space:
mode:
authorChristopher Page2008-08-15 18:15:14 +0000
committerChristopher Page2008-08-15 18:15:14 +0000
commit9d3cdcb2da64ae3afdcd19f1ea18a917f9318190 (patch)
tree2d49249deec6d26bd875a5bbe1e8b8a3946bfec7 /engines/scumm/detection.cpp
parent5bc5855ae9148672b242bd99f3faf5e7ede93ac8 (diff)
downloadscummvm-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/scumm/detection.cpp')
-rw-r--r--engines/scumm/detection.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp
index 716a456c90..8d93b04a14 100644
--- a/engines/scumm/detection.cpp
+++ b/engines/scumm/detection.cpp
@@ -674,16 +674,23 @@ public:
virtual const char *getName() const;
virtual const char *getCopyright() const;
+ virtual bool hasFeature(MetaEngineFeature f) const;
virtual GameList getSupportedGames() const;
virtual GameDescriptor findGame(const char *gameid) const;
virtual GameList detectGames(const FSList &fslist) const;
- virtual bool hasFeature(MetaEngineFeature f);
-
+
virtual PluginError createInstance(OSystem *syst, Engine **engine) const;
virtual SaveStateList listSaves(const char *target) const;
};
+bool ScummMetaEngine::hasFeature(MetaEngineFeature f) const {
+ return
+ (f == kSupportsListSaves) ||
+ (f == kSupportsDirectLoad) ||
+ (f == kSupportsDeleteSave);
+}
+
GameList ScummMetaEngine::getSupportedGames() const {
return GameList(gameDescriptions);
}
@@ -692,13 +699,6 @@ GameDescriptor ScummMetaEngine::findGame(const char *gameid) const {
return Common::AdvancedDetector::findGameID(gameid, gameDescriptions, obsoleteGameIDsTable);
}
-bool ScummMetaEngine::hasFeature(MetaEngineFeature f) {
- return
- (f == kSupportsListSaves) ||
- (f == kSupportsDirectLoad) ||
- (f == kSupportsDeleteSave);
-}
-
GameList ScummMetaEngine::detectGames(const FSList &fslist) const {
GameList detectedGames;
Common::List<DetectorResult> results;