More documentation in battle_main

This commit is contained in:
PikalaxALT
2021-03-12 16:55:58 -05:00
parent e32a1571af
commit 8d4dcb228a
5 changed files with 61 additions and 53 deletions
+8 -7
View File
@@ -84,7 +84,7 @@ EWRAM_DATA static u8 sFrontierFacility = 0;
EWRAM_DATA static u8 sFrontierBrainSymbol = 0;
EWRAM_DATA static MainCallback sCallback2_AfterRecordedBattle = NULL;
EWRAM_DATA u8 gRecordedBattleMultiplayerId = 0;
EWRAM_DATA static u8 sUnknown_0203C7B5 = 0;
EWRAM_DATA static u8 sFrontierPassFlag = 0;
EWRAM_DATA static u8 sBattleScene = 0;
EWRAM_DATA static u8 sTextSpeed = 0;
EWRAM_DATA static u32 sBattleFlags = 0;
@@ -687,19 +687,20 @@ u8 GetActiveBattlerLinkPlayerGender(void)
return 0;
}
void sub_8185F84(void)
void RecordedBattle_ClearFrontierPassFlag(void)
{
sUnknown_0203C7B5 = 0;
sFrontierPassFlag = 0;
}
void sub_8185F90(u16 arg0)
// Set sFrontierPassFlag to received state of FLAG_SYS_FRONTIER_PASS
void RecordedBattle_SetFrontierPassFlagFromHword(u16 arg0)
{
sUnknown_0203C7B5 |= (arg0 & 0x8000) >> 0xF;
sFrontierPassFlag |= (arg0 & 0x8000) >> 15;
}
u8 sub_8185FAC(void)
u8 RecordedBattle_GetFrontierPassFlag(void)
{
return sUnknown_0203C7B5;
return sFrontierPassFlag;
}
u8 GetBattleSceneInRecordedBattle(void)