through sub_800B4C0

This commit is contained in:
PikalaxALT
2017-11-13 01:04:31 -05:00
parent 7e4cb5f332
commit 515459d151
2 changed files with 27 additions and 49 deletions

View File

@@ -151,9 +151,9 @@ static void sub_800AE30(void);
static void sub_800AE5C(void);
static void sub_800AEB4(void);
static void sub_800B1A0(void);
u8 sub_800B2F8(void);
static bool8 sub_800B2F8(void);
u32 sub_800B638(bool8 *shouldAdvanceLinkState, u16 *sendCmd, u16 (*recvCmds)[8]);
void sub_800B4A4(void);
static void sub_800B4A4(void);
void DisableSerial(void);
void EnableSerial(void);
@@ -1767,7 +1767,7 @@ bool8 sub_800B2E8(void)
return (REG_SIOCNT & 0x04) != 0;
}
bool8 sub_800B2F8(void)
static bool8 sub_800B2F8(void)
{
return (REG_SIOCNT & 0x8) && !(REG_SIOCNT & 0x04);
}
@@ -1842,3 +1842,27 @@ bool8 HandleLinkConnection(void)
}
return FALSE;
}
void sub_800B488(void)
{
if (gReceivedRemoteLinkPlayers == 0)
{
gWirelessCommType = 1;
}
}
static void sub_800B4A4(void)
{
if (gReceivedRemoteLinkPlayers == 0)
{
gWirelessCommType = 0;
}
}
void sub_800B4C0(void)
{
if (gReceivedRemoteLinkPlayers == 0)
{
gWirelessCommType = 0;
}
}