aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configure_cpu.cpp
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2021-09-02 21:40:55 -0400
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-10-07 13:50:13 -0400
commitfb66a455c4c7c1e196fc1001a52325a33e50b127 (patch)
tree97782dab7d9b57b119c765e73a585a6b90484a43 /src/yuzu/configuration/configure_cpu.cpp
parentf84328934f5e09894a69d9fa1d2f6a34c715321b (diff)
yuzu qt: Remove global system instances from config, WaitTree, main
Diffstat (limited to 'src/yuzu/configuration/configure_cpu.cpp')
-rw-r--r--src/yuzu/configuration/configure_cpu.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_cpu.cpp b/src/yuzu/configuration/configure_cpu.cpp
index 784b6484e6..a232e8970b 100644
--- a/src/yuzu/configuration/configure_cpu.cpp
+++ b/src/yuzu/configuration/configure_cpu.cpp
@@ -13,7 +13,8 @@
#include "yuzu/configuration/configuration_shared.h"
#include "yuzu/configuration/configure_cpu.h"
-ConfigureCpu::ConfigureCpu(QWidget* parent) : QWidget(parent), ui(new Ui::ConfigureCpu) {
+ConfigureCpu::ConfigureCpu(Core::System& system_, QWidget* parent)
+ : QWidget(parent), ui(new Ui::ConfigureCpu), system{system_} {
ui->setupUi(this);
SetupPerGameUI();
@@ -27,7 +28,7 @@ ConfigureCpu::ConfigureCpu(QWidget* parent) : QWidget(parent), ui(new Ui::Config
ConfigureCpu::~ConfigureCpu() = default;
void ConfigureCpu::SetConfiguration() {
- const bool runtime_lock = !Core::System::GetInstance().IsPoweredOn();
+ const bool runtime_lock = !system.IsPoweredOn();
ui->accuracy->setEnabled(runtime_lock);
ui->cpuopt_unsafe_unfuse_fma->setEnabled(runtime_lock);