From e862172460640188363873b9fa1fb46a3f4c7f78 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 27 Dec 2014 14:29:17 +0200 Subject: ZVISION: Add some advanced engine features, and document the engine --- engines/zvision/zvision.cpp | 10 ++++++++++ engines/zvision/zvision.h | 14 ++++++++++++++ 2 files changed, 24 insertions(+) (limited to 'engines') 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(); -- cgit v1.2.3