RCS file: /cvsroot/scummvm/scummvm/base/gameDetector.cpp,v
retrieving revision 1.116
diff -u -r1.116 gameDetector.cpp
|
|
|
144 | 144 | ConfMan.registerDefault("platform", Common::kPlatformPC); |
145 | 145 | ConfMan.registerDefault("language", "en"); |
146 | 146 | ConfMan.registerDefault("speech_mute", false); |
| 147 | ConfMan.registerDefault("sfx_mute", false); |
147 | 148 | ConfMan.registerDefault("subtitles", false); |
148 | 149 | ConfMan.registerDefault("boot_param", 0); |
149 | 150 | ConfMan.registerDefault("save_slot", -1); |
RCS file: /cvsroot/scummvm/scummvm/sky/control.cpp,v
retrieving revision 1.95
diff -u -r1.95 control.cpp
|
|
|
708 | 708 | pButton->_text = 0x7000 + 86; |
709 | 709 | _statusBar->setToText(0x7000 + 86); |
710 | 710 | } |
| 711 | |
| 712 | ConfMan.set("sfx_mute", (SkyEngine::_systemVars.systemFlags & SF_FX_OFF) != 0); |
| 713 | |
711 | 714 | pButton->drawToScreen(WITH_MASK); |
712 | 715 | buttonControl(pButton); |
713 | 716 | _system->updateScreen(); |
… |
… |
|
731 | 734 | } |
732 | 735 | |
733 | 736 | ConfMan.set("subtitles", (flags & SF_ALLOW_TEXT) != 0); |
| 737 | ConfMan.set("speech_mute", (flags & SF_ALLOW_SPEECH) == 0); |
734 | 738 | |
735 | 739 | SkyEngine::_systemVars.systemFlags |= flags; |
736 | 740 | |
RCS file: /cvsroot/scummvm/scummvm/sky/sky.cpp,v
retrieving revision 1.177
diff -u -r1.177 sky.cpp
|
|
|
283 | 283 | if (!_mixer->isReady()) |
284 | 284 | warning("Sound initialisation failed"); |
285 | 285 | |
| 286 | if (ConfMan.getBool("sfx_mute")) { |
| 287 | SkyEngine::_systemVars.systemFlags |= SF_FX_OFF; |
| 288 | } |
286 | 289 | _mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, ConfMan.getInt("sfx_volume")); |
287 | 290 | _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, ConfMan.getInt("music_volume")); |
288 | 291 | _floppyIntro = ConfMan.getBool("alt_intro"); |
… |
… |
|
305 | 308 | } |
306 | 309 | |
307 | 310 | if (isCDVersion()) { |
308 | | _systemVars.systemFlags |= SF_ALLOW_SPEECH; |
309 | 311 | if (ConfMan.hasKey("nosubtitles")) { |
310 | 312 | warning("Configuration key 'nosubtitles' is deprecated. Use 'subtitles' instead"); |
311 | 313 | if (!ConfMan.getBool("nosubtitles")) |
… |
… |
|
314 | 316 | |
315 | 317 | if (ConfMan.getBool("subtitles")) |
316 | 318 | _systemVars.systemFlags |= SF_ALLOW_TEXT; |
| 319 | |
| 320 | if (!ConfMan.getBool("speech_mute")) |
| 321 | _systemVars.systemFlags |= SF_ALLOW_SPEECH; |
| 322 | |
317 | 323 | } else |
318 | 324 | _systemVars.systemFlags |= SF_ALLOW_TEXT; |
319 | 325 | |