Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

Kernel/Semaphore: Small style change

Subvea958764318d
diff --git a/src/core/hle/kernel/semaphore.cpp b/src/core/hle/kernel/semaphore.cpp
index 331d32069e..6f56da8a96 100644
--- a/src/core/hle/kernel/semaphore.cpp
+++ b/src/core/hle/kernel/semaphore.cpp
@@ -34,7 +34,7 @@ public:
}
ResultVal<bool> WaitSynchronization() override {
- bool wait = available_count == 0;
+ bool wait = !IsAvailable();
if (wait) {
Kernel::WaitCurrentThread(WAITTYPE_SEMA, GetHandle());