Move stack struct of `UnpackProc` to `common.h` with name OBUnpackMesg
This commit is contained in:
parent
97c9f3041a
commit
9227a20d5a
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue