Skip to content

Commit

Permalink
Merge pull request #2747 from endrift/fix-non-libusb
Browse files Browse the repository at this point in the history
DolphinWX: Fix build if libusb is disabled
  • Loading branch information
degasus committed Jul 18, 2015
2 parents 35e9ada + e948aec commit 8beb67f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/DolphinWX/ControllerConfigDiag.h
Expand Up @@ -73,10 +73,12 @@ class ControllerConfigDiag : public wxDialog
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)
Expand Down

0 comments on commit 8beb67f

Please sign in to comment.