Priority-based msgpipes never woke anyone.

Really need to write tests for this and get into it, I guess...

Fixes Final Fantasy Tactics.
This commit is contained in:
Unknown W. Brackets committed 2013-03-31 16:58:15 -07:00
1 parent 2eb1160272
commit 25f1001db3
1 file changed
+4 -2
+4 -2
View File
@@ -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);
}