diff options
| author | Travis Howell | 2003-12-21 16:51:31 +0000 |
|---|---|---|
| committer | Travis Howell | 2003-12-21 16:51:31 +0000 |
| commit | 522938f7fad976edd4fe9cdb166ba821baaf9340 (patch) | |
| tree | 0bf7e833b71493c363961a6503db516fc4093540 | |
| parent | 5d8516f2ec76bdfe4f255601d8b47b345794cbb3 (diff) | |
| download | scummvm-rg350-522938f7fad976edd4fe9cdb166ba821baaf9340.tar.gz scummvm-rg350-522938f7fad976edd4fe9cdb166ba821baaf9340.tar.bz2 scummvm-rg350-522938f7fad976edd4fe9cdb166ba821baaf9340.zip | |
Add sfx_mute to simon
svn-id: r11824
| -rw-r--r-- | README | 1 | ||||
| -rw-r--r-- | simon/simon.cpp | 7 |
2 files changed, 8 insertions, 0 deletions
@@ -867,6 +867,7 @@ Simon the Sorcerer 1 & 2 add the following non-standard keywords: fade bool If true, fade effect is enabled slow_down number Makes games slower (1- 10) + sfx_mute bool If true, sound effects are muted speech_mute bool If true, speech is muted [Simon the Sorcerer 2 only] 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); |
