diff --git a/include/common.h b/include/common.h index 7f21961..31d8ec5 100644 --- a/include/common.h +++ b/include/common.h @@ -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; diff --git a/src/_ob_rabid_jar.c b/src/_ob_rabid_jar.c index 848d2e7..f7276b3 100644 --- a/src/_ob_rabid_jar.c +++ b/src/_ob_rabid_jar.c @@ -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);