Disable load from the launcher button for AGOS and Gob games with use of GUI options
svn-id: r41277
This commit is contained in:
parent
472e5906ca
commit
c8aa63e553
3 changed files with 11 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue