From e948aec6cd227d1db738bd7ab033ceeb4e220a89 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 17 Jul 2015 22:41:12 -0700 Subject: [PATCH] DolphinWX: Fix build if libusb is disabled --- Source/Core/DolphinWX/ControllerConfigDiag.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/DolphinWX/ControllerConfigDiag.h b/Source/Core/DolphinWX/ControllerConfigDiag.h index 3c6582a5e1..f679992b54 100644 --- a/Source/Core/DolphinWX/ControllerConfigDiag.h +++ b/Source/Core/DolphinWX/ControllerConfigDiag.h @@ -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)