diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-01-31 02:56:56 +0100 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-01-31 12:54:07 +0100 |
| commit | 9a3e770c23312f61848adefc7202cb1b800cadff (patch) | |
| tree | 601445f63b85a19940e72f12df130076bb6315cc /Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp | |
| parent | 8d515d407c8b51c8887e2766fb2494aad3f91a1e (diff) | |
Migrate SConfig::bWii to System.
Diffstat (limited to 'Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp b/Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp index 716837a6cb..6fff6b9f37 100644 --- a/Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp +++ b/Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp @@ -28,6 +28,7 @@ #include "Core/IOS/IOS.h" #include "Core/IOS/USB/Bluetooth/BTReal.h" #include "Core/NetPlayProto.h" +#include "Core/System.h" #include "Core/WiiUtils.h" #include "DolphinQt/Config/Mapping/MappingWindow.h" @@ -295,7 +296,7 @@ void WiimoteControllersWidget::LoadSettings(Core::State state) m_wiimote_emu->setEnabled(!running); m_wiimote_passthrough->setEnabled(!running); - const bool running_gc = running && !SConfig::GetInstance().bWii; + const bool running_gc = running && !Core::System::GetInstance().IsWii(); const bool enable_passthrough = m_wiimote_passthrough->isChecked() && !running_gc; const bool enable_emu_bt = !m_wiimote_passthrough->isChecked() && !running_gc; const bool is_netplay = NetPlay::IsNetPlayRunning(); |
