Merge pull request #2747 from endrift/fix-non-libusb
DolphinWX: Fix build if libusb is disabled
This commit is contained in:
commit
8beb67fd3e
|
@ -73,10 +73,12 @@ private:
|
||||||
void OnGameCubeAdapter(wxCommandEvent& event)
|
void OnGameCubeAdapter(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
SConfig::GetInstance().m_GameCubeAdapter = event.IsChecked();
|
SConfig::GetInstance().m_GameCubeAdapter = event.IsChecked();
|
||||||
|
#ifdef __LIBUSB__
|
||||||
if (event.IsChecked())
|
if (event.IsChecked())
|
||||||
SI_GCAdapter::StartScanThread();
|
SI_GCAdapter::StartScanThread();
|
||||||
else
|
else
|
||||||
SI_GCAdapter::StopScanThread();
|
SI_GCAdapter::StopScanThread();
|
||||||
|
#endif
|
||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
void OnAdapterRumble(wxCommandEvent& event)
|
void OnAdapterRumble(wxCommandEvent& event)
|
||||||
|
|
Loading…
Reference in New Issue