mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-14 04:38:09 -05:00
FIXME configuration: Avoid unnecessary allocations
ConfigurationShared::Widget needs to be created with a builder. This would avoid some duplicated code.
This commit is contained in:
@ -50,6 +50,10 @@ void ConfigureCpu::Setup() {
|
||||
push(Settings::Category::CpuUnsafe);
|
||||
|
||||
for (const auto setting : settings) {
|
||||
if (!Settings::IsConfiguringGlobal() && !setting->Switchable()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
auto* widget = new ConfigurationShared::Widget(setting, translations, combobox_translations,
|
||||
this, runtime_lock, apply_funcs);
|
||||
|
||||
|
Reference in New Issue
Block a user