Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Eternal Etude Canvas 4 ULJM05980
07-07-2014, 06:31 AM (This post was last modified: 07-07-2014 06:37 AM by xsacha.)
Post: #11
RE: Eternal Etude Canvas 4 ULJM05980
I don't have this game to test, but you could try just a stub function, like:

Code:
int sceKernelRegisterThreadEventHandler(const char *name, SceUID threadId, int mask, u32 handlerAddr, u32 commonAddr)
{
    DEBUG_LOG(SCEKERNEL, "sceKernelRegisterThreadEventHandler(name=%s, threadId=%x, mask=%x, handler=%08x, common=%08x)", name, threadId, mask, handlerAddr, commonAddr);
//    handlerInfo handler = new createHandler(name, threadId, mask, handlerAddr, commonAddr);
    Thread *t = kernelObjects.Get<Thread>(threadID, error);
    // TODO: Handle thread event
    if (t) {
        // Insert handler.uid and handler in to event handler map
        // Insert threadId and handler.uid in to event map
        // return handler.uid
    }
    else {
        // TODO
    }
    return SCE_KERNEL_ERROR_UNKNOWN_THID;
}

in sceKernelThread.cpp

Matched with this:
Code:
    {0x0C106E53,WrapI_CIIUU<sceKernelRegisterThreadEventHandler>,"sceKernelRegisterThreadEventHandler",   HLE_NOT_IN_INTERRUPT},
in sceKernel.cpp

You can see what the debug log prints.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Eternal Etude Canvas 4 ULJM05980 - Tabman - 08-27-2013, 07:31 PM
RE: Eternal Etude Canvas 4 ULJM05980 - xsacha - 07-07-2014 06:31 AM

Forum Jump: