Document mgInfoTbl more

This commit is contained in:
gamemasterplc 2024-02-03 13:40:58 -06:00
parent 828ad3ba56
commit a19c0433de
6 changed files with 597 additions and 665 deletions

View file

@ -87,8 +87,8 @@ s32 BoardIsKill(void);
void BoardPauseDisableSet(s32 value);
s32 BoardPauseDisableGet();
void BoardSaveInit(s32 board);
void BoardStoryConfigSet(s32 mg_type, s32 diff_story);
void BoardPartyConfigSet(s32 team, s32 bonus_star, s32 mg_type, s32 max_turn, s32 p1_handicap, s32 p2_handicap, s32 p3_handicap, s32 p4_handicap);
void BoardStoryConfigSet(s32 mg_list, s32 diff_story);
void BoardPartyConfigSet(s32 team, s32 bonus_star, s32 mg_list, s32 max_turn, s32 p1_handicap, s32 p2_handicap, s32 p3_handicap, s32 p4_handicap);
s32 BoardTurnNext(void);
void BoardNextOvlSet(OverlayID overlay);
s32 BoardStartCheck(void);

View file

@ -21,7 +21,7 @@ typedef struct system_state {
u16 bonus_star : 1;
u16 explain_mg : 1;
u16 show_com_mg : 1;
u16 mg_type : 2;
u16 mg_list : 2;
u16 mess_speed : 2;
u16 save_mode : 2;
};
@ -45,7 +45,7 @@ typedef struct system_state {
};
/* 0x32 */ s8 unk_32;
/* 0x34 */ u16 mg_next;
/* 0x36 */ s16 mg_next_extra;
/* 0x36 */ s16 mg_next_type;
/* 0x38 */ u16 unk_38;
/* 0x3A */ u8 flag[3][16];
/* 0x6A */ u8 unk_6A[0x72];
@ -157,9 +157,9 @@ static inline s32 GWLanguageGet(void)
return GWGameStat.language;
}
static inline s32 GWMGTypeGet(void)
static inline s32 GWMGListGet(void)
{
return GWSystem.mg_type;
return GWSystem.mg_list;
}
static inline s32 GWMessSpeedGet(void)

View file

@ -9,16 +9,11 @@ typedef struct mg_info {
u16 ovl;
u8 type;
u8 flag;
u16 unk_4;
u16 unk_6;
s8 unk_4;
u32 name_mess;
u32 data_dir;
u32 inst_pic;
u32 unk_14;
u32 unk_18;
u32 mg_pic;
u32 unk_20;
u32 unk_24;
u32 inst_pic[3];
u32 mg_pic[3];
u32 rules_mess;
u32 control_mess[2];
u32 advice_mess;

View file

@ -290,7 +290,7 @@ void BoardSaveInit(s32 board)
GWSystem.field31_bit4 = 0;
GWSystem.unk_32 = 1;
GWSystem.mg_next = 0;
GWSystem.mg_next_extra = 0;
GWSystem.mg_next_type = 0;
GWSystem.unk_38 = 0;
GWSystem.block_pos = 0;
memset(GWSystem.board_data, 0, 32);
@ -334,13 +334,13 @@ void BoardSaveInit(s32 board)
}
}
void BoardStoryConfigSet(s32 mg_type, s32 diff_story)
void BoardStoryConfigSet(s32 mg_list, s32 diff_story)
{
GWSystem.party = 0;
GWSystem.team = 0;
GWSystem.diff_story = diff_story;
GWSystem.bonus_star = 0;
GWSystem.mg_type = mg_type;
GWSystem.mg_list = mg_list;
GWPlayer[0].handicap = 0;
GWPlayer[1].handicap = 0;
GWPlayer[2].handicap = 0;
@ -358,13 +358,13 @@ void BoardStoryConfigSet(s32 mg_type, s32 diff_story)
_SetFlag(FLAG_ID_MAKE(1, 10));
}
void BoardPartyConfigSet(s32 team, s32 bonus_star, s32 mg_type, s32 max_turn, s32 p1_handicap, s32 p2_handicap, s32 p3_handicap, s32 p4_handicap)
void BoardPartyConfigSet(s32 team, s32 bonus_star, s32 mg_list, s32 max_turn, s32 p1_handicap, s32 p2_handicap, s32 p3_handicap, s32 p4_handicap)
{
GWSystem.party = 1;
GWSystem.team = team;
GWSystem.diff_story = 0;
GWSystem.bonus_star = bonus_star;
GWSystem.mg_type = mg_type;
GWSystem.mg_list = mg_list;
GWSystem.max_turn = max_turn;
memset(GWPlayer, 0, 4*sizeof(PlayerState));
GWPlayer[0].handicap = p1_handicap;
@ -617,11 +617,11 @@ static void CreateBoard(void)
GWSystem.mg_next = -1;
if(!GWGameStat.field10E_bit5) {
s32 type_temp;
if(GWSystem.mg_type == 3) {
GWSystem.mg_type = 0;
if(GWSystem.mg_list == 3) {
GWSystem.mg_list = 0;
}
if(GWMGTypeGet() == 2) {
GWSystem.mg_type = 0;
if(GWMGListGet() == 2) {
GWSystem.mg_list = 0;
}
}
if(GWSystem.mess_speed == 3) {

View file

@ -1493,12 +1493,12 @@ static int SeqInitDraw(SeqWork *work, va_list params)
}
static void SeqPlayStartFX(void)
void MGSeqPauseEnableCtrl(s32 flag)
{
}
void MGSeqPauseEnableCtrl(s32 flag)
static void SeqPlayStartFX(void)
{
}

File diff suppressed because it is too large Load diff