DolphinWX: Fix build if libusb is disabled

This commit is contained in:
Jeffrey Pfau 2015-07-17 22:41:12 -07:00
parent 35e9ada2b0
commit e948aec6cd
1 changed files with 2 additions and 0 deletions

View File

@ -73,10 +73,12 @@ private:
void OnGameCubeAdapter(wxCommandEvent& event)
{
SConfig::GetInstance().m_GameCubeAdapter = event.IsChecked();
#ifdef __LIBUSB__
if (event.IsChecked())
SI_GCAdapter::StartScanThread();
else
SI_GCAdapter::StopScanThread();
#endif
event.Skip();
}
void OnAdapterRumble(wxCommandEvent& event)