VERY experimental Nintendo Switch 2 emulator
C++
Thread: Updated VerifyWait to be more readable (but functionally the same).
bunnei12e2a5956552
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cppindex 700f4ea7cc..0385a64fde 100644--- a/src/core/hle/kernel/thread.cpp+++ b/src/core/hle/kernel/thread.cpp@@ -146,12 +146,11 @@ void ChangeReadyState(Thread* t, bool ready) {inline bool VerifyWait(const Handle& thread, WaitType type, Handle handle) {Handle wait_id = 0;Thread *t = g_object_pool.GetFast<Thread>(thread);- if (t) {- if (type == t->wait_type && handle == t->wait_handle) {- return true;- }+ if (t != nullptr && type == t->wait_type && handle == t->wait_handle) {+ return true;} else {ERROR_LOG(KERNEL, "thread 0x%08X does not exist", thread);+ return false;}return false;}