From 84a937ae651aa5296535e8feffe47aa1f2b219ab Mon Sep 17 00:00:00 2001 From: TryTwo Date: Tue, 17 Sep 2024 23:29:13 -0700 Subject: Add GFX property tabs to game properties window, allowing them to be set to the user game ini. Additionally, refactor ConfigWidgets to reduce duplication. Refactor GameConfigWidget to use config system. Creates a layer outside the game config layer system and passes it to the created gfx widows, so as to not interfere with the global config system. Supports multiple game properties being open at once. Supports editing while a game is playing, but the options only save and update the active game when the window is closed. Right-clicking will remove a property from the game ini. --- Source/Core/DolphinQt/Config/ConfigControls/ConfigRadio.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/Core/DolphinQt/Config/ConfigControls/ConfigRadio.cpp') diff --git a/Source/Core/DolphinQt/Config/ConfigControls/ConfigRadio.cpp b/Source/Core/DolphinQt/Config/ConfigControls/ConfigRadio.cpp index baaf7e6f48..eba9de283c 100644 --- a/Source/Core/DolphinQt/Config/ConfigControls/ConfigRadio.cpp +++ b/Source/Core/DolphinQt/Config/ConfigControls/ConfigRadio.cpp @@ -3,8 +3,9 @@ #include "DolphinQt/Config/ConfigControls/ConfigRadio.h" -ConfigRadioInt::ConfigRadioInt(const QString& label, const Config::Info& setting, int value) - : ConfigControl(label, setting.GetLocation()), m_setting(setting), m_value(value) +ConfigRadioInt::ConfigRadioInt(const QString& label, const Config::Info& setting, int value, + Config::Layer* layer) + : ConfigControl(label, setting.GetLocation(), layer), m_setting(setting), m_value(value) { setChecked(ReadValue(setting) == value); -- cgit v1.2.3