summaryrefslogtreecommitdiff
path: root/src/link.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2017-11-13 01:04:31 -0500
committerPikalaxALT <pikalaxalt@gmail.com>2017-11-13 01:04:31 -0500
commit515459d151bcc9b4f046a93a77e8e9412a2f2ca4 (patch)
treefd89896f154dc44c751e151b5377c186e64e393e /src/link.c
parent7e4cb5f332de1d72fc57be82f4eca0ecd5db5f8d (diff)
through sub_800B4C0
Diffstat (limited to 'src/link.c')
-rw-r--r--src/link.c30
1 files changed, 27 insertions, 3 deletions
diff --git a/src/link.c b/src/link.c
index ecaeafd97..44d96937e 100644
--- a/src/link.c
+++ b/src/link.c
@@ -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;
+ }
+}