2017-09-30 15:56:08 +02:00
|
|
|
|
|
|
|
// Includes
|
|
|
|
#include "global.h"
|
2017-11-09 01:58:59 +01:00
|
|
|
#include "malloc.h"
|
|
|
|
#include "save.h"
|
2017-11-08 02:25:24 +01:00
|
|
|
#include "librfu.h"
|
2017-11-08 04:14:40 +01:00
|
|
|
#include "rng.h"
|
2017-11-08 04:26:00 +01:00
|
|
|
#include "string_util.h"
|
|
|
|
#include "event_data.h"
|
2017-11-08 02:25:24 +01:00
|
|
|
#include "gpu_regs.h"
|
|
|
|
#include "palette.h"
|
|
|
|
#include "task.h"
|
|
|
|
#include "link.h"
|
2017-09-30 15:56:08 +02:00
|
|
|
|
|
|
|
// Static type declarations
|
|
|
|
|
|
|
|
struct BlockTransfer
|
|
|
|
{
|
|
|
|
u16 pos;
|
|
|
|
u16 size;
|
|
|
|
void *src;
|
|
|
|
bool8 active;
|
|
|
|
u8 multiplayerId;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct LinkTestBGInfo
|
|
|
|
{
|
|
|
|
u32 screenBaseBlock;
|
|
|
|
u32 paletteNum;
|
|
|
|
u32 dummy_8;
|
|
|
|
u32 dummy_C;
|
|
|
|
};
|
|
|
|
|
2017-11-09 02:11:29 +01:00
|
|
|
struct SIOCnt {
|
|
|
|
u32 cnt0_0:4;
|
|
|
|
u32 cnt0_2:2;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define REG_SIOCNT_STRUCT (*(volatile struct SIOCnt *)REG_ADDR_SIOCNT)
|
|
|
|
|
2017-09-30 15:56:08 +02:00
|
|
|
// Static RAM declarations
|
|
|
|
|
|
|
|
IWRAM_DATA struct BlockTransfer gUnknown_03000D10;
|
|
|
|
IWRAM_DATA u32 link_c_unused_03000d1c;
|
|
|
|
IWRAM_DATA struct BlockTransfer gUnknown_03000D20[4];
|
|
|
|
IWRAM_DATA u32 gUnknown_03000D50;
|
|
|
|
IWRAM_DATA u32 gUnknown_03000D54;
|
|
|
|
IWRAM_DATA u8 gUnknown_03000D58;
|
|
|
|
IWRAM_DATA u32 gUnknown_03000D5C;
|
|
|
|
IWRAM_DATA u32 gUnknown_03000D60;
|
2017-11-08 02:25:24 +01:00
|
|
|
IWRAM_DATA u8 gUnknown_03000D64;
|
|
|
|
ALIGNED() IWRAM_DATA u8 gUnknown_03000D68[4];
|
2017-09-30 15:56:08 +02:00
|
|
|
IWRAM_DATA u8 gUnknown_03000D6C;
|
|
|
|
IWRAM_DATA bool8 gUnknown_03000D6D;
|
|
|
|
IWRAM_DATA u16 gUnknown_03000D6E;
|
|
|
|
IWRAM_DATA u16 gUnknown_03000D70;
|
|
|
|
IWRAM_DATA u8 gUnknown_03000D72;
|
|
|
|
IWRAM_DATA u8 gUnknown_03000D73;
|
2017-11-08 02:25:24 +01:00
|
|
|
IWRAM_DATA u8 gUnknown_03000D74;
|
|
|
|
ALIGNED() IWRAM_DATA u8 gUnknown_03000D78;
|
|
|
|
ALIGNED(8) IWRAM_DATA u8 gUnknown_03000D80[16];
|
2017-09-30 15:56:08 +02:00
|
|
|
IWRAM_DATA u16 gUnknown_03000D90[8];
|
|
|
|
IWRAM_DATA u32 gUnknown_03000DA0;
|
|
|
|
IWRAM_DATA u32 gUnknown_03000DA4;
|
|
|
|
IWRAM_DATA void *gUnknown_03000DA8;
|
|
|
|
IWRAM_DATA void *gUnknown_03000DAC;
|
|
|
|
IWRAM_DATA bool32 gUnknown_03000DB0;
|
|
|
|
|
2017-11-09 01:29:37 +01:00
|
|
|
u16 gUnknown_03003020[6];
|
|
|
|
u32 gUnknown_0300302C;
|
|
|
|
struct LinkPlayerBlock gUnknown_03003030;
|
|
|
|
bool8 gUnknown_0300306C;
|
|
|
|
u32 gUnknown_03003070;
|
|
|
|
bool8 gUnknown_03003078[4];
|
|
|
|
u8 gUnknown_0300307C[4];
|
|
|
|
u16 gUnknown_03003084;
|
|
|
|
u16 gUnknown_03003090[4][8];
|
|
|
|
u32 gUnknown_030030E0;
|
|
|
|
u8 gUnknown_030030E4;
|
|
|
|
bool8 gUnknown_030030E8;
|
|
|
|
u8 gUnknown_030030EC[4];
|
|
|
|
u8 gUnknown_030030F0[4];
|
|
|
|
u16 gUnknown_030030F4;
|
|
|
|
u8 gUnknown_030030F8;
|
|
|
|
bool8 gLinkVSyncDisabled;
|
|
|
|
bool8 gUnknown_03003100;
|
|
|
|
u16 gUnknown_03003110[8];
|
|
|
|
u8 gUnknown_03003120;
|
|
|
|
bool8 gReceivedRemoteLinkPlayers;
|
|
|
|
struct LinkTestBGInfo gUnknown_03003130;
|
|
|
|
void (*gUnknown_03003140)(void);
|
|
|
|
bool8 gUnknown_03003144;
|
|
|
|
u16 gUnknown_03003148[4];
|
|
|
|
u8 gUnknown_03003150;
|
|
|
|
u8 gUnknown_03003160;
|
|
|
|
|
|
|
|
u8 gUnknown_020223BC = 0;
|
|
|
|
u8 gUnknown_020223BD = 0;
|
|
|
|
bool8 gUnknown_020229C4 = FALSE;
|
2017-11-08 04:14:40 +01:00
|
|
|
u16 gUnknown_020229C6 = 0;
|
2017-11-08 04:26:00 +01:00
|
|
|
struct LinkPlayer gUnknown_020229CC = {};
|
2017-11-08 04:14:40 +01:00
|
|
|
|
2017-09-30 15:56:08 +02:00
|
|
|
// Static ROM declarations
|
|
|
|
|
2017-11-08 04:14:40 +01:00
|
|
|
void sub_8009638(void);
|
|
|
|
void sub_80096BC(void);
|
|
|
|
void c2_08009A8C(void);
|
2017-11-09 02:11:29 +01:00
|
|
|
void sub_8009AA0(u8 unused);
|
2017-11-08 04:14:40 +01:00
|
|
|
void sub_800A2E0(void);
|
2017-11-09 01:58:59 +01:00
|
|
|
void sub_800A2F4(void *heapptr, size_t src);
|
2017-11-08 04:14:40 +01:00
|
|
|
void task00_link_test(u8 taskId);
|
2017-11-09 01:29:37 +01:00
|
|
|
u16 sub_800A648(u16 *src, u16 size);
|
|
|
|
void sub_800A6E8(u32 pos, u8 a0, u8 a1, u8 a2);
|
2017-11-08 04:52:10 +01:00
|
|
|
void sub_800A824(void);
|
2017-11-09 02:11:29 +01:00
|
|
|
void sub_800AEB4(void);
|
2017-11-09 01:58:59 +01:00
|
|
|
void sub_800B330(bool8 flag);
|
2017-11-08 02:25:24 +01:00
|
|
|
void sub_800B4A4(void);
|
2017-11-09 01:29:37 +01:00
|
|
|
void sub_800B53C(void);
|
2017-11-09 01:58:59 +01:00
|
|
|
void sub_800B594(void);
|
2017-11-08 04:14:40 +01:00
|
|
|
u32 sub_800BEC0(void);
|
|
|
|
void sub_800E700(void);
|
2017-11-09 01:29:37 +01:00
|
|
|
void sub_800EDD4(void);
|
2017-11-08 02:25:24 +01:00
|
|
|
|
2017-09-30 15:56:08 +02:00
|
|
|
// .rodata
|
|
|
|
|
2017-11-08 02:25:24 +01:00
|
|
|
ALIGNED(4) const u16 gWirelessLinkDisplayPal[] = INCBIN_U16("graphics/interface/wireless_link_display.gbapal");
|
|
|
|
const u8 gWirelessLinkDisplayGfx[] = INCBIN_U8("graphics/interface/wireless_link_display.4bpp.lz");
|
|
|
|
const u8 gWirelessLinkDisplayTilemap[] = INCBIN_U8("graphics/interface/wireless_link_display.bin.lz");
|
|
|
|
const u16 gLinkTestDigitsPal[] = INCBIN_U16("graphics/interface/link_test_digits.gbapal");
|
|
|
|
const u16 gLinkTestDigitsGfx[] = INCBIN_U16("graphics/interface/link_test_digits.4bpp");
|
2017-11-08 03:45:44 +01:00
|
|
|
const u8 unkstring_82ed160[] = _("{HIGHLIGHT TRANSPARENT}{COLOR WHITE}");
|
|
|
|
const u16 g2BlankTilesGfx[] = INCBIN_U16("graphics/interface/blank_1x2.4bpp");
|
|
|
|
const struct {
|
|
|
|
void *data;
|
|
|
|
u16 size;
|
|
|
|
} gUnknown_082ED1A8[] = {
|
|
|
|
{gUnknown_020228C4, 200},
|
|
|
|
{gUnknown_020228C4, 200},
|
|
|
|
{gUnknown_020228C4, 100},
|
|
|
|
{gUnknown_020228C4, 220},
|
|
|
|
{gUnknown_020228C4, 40}
|
|
|
|
};
|
|
|
|
const u8 gUnknown_082ED1D0[] = {
|
|
|
|
REG_OFFSET_BG0CNT,
|
|
|
|
REG_OFFSET_BG1CNT,
|
|
|
|
REG_OFFSET_BG2CNT,
|
|
|
|
REG_OFFSET_BG3CNT
|
|
|
|
};
|
2017-11-08 02:25:24 +01:00
|
|
|
|
2017-09-30 15:56:08 +02:00
|
|
|
// .text
|
2017-11-08 02:25:24 +01:00
|
|
|
|
|
|
|
bool8 sub_80093CC(void)
|
|
|
|
{
|
|
|
|
sub_800B488();
|
|
|
|
sub_800E700();
|
|
|
|
if (sub_800BEC0() == 0x8001)
|
|
|
|
{
|
|
|
|
rfu_REQ_stopMode();
|
|
|
|
rfu_waitREQComplete();
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
sub_800B4A4();
|
|
|
|
sub_80097E8();
|
|
|
|
RestoreSerialTimer3IntrHandlers();
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
void sub_8009404(u8 taskId)
|
|
|
|
{
|
|
|
|
DestroyTask(taskId);
|
|
|
|
}
|
|
|
|
|
|
|
|
void sub_8009414(u8 a0, u8 a1, u8 a2, u8 a3, u16 a4)
|
|
|
|
{
|
|
|
|
LoadPalette(gLinkTestDigitsPal, a0 * 16, 0x20);
|
|
|
|
DmaCopy16(3, gLinkTestDigitsGfx, (u16 *)BG_CHAR_ADDR(a3) + (16 * a4), sizeof gLinkTestDigitsGfx);
|
2017-11-08 04:14:40 +01:00
|
|
|
gUnknown_03003130.screenBaseBlock = a2;
|
|
|
|
gUnknown_03003130.paletteNum = a0;
|
|
|
|
gUnknown_03003130.dummy_8 = a4;
|
2017-11-08 02:25:24 +01:00
|
|
|
switch (a1)
|
|
|
|
{
|
|
|
|
case 1:
|
|
|
|
SetGpuReg(REG_OFFSET_BG1CNT, BGCNT_SCREENBASE(a2) | BGCNT_PRIORITY(1) | BGCNT_CHARBASE(a3));
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
SetGpuReg(REG_OFFSET_BG2CNT, BGCNT_SCREENBASE(a2) | BGCNT_PRIORITY(1) | BGCNT_CHARBASE(a3));
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
SetGpuReg(REG_OFFSET_BG3CNT, BGCNT_SCREENBASE(a2) | BGCNT_PRIORITY(1) | BGCNT_CHARBASE(a3));
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
SetGpuReg(REG_OFFSET_BG0HOFS + a1 * 4, 0);
|
|
|
|
SetGpuReg(REG_OFFSET_BG0VOFS + a1 * 4, 0);
|
|
|
|
}
|
2017-11-08 03:45:44 +01:00
|
|
|
|
|
|
|
void sub_80094EC(u8 a0, u8 a1, u8 a2, u8 a3)
|
|
|
|
{
|
|
|
|
LoadPalette(gLinkTestDigitsPal, a0 * 16, 0x20);
|
|
|
|
DmaCopy16(3, gLinkTestDigitsGfx, (u16 *)BG_CHAR_ADDR(a3), sizeof gLinkTestDigitsGfx);
|
2017-11-08 04:14:40 +01:00
|
|
|
gUnknown_03003130.screenBaseBlock = a2;
|
|
|
|
gUnknown_03003130.paletteNum = a0;
|
|
|
|
gUnknown_03003130.dummy_8 = 0;
|
2017-11-08 03:45:44 +01:00
|
|
|
SetGpuReg(gUnknown_082ED1D0[a1], BGCNT_SCREENBASE(a2) | BGCNT_CHARBASE(a3));
|
|
|
|
}
|
2017-11-08 04:14:40 +01:00
|
|
|
|
|
|
|
void sub_8009570(void)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
ResetSpriteData();
|
|
|
|
FreeAllSpritePalettes();
|
|
|
|
ResetTasks();
|
|
|
|
SetVBlankCallback(sub_80096BC);
|
|
|
|
sub_800A2E0();
|
|
|
|
gUnknown_020229C6 = 0x1111;
|
|
|
|
sub_8009734();
|
|
|
|
SeedRng(gMain.vblankCounter2);
|
|
|
|
for (i = 0; i < 4; i ++)
|
|
|
|
{
|
|
|
|
gSaveBlock2Ptr->playerTrainerId[i] = Random() % 256;
|
|
|
|
}
|
|
|
|
sub_8009414(0, 2, 4, 0, 0);
|
|
|
|
SetGpuReg(REG_OFFSET_DISPCNT, DISPCNT_MODE_0 | DISPCNT_OBJ_1D_MAP | DISPCNT_BG0_ON | DISPCNT_BG2_ON | DISPCNT_OBJ_ON);
|
|
|
|
CreateTask(sub_8009404, 0);
|
|
|
|
RunTasks();
|
|
|
|
AnimateSprites();
|
|
|
|
BuildOamBuffer();
|
|
|
|
UpdatePaletteFade();
|
|
|
|
gUnknown_03000D60 = 0;
|
|
|
|
sub_8009638();
|
|
|
|
CreateTask(task00_link_test, 0);
|
|
|
|
SetMainCallback2(c2_08009A8C);
|
|
|
|
}
|
2017-11-08 04:26:00 +01:00
|
|
|
|
|
|
|
void sub_8009628(u8 a0)
|
|
|
|
{
|
|
|
|
gUnknown_020229CC.lp_field_18 = a0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void sub_8009638(void)
|
|
|
|
{
|
|
|
|
gUnknown_020229CC.trainerId = gSaveBlock2Ptr->playerTrainerId[0] | (gSaveBlock2Ptr->playerTrainerId[1] << 8) | (gSaveBlock2Ptr->playerTrainerId[2] << 16) | (gSaveBlock2Ptr->playerTrainerId[3] << 24);
|
|
|
|
StringCopy(gUnknown_020229CC.name, gSaveBlock2Ptr->playerName);
|
|
|
|
gUnknown_020229CC.gender = gSaveBlock2Ptr->playerGender;
|
|
|
|
gUnknown_020229CC.linkType = gUnknown_020229C6;
|
|
|
|
gUnknown_020229CC.language = gGameLanguage;
|
|
|
|
gUnknown_020229CC.version = gGameVersion + 0x4000;
|
|
|
|
gUnknown_020229CC.lp_field_2 = 0x8000;
|
|
|
|
gUnknown_020229CC.name[8] = IsNationalPokedexEnabled();
|
|
|
|
if (FlagGet(SYS_UNKNOWN_87F))
|
|
|
|
{
|
|
|
|
gUnknown_020229CC.name[8] |= 0x10;
|
|
|
|
}
|
|
|
|
}
|
2017-11-08 04:52:10 +01:00
|
|
|
|
|
|
|
void sub_80096BC(void)
|
|
|
|
{
|
|
|
|
LoadOam();
|
|
|
|
ProcessSpriteCopyRequests();
|
|
|
|
TransferPlttBuffer();
|
|
|
|
}
|
|
|
|
|
|
|
|
void sub_80096D0(void)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i = 0; i < 8; i ++)
|
|
|
|
{
|
|
|
|
gUnknown_03003110[i] = 0xefff;
|
|
|
|
}
|
|
|
|
gUnknown_020229C4 = TRUE;
|
|
|
|
sub_800B594();
|
|
|
|
}
|
|
|
|
|
|
|
|
void task02_080097CC(u8 taskId)
|
|
|
|
{
|
|
|
|
if (++ gTasks[taskId].data[0] == 5)
|
|
|
|
{
|
|
|
|
gUnknown_03003144 = TRUE;
|
|
|
|
DestroyTask(taskId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void sub_8009734(void)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
if (!gLinkVSyncDisabled)
|
|
|
|
{
|
|
|
|
sub_800B628();
|
|
|
|
sub_80096D0();
|
|
|
|
gUnknown_03003140 = sub_800A824;
|
|
|
|
gUnknown_03002748 = 0;
|
|
|
|
gUnknown_0300306C = 0;
|
|
|
|
gUnknown_030030F8 = 0;
|
|
|
|
ResetBlockReceivedFlags();
|
|
|
|
sub_800A2E0();
|
|
|
|
gUnknown_03000D54 = 0;
|
|
|
|
gUnknown_030030E8 = 0;
|
|
|
|
gUnknown_030030E4 = 0;
|
|
|
|
gUnknown_030030F4 = 0;
|
|
|
|
CreateTask(task02_080097CC, 2);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
sub_800E700();
|
|
|
|
}
|
|
|
|
gReceivedRemoteLinkPlayers = 0;
|
|
|
|
for (i = 0; i < 4; i ++)
|
|
|
|
{
|
|
|
|
gUnknown_03003078[i] = 1;
|
|
|
|
gUnknown_030030F0[i] = 0;
|
|
|
|
gUnknown_030030EC[i] = 0;
|
|
|
|
}
|
|
|
|
}
|
2017-11-09 01:29:37 +01:00
|
|
|
|
|
|
|
void sub_80097E8(void)
|
|
|
|
{
|
|
|
|
gReceivedRemoteLinkPlayers = FALSE;
|
|
|
|
if (gLinkVSyncDisabled)
|
|
|
|
{
|
|
|
|
sub_800EDD4();
|
|
|
|
}
|
|
|
|
gUnknown_020229C4 = FALSE;
|
|
|
|
sub_800B53C();
|
|
|
|
}
|
|
|
|
|
2017-11-09 02:11:29 +01:00
|
|
|
static void sub_8009818(u8 nothing, u8 is, u8 used)
|
2017-11-09 01:29:37 +01:00
|
|
|
{
|
|
|
|
u8 i;
|
|
|
|
u8 status;
|
|
|
|
|
|
|
|
if (gUnknown_03000D64 != gUnknown_03000D10.pos)
|
|
|
|
{
|
|
|
|
sub_800A6E8(gUnknown_03000D10.pos, 2, 3, 2);
|
|
|
|
gUnknown_03000D64 = gUnknown_03000D10.pos;
|
|
|
|
}
|
|
|
|
for (i = 0; i < 4; i ++)
|
|
|
|
{
|
|
|
|
if (gUnknown_03000D68[i] != gUnknown_03000D20[i].pos)
|
|
|
|
{
|
|
|
|
sub_800A6E8(gUnknown_03000D20[i].pos, 2, i + 4, 2);
|
|
|
|
gUnknown_03000D68[i] = gUnknown_03000D20[i].pos;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
status = GetBlockReceivedStatus();
|
|
|
|
if (status == 0xF) // 0b1111
|
|
|
|
{
|
|
|
|
for (i = 0; i < 4; i ++)
|
|
|
|
{
|
|
|
|
if ((status >> i) & 1)
|
|
|
|
{
|
|
|
|
gUnknown_03003148[i] = sub_800A648(gBlockRecvBuffer[i], gUnknown_03000D20[i].size);
|
|
|
|
ResetBlockReceivedFlag(i);
|
|
|
|
if (gUnknown_03003148[i] != 0x0342)
|
|
|
|
{
|
|
|
|
gUnknown_020223BC = 0;
|
|
|
|
gUnknown_020223BD = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-11-09 01:58:59 +01:00
|
|
|
|
|
|
|
void sub_8009900(void)
|
|
|
|
{
|
|
|
|
if (gMain.newKeys & A_BUTTON)
|
|
|
|
{
|
|
|
|
gUnknown_03003144 = TRUE;
|
|
|
|
}
|
|
|
|
if (gMain.heldKeys & B_BUTTON)
|
|
|
|
{
|
|
|
|
sub_800A2F4(gHeap + 0x4000, 0x00002004);
|
|
|
|
}
|
|
|
|
if (gMain.newKeys & L_BUTTON)
|
|
|
|
{
|
|
|
|
BeginNormalPaletteFade(-1, 0, 16, 0, 2);
|
|
|
|
}
|
|
|
|
if (gMain.newKeys & START_BUTTON)
|
|
|
|
{
|
|
|
|
sub_800B330(1);
|
|
|
|
}
|
|
|
|
if (gMain.newKeys & R_BUTTON)
|
|
|
|
{
|
|
|
|
TrySavingData(1);
|
|
|
|
}
|
|
|
|
if (gMain.newKeys & SELECT_BUTTON)
|
|
|
|
{
|
|
|
|
sub_800AC34();
|
|
|
|
}
|
|
|
|
if (gUnknown_020223BC)
|
|
|
|
{
|
|
|
|
sub_800A994(gMain.vblankCounter2, gUnknown_03003140 ? gUnknown_03002748 : gUnknown_03002748 | 0x10);
|
|
|
|
}
|
|
|
|
}
|
2017-11-09 02:11:29 +01:00
|
|
|
|
|
|
|
void c2_08009A8C(void)
|
|
|
|
{
|
|
|
|
sub_8009900();
|
|
|
|
sub_8009818(1, 1, 0);
|
|
|
|
RunTasks();
|
|
|
|
AnimateSprites();
|
|
|
|
BuildOamBuffer();
|
|
|
|
UpdatePaletteFade();
|
|
|
|
}
|
|
|
|
|
|
|
|
u16 sub_80099E0(const u16 *src)
|
|
|
|
{
|
|
|
|
u8 i;
|
|
|
|
|
|
|
|
if (!gUnknown_020229C4)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
for (i = 0; i < 8; i ++)
|
|
|
|
{
|
|
|
|
gUnknown_03003110[i] = 0;
|
|
|
|
}
|
|
|
|
gUnknown_03003084 = *src;
|
|
|
|
if (gUnknown_030030E0 & 0x40)
|
|
|
|
{
|
|
|
|
sub_8009AA0(REG_SIOCNT_STRUCT.cnt0_2);
|
|
|
|
if (gUnknown_03003140 != NULL)
|
|
|
|
{
|
|
|
|
gUnknown_03003140();
|
|
|
|
}
|
|
|
|
sub_800AEB4();
|
|
|
|
}
|
|
|
|
return gUnknown_030030E0;
|
|
|
|
}
|