diff options
author | Eugene Sandulenko | 2009-06-06 17:59:04 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-06-06 17:59:04 +0000 |
commit | c8aa63e553dcb727b5eaf5da156ddee19491fc9d (patch) | |
tree | f73a8c892ecb71d573c32d1aa0cc782df66f3864 /gui | |
parent | 472e5906cad12161b39a8723b422221554208ce1 (diff) | |
download | scummvm-rg350-c8aa63e553dcb727b5eaf5da156ddee19491fc9d.tar.gz scummvm-rg350-c8aa63e553dcb727b5eaf5da156ddee19491fc9d.tar.bz2 scummvm-rg350-c8aa63e553dcb727b5eaf5da156ddee19491fc9d.zip |
Disable load from the launcher button for AGOS and Gob games with use of GUI options
svn-id: r41277
Diffstat (limited to 'gui')
-rw-r--r-- | gui/launcher.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index 9cdcbda815..7aee7be417 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -948,8 +948,15 @@ void LauncherDialog::updateButtons() { _removeButton->setEnabled(enable); _removeButton->draw(); } - if (enable != _loadButton->isEnabled()) { - _loadButton->setEnabled(enable); + + int item = _list->getSelected(); + bool en = enable; + + if (item >= 0) + en = !(Common::checkGameGUIOption(Common::GUIO_NOLAUNCHLOAD, ConfMan.get("guioptions", _domains[item]))); + + if (en != _loadButton->isEnabled()) { + _loadButton->setEnabled(en); _loadButton->draw(); } |