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 | |
| 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
| -rw-r--r-- | engines/agos/detection.cpp | 2 | ||||
| -rw-r--r-- | engines/gob/detection.cpp | 2 | ||||
| -rw-r--r-- | gui/launcher.cpp | 11 |
3 files changed, 11 insertions, 4 deletions
diff --git a/engines/agos/detection.cpp b/engines/agos/detection.cpp index d44081967f..7877e19646 100644 --- a/engines/agos/detection.cpp +++ b/engines/agos/detection.cpp @@ -100,7 +100,7 @@ static const ADParams detectionParams = { // Flags 0, // Additional GUI options (for every game} - Common::GUIO_NONE + Common::GUIO_NOLAUNCHLOAD }; using namespace AGOS; diff --git a/engines/gob/detection.cpp b/engines/gob/detection.cpp index 776a3b8c2a..04e50fdbc0 100644 --- a/engines/gob/detection.cpp +++ b/engines/gob/detection.cpp @@ -3677,7 +3677,7 @@ static const ADParams detectionParams = { // Flags 0, // Additional GUI options (for every game} - Common::GUIO_NONE + Common::GUIO_NOLAUNCHLOAD }; class GobMetaEngine : public AdvancedMetaEngine { 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(); } |
