more documentation in match_call_data
Documents everything related to UnkStruct_08625388, names HasCheckPage functions, fixes mislabeled Brendan/May headers, and adds header count to pokenav_unk_3
This commit is contained in:
+7
-7
@@ -84,7 +84,7 @@ static u32 sub_81CAB44(struct Pokenav3Struct *state)
|
||||
state->callback = sub_81CAC04;
|
||||
state->unk0 = 0;
|
||||
selectedMatchCall = GetSelectedMatchCall();
|
||||
if (!state->unk1C[selectedMatchCall].boxId || sub_81D17E8(state->unk1C[selectedMatchCall].unk6))
|
||||
if (!state->unk1C[selectedMatchCall].boxId || MatchCall_HasCheckPage(state->unk1C[selectedMatchCall].unk6))
|
||||
{
|
||||
state->unk4 = gUnknown_0862250A;
|
||||
state->unk2 = 2;
|
||||
@@ -212,7 +212,7 @@ static u32 sub_81CAD20(s32 taskState)
|
||||
state->unkA++;
|
||||
}
|
||||
|
||||
if (++state->unk8 >= 21) // TODO: This is the size of sMatchCallHeaders
|
||||
if (++state->unk8 >= MC_HEADER_COUNT)
|
||||
{
|
||||
state->unkC = state->unk8;
|
||||
state->unk8 = 0;
|
||||
@@ -331,7 +331,7 @@ int sub_81CAF04(int index)
|
||||
return gTrainers[index].trainerPic;
|
||||
}
|
||||
|
||||
index = sub_81D1BD0(var0);
|
||||
index = MatchCall_GetOverrideFacilityClass(var0);
|
||||
return gFacilityClassToPicIndex[index];
|
||||
}
|
||||
|
||||
@@ -358,7 +358,7 @@ const u8 *sub_81CAFD8(int index, int textType)
|
||||
{
|
||||
var0 = MatchCall_GetRematchTableIdx(state->unk1C[index].unk6);
|
||||
if (var0 == REMATCH_TABLE_ENTRIES)
|
||||
return sub_81D1B40(state->unk1C[index].unk6, textType);
|
||||
return MatchCall_GetOverrideFlavorText(state->unk1C[index].unk6, textType);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -426,7 +426,7 @@ int sub_81CB0E4(int index)
|
||||
{
|
||||
if (!state->unk1C[index].boxId)
|
||||
return count;
|
||||
if (sub_81D17E8(state->unk1C[index].unk6))
|
||||
if (MatchCall_HasCheckPage(state->unk1C[index].unk6))
|
||||
return count;
|
||||
|
||||
count++;
|
||||
@@ -443,7 +443,7 @@ int sub_81CB128(int index)
|
||||
{
|
||||
if (!state->unk1C[index].boxId)
|
||||
return count;
|
||||
if (sub_81D17E8(state->unk1C[index].unk6))
|
||||
if (MatchCall_HasCheckPage(state->unk1C[index].unk6))
|
||||
return count;
|
||||
|
||||
count--;
|
||||
@@ -462,7 +462,7 @@ bool32 unref_sub_81CB16C(void)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
for (i = 0; i < 21; i++) // TODO: This is the size of sMatchCallHeaders
|
||||
for (i = 0; i < MC_HEADER_COUNT; i++)
|
||||
{
|
||||
if (MatchCallFlagGetByIndex(i))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user