VERY experimental Nintendo Switch 2 emulator
C++
Fix check is thread current in GetThreadContext
Valeri190e12a07208
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cppindex a90b291daf..890c52198f 100644--- a/src/core/hle/kernel/svc.cpp+++ b/src/core/hle/kernel/svc.cpp@@ -1078,8 +1078,8 @@ static ResultCode GetThreadContext(Core::System& system, VAddr out_context, Handfor (auto i = 0; i < static_cast<s32>(Core::Hardware::NUM_CPU_CORES); ++i) {if (thread.GetPointerUnsafe() == kernel.Scheduler(i).GetCurrentThread()) {current = true;+ break;}- break;}// If the thread is current, retry until it isn't.