Add handlers for callbacks during mbx waits.

This commit is contained in:
Unknown W. Brackets committed 2013-09-03 01:21:51 -07:00
1 parent 648dd5f154
commit 3903f27dfd
2 files changed
+132 -12

No files matched your search

-1
View File
@@ -203,7 +203,6 @@ void __KernelEventFlagBeginCallback(SceUID threadID, SceUID prevCallbackId)
EventFlag *flag = flagID == 0 ? NULL : kernelObjects.Get<EventFlag>(flagID, error);
if (flag)
{
// This means two callbacks in a row. PSP crashes if the same callback runs inside itself.
// TODO: Handle this better?
if (flag->pausedWaits.find(pauseKey) != flag->pausedWaits.end())