From b9af0c4d127e4ced0844bc32ff85ade7d63c2b46 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 10 Mar 2015 19:16:33 +0100 Subject: [PATCH] GC Adapter: Do not abort if some libusb functions are not supported Also remove a typo. --- Source/Core/Core/HW/SI_GCAdapter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/HW/SI_GCAdapter.cpp b/Source/Core/Core/HW/SI_GCAdapter.cpp index 6a81bedbdc..99d2362841 100644 --- a/Source/Core/Core/HW/SI_GCAdapter.cpp +++ b/Source/Core/Core/HW/SI_GCAdapter.cpp @@ -104,7 +104,7 @@ void Setup() int dRet = libusb_get_device_descriptor(device, &desc); if (dRet) { - // could not aquire the descriptor, no point in trying to use it. + // could not acquire the descriptor, no point in trying to use it. ERROR_LOG(SERIALINTERFACE, "libusb_get_device_descriptor failed with error: %d", dRet); continue; } @@ -153,7 +153,7 @@ void Setup() } // this split is needed so that we don't avoid claiming the interface when // detaching the kernel driver is successful - if (ret != 0) + if (ret != 0 && ret != LIBUSB_ERROR_NOT_SUPPORTED) { continue; }