From 522938f7fad976edd4fe9cdb166ba821baaf9340 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 21 Dec 2003 16:51:31 +0000 Subject: Add sfx_mute to simon svn-id: r11824 --- simon/simon.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'simon') diff --git a/simon/simon.cpp b/simon/simon.cpp index 29aa790900..2c0b6bc27a 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -4776,6 +4776,13 @@ void SimonEngine::go() { _sound = new SimonSound(_game, gss, _gameDataPath, _mixer); + if (ConfMan.hasKey("sfx_mute") && ConfMan.getBool("sfx_mute") == 1) { + if (_game == GAME_SIMON1DOS) + midi._enable_sfx ^= 1; + else + _sound->effectsPause(_effects_paused ^= 1); + } + loadGamePcFile(gss->gamepc_filename); addTimeEvent(0, 1); -- cgit v1.2.3