Merge pull request #12616 from mitaclaw/dvd-interface-cpu-thread-guard

DVDInterface: Modernize With CPUThreadGuard
This commit is contained in:
Admiral H. Curtiss 2024-03-17 16:14:56 +01:00 committed by GitHub
commit c964d552c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 39 additions and 32 deletions

View file

@ -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,