Change signature of `Unpack`

This commit is contained in:
gijs 2023-10-21 19:16:39 +02:00
parent e5f075888a
commit 40e528eb4d
2 changed files with 4 additions and 4 deletions

View File

@ -553,7 +553,7 @@ extern void __inc_compared_osTvType(u8 arg0);
extern s32 func_80173B60(s32);
extern s32 D_800AF0B0;
extern void Unpack(s32, s32);
extern void Unpack(u8* buffer, u32 size);
extern OSMesgQueue MQ_800AF320;
typedef struct {
@ -561,8 +561,8 @@ typedef struct {
/* 0x04 */ OSMesgQueue* queue;
/* 0x08 */ u8 format;
/* 0x09 */ u8 field_0x9[3];
/* 0x0C */ s32 field_0xc;
/* 0x10 */ s32 field_0x10;
/* 0x0C */ s32 size;
/* 0x10 */ u8* buffer;
} OBUnpackMesg;
extern u32 obCurrentTime;

View File

@ -462,7 +462,7 @@ void UnpackProc(void) {
while(1) {
osRecvMesg(&MQ_800AF320, (OSMesg)&msg, 1);
if (msg->format == 1) {
Unpack(msg->field_0x10, msg->field_0xc);
Unpack(msg->buffer, msg->size);
osSendMesg(msg->queue, msg, OS_MESG_BLOCK);
} else {
osSyncPrintf("UnpackProc: no supported format %d\n", msg->format);