diff options
author | Torbjörn Andersson | 2007-03-10 18:25:37 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2007-03-10 18:25:37 +0000 |
commit | d7e9510265aefd0e4085f95f07619af9a37dc1ba (patch) | |
tree | b4355df2d34d0b74ff39c16164839fb3dc4b6ada /gui | |
parent | 8d4e8adef3bc2f51d0cd64038bc7dca46d7dd402 (diff) | |
download | scummvm-rg350-d7e9510265aefd0e4085f95f07619af9a37dc1ba.tar.gz scummvm-rg350-d7e9510265aefd0e4085f95f07619af9a37dc1ba.tar.bz2 scummvm-rg350-d7e9510265aefd0e4085f95f07619af9a37dc1ba.zip |
Updated the conditions for the "override" checkboxes. Most of it is probably
only noticeable if you edit the config file manually, but the volume settings
should definitely affect the Audio override if there is no separate Volume tab.
svn-id: r26066
Diffstat (limited to 'gui')
-rw-r--r-- | gui/launcher.cpp | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index 124059ff8e..3a3527523f 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -284,30 +284,38 @@ void EditGameDialog::open() { OptionsDialog::open(); int sel, i; - bool e; + bool e, f; // En-/disable dialog items depending on whether overrides are active or not. - e = ConfMan.hasKey("fullscreen", _domain) || + e = ConfMan.hasKey("gfx_mode", _domain) || + ConfMan.hasKey("render_mode", _domain) || + ConfMan.hasKey("fullscreen", _domain) || ConfMan.hasKey("aspect_ratio", _domain); _globalGraphicsOverride->setState(e); e = ConfMan.hasKey("music_driver", _domain) || + ConfMan.hasKey("output_rate", _domain) || ConfMan.hasKey("subtitles", _domain) || ConfMan.hasKey("talkspeed", _domain); - _globalAudioOverride->setState(e); - e = ConfMan.hasKey("multi_midi", _domain) || - ConfMan.hasKey("native_mt32", _domain)|| - ConfMan.hasKey("enable_gs", _domain); - _globalMIDIOverride->setState(e); - - e = ConfMan.hasKey("music_volume", _domain) || + f = ConfMan.hasKey("music_volume", _domain) || ConfMan.hasKey("sfx_volume", _domain) || ConfMan.hasKey("speech_volume", _domain); - if (_globalVolumeOverride) - _globalVolumeOverride->setState(e); + if (_globalVolumeOverride) { + _globalAudioOverride->setState(e); + _globalVolumeOverride->setState(f); + } else { + _globalAudioOverride->setState(e || f); + } + + e = ConfMan.hasKey("soundfont", _domain) || + ConfMan.hasKey("multi_midi", _domain) || + ConfMan.hasKey("native_mt32", _domain) || + ConfMan.hasKey("enable_gs", _domain) || + ConfMan.hasKey("midi_gain", _domain); + _globalMIDIOverride->setState(e); // TODO: game path |