VERY experimental Nintendo Switch 2 emulator
C++
event: added SetEventLocked method to change status an events lock
bunneibeea6f054ae0
diff --git a/src/core/hle/kernel/event.cpp b/src/core/hle/kernel/event.cppindex cc15ba9bc7..e85f39f0d2 100644--- a/src/core/hle/kernel/event.cpp+++ b/src/core/hle/kernel/event.cpp@@ -50,6 +50,17 @@ public:}};+/**+ * Changes whether an event is locked or not+ * @param handle Handle to event to change+ * @param locked Boolean locked value to set event+ */+void SetEventLocked(const Handle handle, const bool locked) {+ Event* evt = g_object_pool.GetFast<Event>(handle);+ evt->locked = locked;+ return;+}+/*** Clears an event* @param handle Handle to event to cleardiff --git a/src/core/hle/kernel/event.h b/src/core/hle/kernel/event.hindex 2ef1bd65b1..0bcfe00b70 100644--- a/src/core/hle/kernel/event.h+++ b/src/core/hle/kernel/event.h@@ -11,6 +11,13 @@namespace Kernel {+/**+ * Changes whether an event is locked or not+ * @param handle Handle to event to change+ * @param locked Boolean locked value to set event+ */+void SetEventLocked(const Handle handle, const bool locked)+/*** Clears an event* @param handle Handle to event to clear