aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorVladimir Menshakov2011-06-23 23:52:59 +0400
committerVladimir Menshakov2011-06-23 23:52:59 +0400
commit8148f4d81d250ae66d5ac015161227fa1f78814e (patch)
treeb6bacea8b58827adc95f744319fb2c4badaa6fc3 /engines
parente30b41b28e536f18b3c5d2d323c0d808dc1328df (diff)
downloadscummvm-rg350-8148f4d81d250ae66d5ac015161227fa1f78814e.tar.gz
scummvm-rg350-8148f4d81d250ae66d5ac015161227fa1f78814e.tar.bz2
scummvm-rg350-8148f4d81d250ae66d5ac015161227fa1f78814e.zip
DREAMWEB: Added ui settings integration
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/dreamweb.cpp4
1 files changed, 4 insertions, 0 deletions
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();