From cc01a603474b66053a2cf5a6104ff637ed144cfe Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 18 Apr 2026 16:56:25 +0200 Subject: GCAdapter: Automatically start and stop thread This keeps the logic encapsulated inside GCAdapter.cpp so callers don't have to think about it. --- Source/Android/jni/MainAndroid.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'Source/Android/jni/MainAndroid.cpp') diff --git a/Source/Android/jni/MainAndroid.cpp b/Source/Android/jni/MainAndroid.cpp index 7112833403..0e841b6d7e 100644 --- a/Source/Android/jni/MainAndroid.cpp +++ b/Source/Android/jni/MainAndroid.cpp @@ -56,8 +56,6 @@ #include "DiscIO/ScrubbedBlob.h" #include "DiscIO/Volume.h" -#include "InputCommon/GCAdapter.h" - #include "UICommon/GameFile.h" #include "UICommon/UICommon.h" @@ -533,20 +531,6 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_ResetDolphin UICommon::SetUserDirectory(File::GetUserPath(D_USER_IDX)); } -JNIEXPORT void JNICALL -Java_org_dolphinemu_dolphinemu_NativeLibrary_UpdateGCAdapterScanThread(JNIEnv*, jclass) -{ - HostThreadLock guard; - if (GCAdapter::UseAdapter()) - { - GCAdapter::StartScanThread(); - } - else - { - GCAdapter::StopScanThread(); - } -} - JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_Initialize(JNIEnv*, jclass) { HostThreadLock guard; -- cgit v1.2.3