diff options
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/agi.h | 9 | ||||
-rw-r--r-- | engines/agi/detection.cpp | 5 |
2 files changed, 10 insertions, 4 deletions
diff --git a/engines/agi/agi.h b/engines/agi/agi.h index ff2b05ace1..a1edcb2ad0 100644 --- a/engines/agi/agi.h +++ b/engines/agi/agi.h @@ -696,7 +696,8 @@ struct StringData { class AgiBase : public ::Engine { protected: // Engine API - int init(); + virtual int init(); + virtual bool hasFeature(EngineFeature f) const; virtual void initialize() = 0; @@ -743,7 +744,10 @@ class AgiEngine : public AgiBase { int _gameId; protected: - int go(); + // Engine APIs + virtual int go(); + virtual void syncSoundSettings(); + void initialize(); uint32 _lastSaveTime; @@ -755,7 +759,6 @@ public: return _gameId; } - virtual void syncSoundSettings(); private: diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index e82d4877e7..1f3ba18bc4 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -2132,12 +2132,15 @@ public: bool AgiMetaEngine::hasFeature(MetaEngineFeature f) const { return - (f == kSupportsRTL) || (f == kSupportsListSaves) || (f == kSupportsLoadingDuringStartup) || (f == kSupportsDeleteSave); } +bool AgiBase::hasFeature(EngineFeature f) const { + return (f == kSupportsRTL); +} + bool AgiMetaEngine::createInstance(OSystem *syst, Engine **engine, const Common::ADGameDescription *desc) const { const Agi::AGIGameDescription *gd = (const Agi::AGIGameDescription *)desc; |