mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
fix discrepancy
This commit is contained in:
parent
2bd553a646
commit
71df5d0398
@ -271,6 +271,10 @@ int PS4_SYSV_ABI sceKernelWaitEqueue(SceKernelEqueue eq, SceKernelEvent* ev, int
|
|||||||
if (eq->HasSmallTimer()) {
|
if (eq->HasSmallTimer()) {
|
||||||
if (timo == nullptr) {
|
if (timo == nullptr) {
|
||||||
*out = eq->WaitForSmallTimer(ev, num, 0);
|
*out = eq->WaitForSmallTimer(ev, num, 0);
|
||||||
|
} else if (*timo == 0) {
|
||||||
|
// Only events that have already arrived at the time of this function call can be
|
||||||
|
// received
|
||||||
|
*out = eq->GetTriggeredEvents(ev, num);
|
||||||
} else {
|
} else {
|
||||||
ASSERT(*timo);
|
ASSERT(*timo);
|
||||||
*out = eq->WaitForSmallTimer(ev, num, *timo);
|
*out = eq->WaitForSmallTimer(ev, num, *timo);
|
||||||
|
Loading…
Reference in New Issue
Block a user