diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-03-04 16:45:25 -0800 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-03-08 15:17:41 -0800 |
| commit | fe61efcd7a6539db9820c583de5c4ad2518769a6 (patch) | |
| tree | eb224bd5629243579721a4cada2b8d0089a76d5a /Source/Android/jni/MainAndroid.cpp | |
| parent | 8f6fd912f7ef3d744661cfdd0c9c33d44c223310 (diff) | |
DVDInterface: Modernize With CPUThreadGuard
Diffstat (limited to 'Source/Android/jni/MainAndroid.cpp')
| -rw-r--r-- | Source/Android/jni/MainAndroid.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Android/jni/MainAndroid.cpp b/Source/Android/jni/MainAndroid.cpp index 6a74cabd87..27374cb83a 100644 --- a/Source/Android/jni/MainAndroid.cpp +++ b/Source/Android/jni/MainAndroid.cpp @@ -635,7 +635,8 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_ChangeDisc(J HostThreadLock guard; const std::string path = GetJString(env, jFile); __android_log_print(ANDROID_LOG_INFO, DOLPHIN_TAG, "Change Disc: %s", path.c_str()); - Core::RunAsCPUThread([&path] { Core::System::GetInstance().GetDVDInterface().ChangeDisc(path); }); + auto& system = Core::System::GetInstance(); + system.GetDVDInterface().ChangeDisc(Core::CPUThreadGuard{system}, path); } JNIEXPORT jobject JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_GetLogTypeNames(JNIEnv* env, |
