GUI: Add a tab for backend-specific options

This commit is contained in:
Cameron Cawley 2020-05-11 12:05:56 +01:00 committed by Thierry Crozat
parent c80e1c6b49
commit 11724f9df1
25 changed files with 279 additions and 5 deletions

View file

@ -327,6 +327,19 @@ ConfigDialog::ConfigDialog() :
addKeyMapperControls(tab, "GlobalConfig_KeyMapper.", keymaps, gameDomain);
}
//
// The backend tab (shown only if the backend implements one)
//
int backendTabId = tab->addTab(_("Backend"), "GlobalConfig_Backend");
_backendOptions = g_system->buildBackendOptionsWidget(tab, "GlobalConfig_Backend.Container", _domain);
if (_backendOptions) {
_backendOptions->setParentDialog(this);
} else {
tab->removeTab(backendTabId);
}
//
// The Achievements tab
//