Cleanup of main.c

This commit is contained in:
PikalaxALT
2020-04-10 20:16:31 -04:00
parent 2cb171b9fd
commit ec0edfd198
5 changed files with 24 additions and 26 deletions
+2 -2
View File
@@ -1656,7 +1656,7 @@ bool8 HandleLinkConnection(void)
{
gLinkStatus = LinkMain1(&gShouldAdvanceLinkState, gSendCmd, gRecvCmds);
LinkMain2(&gMain.heldKeys);
if ((gLinkStatus & LINK_STAT_RECEIVED_NOTHING) && sub_8058318() == TRUE)
if ((gLinkStatus & LINK_STAT_RECEIVED_NOTHING) && IsSendingKeysOverCable() == TRUE)
{
return TRUE;
}
@@ -1665,7 +1665,7 @@ bool8 HandleLinkConnection(void)
{
r4 = LinkRfuMain1();
r5 = LinkRfuMain2();
if (sub_8058318() == TRUE)
if (IsSendingKeysOverCable() == TRUE)
{
if (r4 == TRUE || IsRfuRecvQueueEmpty() || r5)
{