Move stack struct of `UnpackProc` to `common.h` with name OBUnpackMesg

This commit is contained in:
gijs 2023-10-19 19:27:32 +02:00
parent 97c9f3041a
commit 9227a20d5a
2 changed files with 10 additions and 9 deletions

View File

@ -631,6 +631,15 @@ extern s32 D_800AF0B0;
extern void Unpack(s32, s32); extern void Unpack(s32, s32);
extern OSMesgQueue MQ_800AF320; 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 u32 obCurrentTime;
extern void obSetCurrentTime(u32 time); extern void obSetCurrentTime(u32 time);
extern u32 obGetCurrentTime(); extern u32 obGetCurrentTime();

View File

@ -453,16 +453,8 @@ INCLUDE_ASM(const s32, "_ob_rabid_jar", func_8007ABAC);
/* B030 8007AC30 */ /* B030 8007AC30 */
void UnpackProc(void) { void UnpackProc(void) {
struct { OBUnpackMesg *pack = NULL;
/* 0x00 */ s32 field_0x0;
/* 0x04 */ OSMesgQueue* queue;
/* 0x08 */ u8 format;
/* 0x09 */ u8 field_0x9[3];
/* 0x0C */ s32 field_0xc;
/* 0x10 */ s32 field_0x10;
} *pack;
pack = NULL;
while(1) { while(1) {
osRecvMesg(&MQ_800AF320, (OSMesg)&pack, 1); osRecvMesg(&MQ_800AF320, (OSMesg)&pack, 1);
if (pack->format == 1) { if (pack->format == 1) {