Clean up `gfxThread`

This commit is contained in:
gijs 2023-10-20 16:34:28 +02:00
parent e5dc3321ea
commit ae6fa1fd91
1 changed files with 8 additions and 8 deletions

View File

@ -4,25 +4,25 @@
/* 1B3E0 8008AFE0 */
void gfxThread(void* arg0) {
NUScClient sp10;
u16* sp20;
NUScClient gfxClient;
NUScMsg* mesgType;
s16 temp_v0;
osCreateMesgQueue(&MQ_800C4C28, OSMESG_800BE1A0, 8);
nuScAddClient(&sp10, &MQ_800C4C28, 3);
osCreateMesgQueue(&MQ_800C4C28, OSMESG_800BE1A0, NU_GFX_MESGS);
nuScAddClient(&gfxClient, &MQ_800C4C28, NU_SC_RETRACE_MSG | NU_SC_PRENMI_MSG);
while(1) {
osRecvMesg(&MQ_800C4C28, &sp20, OS_MESG_BLOCK);
temp_v0 = *sp20;
osRecvMesg(&MQ_800C4C28, (OSMesg)&mesgType, OS_MESG_BLOCK);
temp_v0 = *mesgType;
switch(temp_v0) {
case 1:
case NU_SC_RETRACE_MSG:
if (D_800AA090 != NULL) {
D_800AA090(D_800E79A4);
}
break;
case 2:
case NU_SC_PRENMI_MSG:
if(D_800AA094 != NULL) {
D_800AA094();
}