mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-25 22:08:40 +00:00
GCAdapter: protect some more functions
Reset() and Setup() are not used outside of this namespace
This commit is contained in:
parent
54b4efff6b
commit
1bbbe92cd2
4 changed files with 9 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue