Merge pull request #14608 from JosJuice/gcadapter-auto-start

GCAdapter: Automatically start and stop thread
This commit is contained in:
Dentomologist
2026-04-24 19:51:51 -07:00
committed by GitHub
6 changed files with 30 additions and 62 deletions
@@ -26,8 +26,6 @@
#include "DolphinQt/QtUtils/SignalBlocking.h"
#include "DolphinQt/Settings.h"
#include "InputCommon/GCAdapter.h"
using SIDeviceName = std::pair<SerialInterface::SIDevices, const char*>;
static constexpr std::array s_gc_types = {
SIDeviceName{SerialInterface::SIDEVICE_NONE, _trans("None")},
@@ -205,10 +203,6 @@ void GamecubeControllersWidget::SaveSettings()
}
}
}
if (GCAdapter::UseAdapter())
GCAdapter::StartScanThread();
else
GCAdapter::StopScanThread();
SConfig::GetInstance().SaveSettings();
}