Przeglądaj źródła

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

bunnei 11 lat temu
rodzic
commit
69c5830ef2
1 zmienionych plików z 4 dodań i 0 usunięć
  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);
     }
 };