VERY experimental Nintendo Switch 2 emulator
C++
Kernel/Semaphore: Fixed a regression in semaphore waits.
Subvf8d98e241dbc
diff --git a/src/core/hle/kernel/semaphore.cpp b/src/core/hle/kernel/semaphore.cppindex 5e6139265d..8bda2f75df 100644--- a/src/core/hle/kernel/semaphore.cpp+++ b/src/core/hle/kernel/semaphore.cpp@@ -35,7 +35,8 @@ bool Semaphore::ShouldWait(Thread* thread) const {}void Semaphore::Acquire(Thread* thread) {- ASSERT_MSG(!ShouldWait(thread), "object unavailable!");+ if (available_count <= 0)+ return;--available_count;}