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_Android.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_Android.cpp')
| -rw-r--r-- | Source/Core/InputCommon/GCAdapter_Android.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/GCAdapter_Android.cpp b/Source/Core/InputCommon/GCAdapter_Android.cpp index 46ec417f2b..b05a066478 100644 --- a/Source/Core/InputCommon/GCAdapter_Android.cpp +++ b/Source/Core/InputCommon/GCAdapter_Android.cpp @@ -24,6 +24,9 @@ extern JavaVM* g_java_vm; namespace GCAdapter { +static void Setup(); +static void Reset(); + // Java classes static jclass s_adapter_class; @@ -207,7 +210,7 @@ void Init() StartScanThread(); } -void Setup() +static void Setup() { s_fd = 0; s_detected = true; @@ -220,7 +223,7 @@ void Setup() s_read_adapter_thread = std::thread(Read); } -void Reset() +static void Reset() { if (!s_detected) return; |
