Explorar o código

Event: Fix implementation of "non-sticky" events.

bunnei %!s(int64=11) %!d(string=hai) anos
pai
achega
69c5830ef2
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/core/hle/kernel/event.cpp

+ 4 - 0
src/core/hle/kernel/event.cpp

@@ -33,6 +33,10 @@ public:
     }
 
     ResultVal<bool> Acquire() override {
+        // Release the event if it's not sticky...
+        if (reset_type != RESETTYPE_STICKY)
+            signaled = false;
+
         return MakeResult<bool>(true);
     }
 };