mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-05-08 09:02:19 -04:00
GCAdapter: Automatically start and stop thread
This keeps the logic encapsulated inside GCAdapter.cpp so callers don't have to think about it.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user