diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2019-03-07 18:44:23 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2019-03-11 15:46:04 -0500 |
| commit | 49218c32ed0737dc69e5a01e342d08ac1cf5f52c (patch) | |
| tree | 3bb89eb1f52a40a4482deee552ae74adaa216a38 /Source/Core/DolphinQt/Config/ControllersWindow.cpp | |
| parent | 909e9322e78ecbe45f6982dd5226bcbe6bc74e68 (diff) | |
WiimoteReal: Improve state changes and minor code cleanups.
Diffstat (limited to 'Source/Core/DolphinQt/Config/ControllersWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/ControllersWindow.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Config/ControllersWindow.cpp b/Source/Core/DolphinQt/Config/ControllersWindow.cpp index 75d99495a8..fb5813bdc1 100644 --- a/Source/Core/DolphinQt/Config/ControllersWindow.cpp +++ b/Source/Core/DolphinQt/Config/ControllersWindow.cpp @@ -496,11 +496,8 @@ void ControllersWindow::SaveSettings() for (size_t i = 0; i < m_wiimote_groups.size(); i++) { const int index = m_wiimote_boxes[i]->currentIndex(); - g_wiimote_sources[i] = index; m_wiimote_buttons[i]->setEnabled(index != 0 && index != 2); - - if (Core::IsRunning()) - WiimoteReal::ChangeWiimoteSource(static_cast<u32>(i), index); + WiimoteReal::ChangeWiimoteSource(static_cast<u32>(i), index); } UICommon::SaveWiimoteSources(); |
