sub_810CE10

This commit is contained in:
PikalaxALT
2018-10-08 21:04:59 -04:00
parent 2e0259fceb
commit 9e51b18b9f
3 changed files with 25 additions and 51 deletions
+2 -2
View File
@@ -89,12 +89,12 @@ void sub_8146C88(void)
r5->unk_0_2 = 0;
r5->unk_0_5 = 0;
r5->unk_1 = 0;
VarSet(0x4028, 0);
VarSet(VAR_0x4028, 0);
}
void sub_8146CA4(void)
{
u16 *r4 = sub_806E454(0x4028);
u16 *r4 = sub_806E454(VAR_0x4028);
struct MysteryEventStruct *r2 = sub_8143D94();
struct MysteryEventStruct r0 = *r2;
+23
View File
@@ -826,3 +826,26 @@ void sub_810CDE8(void)
gSaveBlock1Ptr->trainerRematches[gUnknown_20370D2] = 0;
sub_80803FC();
}
int sub_810CE10(const struct UnkStruct_845318C * a0, u16 a1)
{
u32 r1;
s32 r3;
for (r1 = 0; r1 < 0xdd; r1++)
{
for (r3 = 0; r3 < 6; r3++)
{
u16 r0;
if (a0[r1].unk_0[r3] == 0)
break;
r0 = a0[r1].unk_0[r3];
if (r0 == 0xFFFF)
continue;
if (r0 == a1)
return r1;
}
}
return -1;
}