summaryrefslogtreecommitdiff
path: root/src/link.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-04-10 12:48:58 -0400
committerGitHub <noreply@github.com>2020-04-10 12:48:58 -0400
commit2880cf2a51ea36fa36f00d9ecf07177e5955c882 (patch)
tree331837d61614da6f73e983a7230796ace13c9ea6 /src/link.c
parenta81edaba1d5e0f84336fd8a57a48b2a970171ba4 (diff)
parent5f7ed93363db01da8667aadf47d78cb6515bb450 (diff)
Merge pull request #323 from PikalaxALT/various_documentation
Document various parts of the source tree
Diffstat (limited to 'src/link.c')
-rw-r--r--src/link.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/link.c b/src/link.c
index cb46a50ff..e11ba4f29 100644
--- a/src/link.c
+++ b/src/link.c
@@ -1,12 +1,9 @@
#include "global.h"
-#include "palette.h"
-#include "bg.h"
+#include "gflib.h"
#include "m4a.h"
#include "scanline_effect.h"
#include "bg_regs.h"
-#include "gpu_regs.h"
#include "decompress.h"
-#include "malloc.h"
#include "save.h"
#include "battle.h"
#include "quest_log.h"
@@ -15,16 +12,12 @@
#include "random.h"
#include "task.h"
#include "event_data.h"
-#include "string_util.h"
#include "item_menu.h"
#include "trade.h"
-#include "text.h"
-#include "sound.h"
#include "menu.h"
#include "overworld.h"
#include "new_menu_helpers.h"
#include "link.h"
-#include "window.h"
#include "graphics.h"
#include "strings.h"
#include "help_system.h"
@@ -229,7 +222,7 @@ static const u8 sLinkErrorTextColor[] = { 0x00, 0x01, 0x02 };
bool8 IsWirelessAdapterConnected(void)
{
- if (gQuestLogState == 2 || gQuestLogState == 3)
+ if (QL_IS_PLAYBACK_STATE)
return FALSE;
SetWirelessCommType1();
@@ -816,7 +809,7 @@ u8 GetLinkPlayerDataExchangeStatusTimed(int lower, int upper)
{
if (gLinkPlayers[0].linkType == 0x1133)
{
- switch (sub_804FB34())
+ switch (Trade_CalcLinkPlayerCompatibilityParam())
{
case 0:
sPlayerDataExchangeStatus = EXCHANGE_COMPLETE;
@@ -1006,11 +999,11 @@ bool8 SendBlock(u8 unused, const void *src, u16 size)
return InitBlockSend(src, size);
}
-bool8 sub_800A474(u8 blockRequestType)
+bool8 Link_PrepareCmd0xCCCC_Rfu0xA100(u8 blockRequestType)
{
if (gWirelessCommType == 1)
{
- return sub_80FA0F8(blockRequestType);
+ return LinkRfu_PrepareCmd0xA100(blockRequestType);
}
if (gLinkCallback == NULL)
{