summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
+ }
+}