From 25f1001db3991b8d3ec4b18f3a76e28af4c52fc3 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 31 Mar 2013 16:57:17 -0700 Subject: [PATCH] Priority-based msgpipes never woke anyone. Really need to write tests for this and get into it, I guess... Fixes Final Fantasy Tactics. --- Core/HLE/sceKernelMsgPipe.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceKernelMsgPipe.cpp b/Core/HLE/sceKernelMsgPipe.cpp index 06baacb126..9e25cba658 100644 --- a/Core/HLE/sceKernelMsgPipe.cpp +++ b/Core/HLE/sceKernelMsgPipe.cpp @@ -74,9 +74,11 @@ struct MsgPipe : public KernelObject if (__KernelGetThreadPrio(id) >= __KernelGetThreadPrio((*it).id)) { list.insert(it, thread); - break; + return; } } + + list.push_back(thread); } else { @@ -396,7 +398,7 @@ void sceKernelTrySendMsgPipe() return; } - DEBUG_LOG(HLE, "sceKernelTrySendMsgPipeCB(id=%i, addr=%08x, size=%i, mode=%i, result=%08x)", uid, sendBufAddr, sendSize, waitMode, resultAddr); + DEBUG_LOG(HLE, "sceKernelTrySendMsgPipe(id=%i, addr=%08x, size=%i, mode=%i, result=%08x)", uid, sendBufAddr, sendSize, waitMode, resultAddr); __KernelSendMsgPipe(m, sendBufAddr, sendSize, waitMode, resultAddr, 0, false, true); }