aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorTravis Howell2003-12-21 16:55:50 +0000
committerTravis Howell2003-12-21 16:55:50 +0000
commitfdbceaf5e3292beaf2b70ff5ea46845d06b447d0 (patch)
treed6d46a5c17980f95668e96f59fd8cd4b6097f0f6 /simon
parent522938f7fad976edd4fe9cdb166ba821baaf9340 (diff)
downloadscummvm-rg350-fdbceaf5e3292beaf2b70ff5ea46845d06b447d0.tar.gz
scummvm-rg350-fdbceaf5e3292beaf2b70ff5ea46845d06b447d0.tar.bz2
scummvm-rg350-fdbceaf5e3292beaf2b70ff5ea46845d06b447d0.zip
Add music_mute config option to Simon 1/2
svn-id: r11825
Diffstat (limited to 'simon')
-rw-r--r--simon/simon.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 2c0b6bc27a..7b72d5dcba 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -556,6 +556,9 @@ SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst)
_debugLevel = ConfMan.getInt("debuglevel");
_language = Common::parseLanguage(ConfMan.get("language"));
+ if (ConfMan.hasKey("music_mute") && ConfMan.getBool("music_mute") == 1)
+ midi.pause(_music_paused ^= 1);
+
if ((_game & GF_SIMON2) && ConfMan.hasKey("speech_mute") && ConfMan.getBool("speech_mute") == 1)
_speech = 0;