diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-04-08 20:33:55 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-05-01 08:54:17 -0700 |
| commit | 0df401b164bbe2b0314b74f1fd6385e852bbe098 (patch) | |
| tree | 9f23d7d5cb33fb3a092d641da621cc9331577b73 /Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp | |
| parent | b71fdef356caf6ca376c0df474212a192951e810 (diff) | |
Core::IsRunning: Avoid Global System Accessor
Diffstat (limited to 'Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp b/Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp index 41c46707ba..d548724c7e 100644 --- a/Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp +++ b/Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp @@ -191,16 +191,16 @@ void GamecubeControllersWidget::SaveSettings() { Config::ConfigChangeCallbackGuard config_guard; + auto& system = Core::System::GetInstance(); for (size_t i = 0; i < m_gc_groups.size(); ++i) { const SerialInterface::SIDevices si_device = FromGCMenuIndex(m_gc_controller_boxes[i]->currentIndex()); Config::SetBaseOrCurrent(Config::GetInfoForSIDevice(static_cast<int>(i)), si_device); - if (Core::IsRunning()) + if (Core::IsRunning(system)) { - Core::System::GetInstance().GetSerialInterface().ChangeDevice(si_device, - static_cast<s32>(i)); + system.GetSerialInterface().ChangeDevice(si_device, static_cast<s32>(i)); } } } |
