From 084b2ab6d5877e8c1d0d6058890bfe3c1c8f15e8 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Sun, 30 Jun 2024 10:11:44 +0300 Subject: [PATCH] added sceKernelDeleteEventFlag --- src/core/libraries/kernel/event_flag/event_flag.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/libraries/kernel/event_flag/event_flag.cpp b/src/core/libraries/kernel/event_flag/event_flag.cpp index b8cac4f3..96e158e5 100644 --- a/src/core/libraries/kernel/event_flag/event_flag.cpp +++ b/src/core/libraries/kernel/event_flag/event_flag.cpp @@ -61,7 +61,11 @@ int PS4_SYSV_ABI sceKernelCreateEventFlag(OrbisKernelEventFlag* ef, const char* return ORBIS_OK; } int PS4_SYSV_ABI sceKernelDeleteEventFlag(OrbisKernelEventFlag ef) { - LOG_ERROR(Kernel_Event, "(STUBBED) called"); + if (ef == nullptr) { + return ORBIS_KERNEL_ERROR_ESRCH; + } + + delete ef; return ORBIS_OK; } int PS4_SYSV_ABI sceKernelOpenEventFlag() {