From fdbceaf5e3292beaf2b70ff5ea46845d06b447d0 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 21 Dec 2003 16:55:50 +0000 Subject: Add music_mute config option to Simon 1/2 svn-id: r11825 --- simon/simon.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'simon') 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; -- cgit v1.2.3