aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorEugene Sandulenko2009-06-06 17:59:04 +0000
committerEugene Sandulenko2009-06-06 17:59:04 +0000
commitc8aa63e553dcb727b5eaf5da156ddee19491fc9d (patch)
treef73a8c892ecb71d573c32d1aa0cc782df66f3864 /gui
parent472e5906cad12161b39a8723b422221554208ce1 (diff)
downloadscummvm-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.cpp11
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();
}