ENGINES: Remove support for GUI options in MetaEngineDetection subclasses
This commit is contained in:
parent
0da774a218
commit
2c8a7d3900
14 changed files with 24 additions and 151 deletions
|
@ -395,27 +395,7 @@ void MetaEngine::registerDefaultSettings(const Common::String &) const {
|
|||
}
|
||||
}
|
||||
|
||||
void MetaEngineDetection::registerDefaultSettings(const Common::String &) const {
|
||||
// Note that as we don't pass the target to getExtraGuiOptions
|
||||
// we get all the options, even those not relevant for the current
|
||||
// game. This is necessary because some engines unconditionally
|
||||
// access the configuration.
|
||||
const ExtraGuiOptions engineOptions = getExtraGuiOptions("");
|
||||
for (uint i = 0; i < engineOptions.size(); i++) {
|
||||
ConfMan.registerDefault(engineOptions[i].configOption, engineOptions[i].defaultState);
|
||||
}
|
||||
}
|
||||
|
||||
GUI::OptionsContainerWidget *MetaEngine::buildEngineOptionsWidgetDynamic(GUI::GuiObject *boss, const Common::String &name, const Common::String &target) const {
|
||||
const ExtraGuiOptions engineOptions = getExtraGuiOptions(target);
|
||||
if (engineOptions.empty()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return new GUI::ExtraGuiOptionsWidget(boss, name, target, engineOptions);
|
||||
}
|
||||
|
||||
GUI::OptionsContainerWidget *MetaEngineDetection::buildEngineOptionsWidgetStatic(GUI::GuiObject *boss, const Common::String &name, const Common::String &target) const {
|
||||
GUI::OptionsContainerWidget *MetaEngine::buildEngineOptionsWidget(GUI::GuiObject *boss, const Common::String &name, const Common::String &target) const {
|
||||
const ExtraGuiOptions engineOptions = getExtraGuiOptions(target);
|
||||
if (engineOptions.empty()) {
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue