eventflag : changed an assert to log as error

This commit is contained in:
georgemoralis 2024-07-01 00:51:38 +03:00
parent 24f78fac20
commit 90b27352f8
1 changed files with 3 additions and 2 deletions

View File

@ -54,8 +54,9 @@ int PS4_SYSV_ABI sceKernelCreateEventFlag(OrbisKernelEventFlag* ef, const char*
UNREACHABLE(); UNREACHABLE();
} }
ASSERT_MSG(queue_mode == EventFlagInternal::QueueMode::Fifo, if (queue_mode == EventFlagInternal::QueueMode::ThreadPrio) {
"ThreadPriority attr is not supported!"); LOG_ERROR(Kernel_Event, "ThreadPriority attr is not supported!");
}
*ef = new EventFlagInternal(std::string(pName), thread_mode, queue_mode, initPattern); *ef = new EventFlagInternal(std::string(pName), thread_mode, queue_mode, initPattern);
return ORBIS_OK; return ORBIS_OK;