From 8148f4d81d250ae66d5ac015161227fa1f78814e Mon Sep 17 00:00:00 2001 From: Vladimir Menshakov Date: Thu, 23 Jun 2011 23:52:59 +0400 Subject: DREAMWEB: Added ui settings integration --- engines/dreamweb/dreamweb.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines') diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp index 0b8c843e84..590f071b6b 100644 --- a/engines/dreamweb/dreamweb.cpp +++ b/engines/dreamweb/dreamweb.cpp @@ -468,6 +468,9 @@ void DreamWebEngine::playSound(uint8 channel, uint8 id, uint8 loops) { } bool DreamWebEngine::loadSpeech(const Common::String &filename) { + if (ConfMan.getBool("speech_mute")) + return false; + Common::File file; if (!file.open("speech/" + filename)) return false; @@ -483,6 +486,7 @@ bool DreamWebEngine::loadSpeech(const Common::String &filename) { void DreamWebEngine::soundHandler() { + _context.data.byte(_context.kSubtitles) = ConfMan.getBool("subtitles"); _context.push(_context.ax); _context.volumeadjust(); _context.ax = _context.pop(); -- cgit v1.2.3