diff options
| author | mathieui <mathieui@mathieui.net> | 2016-05-19 21:52:44 +0200 |
|---|---|---|
| committer | mathieui <mathieui@mathieui.net> | 2016-05-19 22:00:49 +0200 |
| commit | 1bbbe92cd203d39f0aa0da80d5bd41ae641c3e5c (patch) | |
| tree | 8d14e4c166d402e8579a6252dd2748c643676a14 /Source/Core/InputCommon/GCAdapter.cpp | |
| parent | 54b4efff6b14a2dc0be6d6a284be8b27750ceecb (diff) | |
GCAdapter: protect some more functions
Reset() and Setup() are not used outside of this namespace
Diffstat (limited to 'Source/Core/InputCommon/GCAdapter.cpp')
| -rw-r--r-- | Source/Core/InputCommon/GCAdapter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/GCAdapter.cpp b/Source/Core/InputCommon/GCAdapter.cpp index 4728a9f49f..adc0445697 100644 --- a/Source/Core/InputCommon/GCAdapter.cpp +++ b/Source/Core/InputCommon/GCAdapter.cpp @@ -23,6 +23,8 @@ namespace GCAdapter static bool CheckDeviceAccess(libusb_device* device); static void AddGCAdapter(libusb_device* device); static void ResetRumbleLockNeeded(); +static void Reset(); +static void Setup(); static bool s_detected = false; static libusb_device_handle* s_handle = nullptr; @@ -183,7 +185,7 @@ void StopScanThread() } } -void Setup() +static void Setup() { libusb_device** list; ssize_t cnt = libusb_get_device_list(s_libusb_context, &list); @@ -333,7 +335,7 @@ void Shutdown() s_libusb_driver_not_supported = false; } -void Reset() +static void Reset() { std::unique_lock<std::mutex> lock(s_init_mutex, std::defer_lock); if (!lock.try_lock()) |
