From c8aa63e553dcb727b5eaf5da156ddee19491fc9d Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 6 Jun 2009 17:59:04 +0000 Subject: Disable load from the launcher button for AGOS and Gob games with use of GUI options svn-id: r41277 --- gui/launcher.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'gui') 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(); } -- cgit v1.2.3