From 75390be14219839233e0d90deaa589d971f0ba0b Mon Sep 17 00:00:00 2001 From: sum2012 Date: Tue, 30 Aug 2022 20:46:43 +0800 Subject: [PATCH] Fix sceKernelUnlockMutex timing Fix https://github.com/hrydgard/ppsspp/issues/6557 --- Core/HLE/sceKernelMutex.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/HLE/sceKernelMutex.cpp b/Core/HLE/sceKernelMutex.cpp index 899230142b..915baa9e81 100644 --- a/Core/HLE/sceKernelMutex.cpp +++ b/Core/HLE/sceKernelMutex.cpp @@ -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;