diff --git a/include/common.h b/include/common.h index c8504cd..a1de242 100644 --- a/include/common.h +++ b/include/common.h @@ -631,6 +631,15 @@ extern s32 D_800AF0B0; extern void Unpack(s32, s32); extern OSMesgQueue MQ_800AF320; +typedef struct { + /* 0x00 */ s32 field_0x0; + /* 0x04 */ OSMesgQueue* queue; + /* 0x08 */ u8 format; + /* 0x09 */ u8 field_0x9[3]; + /* 0x0C */ s32 field_0xc; + /* 0x10 */ s32 field_0x10; +} OBUnpackMesg; + extern u32 obCurrentTime; extern void obSetCurrentTime(u32 time); extern u32 obGetCurrentTime(); diff --git a/src/_ob_rabid_jar.c b/src/_ob_rabid_jar.c index f89607e..3102daa 100644 --- a/src/_ob_rabid_jar.c +++ b/src/_ob_rabid_jar.c @@ -453,16 +453,8 @@ INCLUDE_ASM(const s32, "_ob_rabid_jar", func_8007ABAC); /* B030 8007AC30 */ void UnpackProc(void) { - struct { - /* 0x00 */ s32 field_0x0; - /* 0x04 */ OSMesgQueue* queue; - /* 0x08 */ u8 format; - /* 0x09 */ u8 field_0x9[3]; - /* 0x0C */ s32 field_0xc; - /* 0x10 */ s32 field_0x10; - } *pack; + OBUnpackMesg *pack = NULL; - pack = NULL; while(1) { osRecvMesg(&MQ_800AF320, (OSMesg)&pack, 1); if (pack->format == 1) {