diff options
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/agos.h | 13 | ||||
-rw-r--r-- | engines/agos/detection.cpp | 6 |
2 files changed, 12 insertions, 7 deletions
diff --git a/engines/agos/agos.h b/engines/agos/agos.h index 49b4478ec7..4d1349b942 100644 --- a/engines/agos/agos.h +++ b/engines/agos/agos.h @@ -163,7 +163,13 @@ class AGOSEngine : public Engine { friend class Debugger; friend class MoviePlayer; - GUI::Debugger *getDebugger(); + // Engine APIs + virtual int init(); + virtual int go(); + virtual GUI::Debugger *getDebugger(); + virtual bool hasFeature(EngineFeature f) const; + virtual void syncSoundSettings(); + virtual void pauseEngineIntern(bool pause); public: virtual void setupOpcodes(); @@ -588,7 +594,6 @@ protected: void loadSoundFile(const char *filename); - virtual void syncSoundSettings(); int getUserFlag(Item *item, int a); int getUserFlag1(Item *item, int a); @@ -1147,9 +1152,6 @@ protected: void loadVGAVideoFile(uint16 id, uint8 type); bool loadVGASoundFile(uint16 id, uint8 type); - int init(); - int go(); - void openGameFile(); void readGameFile(void *dst, uint32 offs, uint32 size); @@ -1210,7 +1212,6 @@ protected: void checkTimerCallback(); void delay(uint delay); void pause(); - virtual void pauseEngineIntern(bool pause); void waitForMark(uint i); void scrollScreen(); diff --git a/engines/agos/detection.cpp b/engines/agos/detection.cpp index 6cc4d16044..6a022ac44a 100644 --- a/engines/agos/detection.cpp +++ b/engines/agos/detection.cpp @@ -118,10 +118,14 @@ public: bool AgosMetaEngine::hasFeature(MetaEngineFeature f) const { return - (f == kSupportsRTL) || (f == kSupportsListSaves); } +bool AGOS::AGOSEngine::hasFeature(EngineFeature f) const { + return + (f == kSupportsRTL); +} + bool AgosMetaEngine::createInstance(OSystem *syst, Engine **engine, const Common::ADGameDescription *desc) const { const AGOS::AGOSGameDescription *gd = (const AGOS::AGOSGameDescription *)desc; bool res = true; |