Decompile flag code

This commit is contained in:
gamemasterplc 2023-12-28 07:13:39 -06:00
parent bf300c37d1
commit f96afa27da
9 changed files with 77 additions and 23 deletions

View file

@ -14,8 +14,8 @@ typedef struct player_config {
typedef struct system_state {
/* 0x00 */ struct {
u16 story : 1;
u16 team : 1;
u8 story : 1;
u8 team : 1;
u8 : 7;
};
/* 0x02 */ struct {
@ -46,8 +46,9 @@ typedef struct system_state {
/* 0x32 */ char unk_32[0x2];
/* 0x34 */ u16 mg_next;
/* 0x36 */ s16 mg_next_extra;
/* 0x38 */ u8 flag[3][16];
/* 0x68 */ u8 unk_68[0x74];
/* 0x38 */ s16 unk_38;
/* 0x3A */ u8 flag[3][16];
/* 0x6A */ u8 unk_6A[0x72];
} SystemState; //8018fcf8, sizeof 0xDC
typedef struct player_state {

View file

@ -43,8 +43,6 @@ void MGSeqKillAll(void);
void MGSeqPracticeStart(void);
void fn_8004D6F4(s16 arg);
s32 _CheckFlag(u32 flag);
void BoardWinCreate(s16, s32, s32);
void BoardWinKill(void);
void BoardWinWait(void);

11
include/game/flag.h Normal file
View file

@ -0,0 +1,11 @@
#ifndef _GAME_FLAG_H
#define _GAME_FLAG_H
#define FLAG_ID_MAKE(group, index) (((group) << 16)|(index))
s32 _CheckFlag(u32 flag);
void _SetFlag(u32 flag);
void _ClearFlag(u32 flag);
void _InitFlag(void);
#endif