aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorMax Horn2008-11-04 16:11:40 +0000
committerMax Horn2008-11-04 16:11:40 +0000
commit61aadb378d654425d55b8cf9f91df4283b46de7e (patch)
treec087a5576ecc7f707abd68c596cf5d0955708e91 /engines/saga
parent70679e68951789f70f57a8b900b51b3cf52979b1 (diff)
downloadscummvm-rg350-61aadb378d654425d55b8cf9f91df4283b46de7e.tar.gz
scummvm-rg350-61aadb378d654425d55b8cf9f91df4283b46de7e.tar.bz2
scummvm-rg350-61aadb378d654425d55b8cf9f91df4283b46de7e.zip
Fixed the EngineFeature vs. MetaEngineFeature mess, clarified some EngineFeature comments
svn-id: r34896
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;