aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword1')
-rw-r--r--engines/sword1/sword1.cpp6
-rw-r--r--engines/sword1/sword1.h9
2 files changed, 11 insertions, 4 deletions
diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp
index 8cbd549c75..6e5420787b 100644
--- a/engines/sword1/sword1.cpp
+++ b/engines/sword1/sword1.cpp
@@ -106,11 +106,15 @@ public:
bool SwordMetaEngine::hasFeature(MetaEngineFeature f) const {
return
- (f == kSupportsRTL) ||
(f == kSupportsListSaves) ||
(f == kSupportsLoadingDuringStartup);
}
+bool Sword1::SwordEngine::hasFeature(EngineFeature f) const {
+ return
+ (f == kSupportsRTL);
+}
+
GameList SwordMetaEngine::getSupportedGames() const {
GameList games;
games.push_back(sword1FullSettings);
diff --git a/engines/sword1/sword1.h b/engines/sword1/sword1.h
index 5bc80b4f6d..8397f30705 100644
--- a/engines/sword1/sword1.h
+++ b/engines/sword1/sword1.h
@@ -77,12 +77,15 @@ public:
virtual ~SwordEngine();
static SystemVars _systemVars;
void reinitialize(void);
- virtual void syncSoundSettings();
uint32 _features;
protected:
- int go();
- int init();
+ // Engine APIs
+ virtual int init();
+ virtual int go();
+ virtual bool hasFeature(EngineFeature f) const;
+ virtual void syncSoundSettings();
+
private:
void delay(int32 amount);