From 33559d23db85bef5ceea5e6f8c32be2f45e69fc5 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 11 Nov 2012 19:03:37 -0800 Subject: [PATCH] sceKernelDeleteSema() not returning 0? Seems to be a bug outside this func, adding a comment at least. --- Core/HLE/sceKernelSemaphore.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/HLE/sceKernelSemaphore.cpp b/Core/HLE/sceKernelSemaphore.cpp index 1e2270eaa8..2b22f48c77 100644 --- a/Core/HLE/sceKernelSemaphore.cpp +++ b/Core/HLE/sceKernelSemaphore.cpp @@ -140,7 +140,9 @@ int sceKernelDeleteSema(SceUID id) Semaphore *s = kernelObjects.Get(id, error); if (s) { - // TODO: Should this reschedule? threads/semaphores fails if it doesn't. + // TODO: Should this reschedule? + // threads/semaphore doesn't get final threads if not, but gets wrong result if so. + // Probably it should and there's a bug with the registers? if (__KernelClearSemaThreads(s, SCE_KERNEL_ERROR_WAIT_DELETE)) __KernelReSchedule("semaphore deleted");