aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2014-12-27 14:29:17 +0200
committerFilippos Karapetis2014-12-27 14:29:57 +0200
commite862172460640188363873b9fa1fb46a3f4c7f78 (patch)
tree8f6d1c70583d5372216b360437da68ccb13592a4
parentba40b3ea4905716fc8dd6f01bfec6d414b6b9a58 (diff)
downloadscummvm-rg350-e862172460640188363873b9fa1fb46a3f4c7f78.tar.gz
scummvm-rg350-e862172460640188363873b9fa1fb46a3f4c7f78.tar.bz2
scummvm-rg350-e862172460640188363873b9fa1fb46a3f4c7f78.zip
ZVISION: Add some advanced engine features, and document the engine
-rw-r--r--engines/zvision/zvision.cpp10
-rw-r--r--engines/zvision/zvision.h14
2 files changed, 24 insertions, 0 deletions
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp
index 5f4924d7cf..03103553cc 100644
--- a/engines/zvision/zvision.cpp
+++ b/engines/zvision/zvision.cpp
@@ -345,6 +345,16 @@ bool ZVision::canRender() {
return _frameRenderDelay <= 0;
}
+GUI::Debugger *ZVision::getDebugger() {
+ return _console;
+}
+
+void ZVision::syncSoundSettings() {
+ Engine::syncSoundSettings();
+
+ _scriptManager->setStateValue(StateKey_Subtitles, ConfMan.getBool("subtitles") ? 1 : 0);
+}
+
void ZVision::fpsTimerCallback(void *refCon) {
((ZVision *)refCon)->fpsTimer();
}
diff --git a/engines/zvision/zvision.h b/engines/zvision/zvision.h
index 5482060cd0..ad22ddaaa2 100644
--- a/engines/zvision/zvision.h
+++ b/engines/zvision/zvision.h
@@ -41,6 +41,17 @@ namespace Video {
class VideoDecoder;
}
+/**
+ * This is the namespace of the ZVision engine.
+ *
+ * Status of this engine: complete
+ *
+ * Games using this engine:
+ * - Zork Nemesis: The Forbidden Lands
+ * - Zork: Grand Inquisitor
+ *
+ */
+
namespace ZVision {
struct ZVisionGameDescription;
@@ -205,6 +216,9 @@ public:
return _fps;
}
+ GUI::Debugger *getDebugger();
+ void syncSoundSettings();
+
void loadSettings();
void saveSettings();