Decompile `nuScAddClient`
This commit is contained in:
parent
901ff5dc63
commit
774f762631
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
INCLUDE_ASM(const s32, "_ob_past_brick", nuScCreateScheduler);
|
INCLUDE_ASM(const s32, "_ob_past_brick", nuScCreateScheduler);
|
||||||
|
|
||||||
/* 192F0 80088EF0*/
|
|
||||||
OSMesgQueue* nuScGetAudioMQ() {
|
OSMesgQueue* nuScGetAudioMQ() {
|
||||||
return &nusched.audioRequestMQ;
|
return &nusched.audioRequestMQ;
|
||||||
}
|
}
|
||||||
|
|
@ -15,25 +14,23 @@ OSMesgQueue* nuScGetGfxMQ() {
|
||||||
|
|
||||||
INCLUDE_ASM(const s32, "_ob_past_brick", nuScEventHandler);
|
INCLUDE_ASM(const s32, "_ob_past_brick", nuScEventHandler);
|
||||||
|
|
||||||
INCLUDE_ASM(const s32, "_ob_past_brick", nuScAddClient);
|
void nuScAddClient(NUScClient* client, OSMesgQueue* queue, NUScMsg type) {
|
||||||
|
s32 mask;
|
||||||
|
|
||||||
/* 19454 80089054 */
|
mask = osSetIntMask(OS_IM_NONE);
|
||||||
// void nuScAddClient(Stack__dma_load_loop* arg0, OSMesgQueue* mq, s16 flags)
|
|
||||||
// {
|
|
||||||
// s32 mask = osSetIntMask(OS_IM_NONE);
|
|
||||||
|
|
||||||
// arg0->mq = mq;
|
client->msgQ = queue;
|
||||||
// arg0->next = D_800E9178[0];
|
client->next = nusched.clientList;
|
||||||
// arg0->flags = flags;
|
client->msgType = type;
|
||||||
|
|
||||||
// D_800E9178[0] = arg0;
|
nusched.clientList = client;
|
||||||
|
|
||||||
// if ((flags & 2) && (nuScPreNMIFlag != 0)) {
|
if ((type & NU_SC_PRENMI_MSG) && nuScPreNMIFlag) {
|
||||||
// osSendMesg(mq, (u8*)(&D_800E9178) - 0x666, OS_MESG_NOBLOCK);
|
osSendMesg(queue, &nusched.prenmiMsg, OS_MESG_NOBLOCK);
|
||||||
// }
|
}
|
||||||
|
|
||||||
// osSetIntMask(mask);
|
osSetIntMask(mask);
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
|
||||||
INCLUDE_ASM(const s32, "_ob_past_brick", func_800890E4);
|
INCLUDE_ASM(const s32, "_ob_past_brick", func_800890E4);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue