Просмотр исходного кода

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

bunnei 11 лет назад
Родитель
Сommit
69c5830ef2
1 измененных файлов с 4 добавлено и 0 удалено
  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);
     }
 };