aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/detection.cpp8
-rw-r--r--engines/saga/saga.h12
2 files changed, 13 insertions, 7 deletions
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;