Fix sceKernelUnlockMutex timing

Fix https://github.com/hrydgard/ppsspp/issues/6557
This commit is contained in:
sum2012 2022-08-30 20:46:43 +08:00
parent 59813fff6d
commit 75390be142

View file

@ -657,8 +657,10 @@ int sceKernelUnlockMutex(SceUID id, int count)
if (mutex->nm.lockLevel == 0)
{
if (__KernelUnlockMutex(mutex, error))
if (__KernelUnlockMutex(mutex, error)) {
hleReSchedule("mutex unlocked");
return hleDelayResult(0, "unlock", 150);
}
}
return 0;