diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/configuration/configure_audio.cpp | 4 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_cpu.cpp | 4 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_graphics.cpp | 8 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_graphics_advanced.cpp | 4 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_system.cpp | 4 |
5 files changed, 22 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_audio.cpp b/src/yuzu/configuration/configure_audio.cpp index 9f9e4df8b..98c6b6f44 100644 --- a/src/yuzu/configuration/configure_audio.cpp +++ b/src/yuzu/configuration/configure_audio.cpp | |||
| @@ -47,6 +47,10 @@ void ConfigureAudio::Setup() { | |||
| 47 | push(Settings::Category::SystemAudio); | 47 | push(Settings::Category::SystemAudio); |
| 48 | 48 | ||
| 49 | for (auto* setting : settings) { | 49 | for (auto* setting : settings) { |
| 50 | if (!Settings::IsConfiguringGlobal() && !setting->Switchable()) { | ||
| 51 | continue; | ||
| 52 | } | ||
| 53 | |||
| 50 | auto* widget = [&]() { | 54 | auto* widget = [&]() { |
| 51 | if (setting->Id() == Settings::values.volume.Id()) { | 55 | if (setting->Id() == Settings::values.volume.Id()) { |
| 52 | // volume needs to be a slider (default is line edit) | 56 | // volume needs to be a slider (default is line edit) |
diff --git a/src/yuzu/configuration/configure_cpu.cpp b/src/yuzu/configuration/configure_cpu.cpp index 3f321039f..f4bec1155 100644 --- a/src/yuzu/configuration/configure_cpu.cpp +++ b/src/yuzu/configuration/configure_cpu.cpp | |||
| @@ -50,6 +50,10 @@ void ConfigureCpu::Setup() { | |||
| 50 | push(Settings::Category::CpuUnsafe); | 50 | push(Settings::Category::CpuUnsafe); |
| 51 | 51 | ||
| 52 | for (const auto setting : settings) { | 52 | for (const auto setting : settings) { |
| 53 | if (!Settings::IsConfiguringGlobal() && !setting->Switchable()) { | ||
| 54 | continue; | ||
| 55 | } | ||
| 56 | |||
| 53 | auto* widget = new ConfigurationShared::Widget(setting, translations, combobox_translations, | 57 | auto* widget = new ConfigurationShared::Widget(setting, translations, combobox_translations, |
| 54 | this, runtime_lock, apply_funcs); | 58 | this, runtime_lock, apply_funcs); |
| 55 | 59 | ||
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp index 4d638a11b..9afab6d91 100644 --- a/src/yuzu/configuration/configure_graphics.cpp +++ b/src/yuzu/configuration/configure_graphics.cpp | |||
| @@ -231,6 +231,10 @@ void ConfigureGraphics::Setup() { | |||
| 231 | std::forward_list<QWidget*> hold_api; | 231 | std::forward_list<QWidget*> hold_api; |
| 232 | 232 | ||
| 233 | for (const auto setting : Settings::values.linkage.by_category[Settings::Category::Renderer]) { | 233 | for (const auto setting : Settings::values.linkage.by_category[Settings::Category::Renderer]) { |
| 234 | if (!Settings::IsConfiguringGlobal() && !setting->Switchable()) { | ||
| 235 | continue; | ||
| 236 | } | ||
| 237 | |||
| 234 | ConfigurationShared::Widget* widget = [&]() { | 238 | ConfigurationShared::Widget* widget = [&]() { |
| 235 | // Set managed to false on these and set up the comboboxes ourselves | 239 | // Set managed to false on these and set up the comboboxes ourselves |
| 236 | if (setting->Id() == Settings::values.vulkan_device.Id() || | 240 | if (setting->Id() == Settings::values.vulkan_device.Id() || |
| @@ -273,8 +277,8 @@ void ConfigureGraphics::Setup() { | |||
| 273 | [=](bool) { UpdateAPILayout(); }); | 277 | [=](bool) { UpdateAPILayout(); }); |
| 274 | 278 | ||
| 275 | // Detach API's restore button and place it where we want | 279 | // Detach API's restore button and place it where we want |
| 276 | // Lets us put it on the side, and it will automatically scale if there's a second | 280 | // Lets us put it on the side, and it will automatically scale if there's a |
| 277 | // combobox (shader_backend, vulkan_device) | 281 | // second combobox (shader_backend, vulkan_device) |
| 278 | widget->layout()->removeWidget(api_restore_global_button); | 282 | widget->layout()->removeWidget(api_restore_global_button); |
| 279 | api_layout->addWidget(api_restore_global_button); | 283 | api_layout->addWidget(api_restore_global_button); |
| 280 | } | 284 | } |
diff --git a/src/yuzu/configuration/configure_graphics_advanced.cpp b/src/yuzu/configuration/configure_graphics_advanced.cpp index 843af230b..20ca3fa96 100644 --- a/src/yuzu/configuration/configure_graphics_advanced.cpp +++ b/src/yuzu/configuration/configure_graphics_advanced.cpp | |||
| @@ -35,6 +35,10 @@ void ConfigureGraphicsAdvanced::SetConfiguration() { | |||
| 35 | 35 | ||
| 36 | for (auto setting : | 36 | for (auto setting : |
| 37 | Settings::values.linkage.by_category[Settings::Category::RendererAdvanced]) { | 37 | Settings::values.linkage.by_category[Settings::Category::RendererAdvanced]) { |
| 38 | if (!Settings::IsConfiguringGlobal() && !setting->Switchable()) { | ||
| 39 | continue; | ||
| 40 | } | ||
| 41 | |||
| 38 | ConfigurationShared::Widget* widget = new ConfigurationShared::Widget( | 42 | ConfigurationShared::Widget* widget = new ConfigurationShared::Widget( |
| 39 | setting, translations, combobox_translations, this, runtime_lock, apply_funcs); | 43 | setting, translations, combobox_translations, this, runtime_lock, apply_funcs); |
| 40 | 44 | ||
diff --git a/src/yuzu/configuration/configure_system.cpp b/src/yuzu/configuration/configure_system.cpp index ffcbab6d9..b9d58b083 100644 --- a/src/yuzu/configuration/configure_system.cpp +++ b/src/yuzu/configuration/configure_system.cpp | |||
| @@ -123,6 +123,10 @@ void ConfigureSystem::Setup() { | |||
| 123 | push(Settings::values.linkage.by_category[Settings::Category::System]); | 123 | push(Settings::values.linkage.by_category[Settings::Category::System]); |
| 124 | 124 | ||
| 125 | for (auto setting : settings) { | 125 | for (auto setting : settings) { |
| 126 | if (!Settings::IsConfiguringGlobal() && !setting->Switchable()) { | ||
| 127 | continue; | ||
| 128 | } | ||
| 129 | |||
| 126 | [[maybe_unused]] std::string label = setting->GetLabel(); | 130 | [[maybe_unused]] std::string label = setting->GetLabel(); |
| 127 | ConfigurationShared::Widget* widget = [=]() { | 131 | ConfigurationShared::Widget* widget = [=]() { |
| 128 | if (setting->Id() == Settings::values.custom_rtc.Id()) { | 132 | if (setting->Id() == Settings::values.custom_rtc.Id()) { |