aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorEugene Sandulenko2010-08-25 07:40:52 +0000
committerEugene Sandulenko2010-08-25 07:40:52 +0000
commitc4299cc0c7b789158ebc1e549d02292d2b64f30e (patch)
treec652710b014e2c87c8d210e3f86f216dd77d69a1 /engines/scumm
parent386e38faa5b7ff53a474f63cbf431ca7e7e2a6ce (diff)
downloadscummvm-rg350-c4299cc0c7b789158ebc1e549d02292d2b64f30e.tar.gz
scummvm-rg350-c4299cc0c7b789158ebc1e549d02292d2b64f30e.tar.bz2
scummvm-rg350-c4299cc0c7b789158ebc1e549d02292d2b64f30e.zip
SCUMM: Fix bug #3032758: "SCUMM: Mute setting does not work"
svn-id: r52372
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/scumm.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index 46708b3c4f..b0b86516e7 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -1808,6 +1808,15 @@ void ScummEngine::syncSoundSettings() {
int soundVolumeSfx = ConfMan.getInt("sfx_volume");
int soundVolumeSpeech = ConfMan.getInt("speech_volume");
+ bool mute = false;
+
+ if (ConfMan.hasKey("mute")) {
+ mute = ConfMan.getBool("mute");
+
+ if (mute)
+ soundVolumeMusic = soundVolumeSfx = soundVolumeSpeech = 0;
+ }
+
if (_musicEngine) {
_musicEngine->setMusicVolume(soundVolumeMusic);
}