From 61aadb378d654425d55b8cf9f91df4283b46de7e Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 4 Nov 2008 16:11:40 +0000 Subject: Fixed the EngineFeature vs. MetaEngineFeature mess, clarified some EngineFeature comments svn-id: r34896 --- engines/saga/detection.cpp | 8 ++++++-- engines/saga/saga.h | 12 +++++++----- 2 files changed, 13 insertions(+), 7 deletions(-) (limited to 'engines/saga') diff --git a/engines/saga/detection.cpp b/engines/saga/detection.cpp index e26cf48dcb..3f67d4dc70 100644 --- a/engines/saga/detection.cpp +++ b/engines/saga/detection.cpp @@ -156,10 +156,14 @@ public: bool SagaMetaEngine::hasFeature(MetaEngineFeature f) const { return - (f == kSupportsRTL) || (f == kSupportsListSaves) || (f == kSupportsLoadingDuringStartup) || - (f == kSupportsDeleteSave) || + (f == kSupportsDeleteSave); +} + +bool Saga::SagaEngine::hasFeature(EngineFeature f) const { + return + (f == kSupportsRTL) || (f == kSupportsLoadingDuringRuntime) || (f == kSupportsSavingDuringRuntime); } diff --git a/engines/saga/saga.h b/engines/saga/saga.h index 5417217065..86c91c2f3a 100644 --- a/engines/saga/saga.h +++ b/engines/saga/saga.h @@ -486,9 +486,13 @@ inline uint16 objectIndexToId(int type, int index) { class SagaEngine : public Engine { friend class Scene; -protected: - int go(); - int init(); +public: + // Engine APIs + virtual int init(); + virtual int go(); + virtual bool hasFeature(EngineFeature f) const; + virtual void syncSoundSettings(); + public: SagaEngine(OSystem *syst, const SAGAGameDescription *gameDesc); virtual ~SagaEngine(); @@ -512,8 +516,6 @@ public: return isSaveListFull() ? _saveFilesCount : _saveFilesCount + 1; } - virtual void syncSoundSettings(); - int16 _framesEsc; uint32 _globalFlags; -- cgit v1.2.3