summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJeffrey Pfau <jeffrey@endrift.com>2015-07-17 22:41:12 -0700
committerJeffrey Pfau <jeffrey@endrift.com>2015-07-17 22:41:12 -0700
commite948aec6cd227d1db738bd7ab033ceeb4e220a89 (patch)
treeb3bdbf6b1df7c62475ffab8597e7d72e4a745ab8 /Source/Core
parent35e9ada2b01c0b98f223b93eaa20eb925a5297ee (diff)
DolphinWX: Fix build if libusb is disabled
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/ControllerConfigDiag.h2
1 files changed, 2 insertions, 0 deletions
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)