Add sfx_mute to simon
svn-id: r11824
This commit is contained in:
parent
5d8516f2ec
commit
522938f7fa
2 changed files with 8 additions and 0 deletions
1
README
1
README
|
@ -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]
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue