pokeemerald/include/link_rfu.h

231 lines
5.6 KiB
C
Raw Normal View History

2017-11-11 04:08:17 +01:00
#ifndef GUARD_LINK_RFU_H
#define GUARD_LINK_RFU_H
// Exported type declarations
2017-12-04 02:32:49 +01:00
struct __attribute__((packed)) UnkLinkRfuStruct_02022B14
{
2017-12-04 02:04:54 +01:00
u16 unk_00_0:4;
u16 unk_00_4:1;
u16 unk_00_5:1;
u16 unk_00_6:1;
u16 unk_00_7:1;
u16 unk_01_0:1;
u16 unk_01_1:1;
u16 unk_01_2:4;
u16 unk_01_6:2;
u8 playerTrainerId[2];
u8 unk_04[4];
u16 unk_08_0:10;
u16 unk_09_2:6;
u8 unk_0a_0:7;
u8 unk_0a_7:1;
2017-12-04 02:04:54 +01:00
u8 playerGender:1;
u8 unk_0b_1:7;
u8 unk_0c;
};
2017-11-17 14:44:54 +01:00
struct UnkLinkRfuStruct_02022B2C
{
2017-11-19 22:54:49 +01:00
u8 unk_00;
u8 unk_01;
u16 unk_02;
u8 unk_04;
u16 unk_06;
struct UnkLinkRfuStruct_02022B14 *unk_08;
u8 *unk_0c;
2017-11-17 14:44:54 +01:00
u8 unk_10;
u8 unk_11;
u16 unk_12;
u16 unk_14;
};
2017-12-07 06:28:12 +01:00
struct UnkLinkRfuStruct_02022B44
{
2017-12-08 02:21:30 +01:00
u8 fill_00[6];
u16 unk_06;
2018-01-18 14:46:17 +01:00
u8 fill_08[6];
vu8 unk_0e;
2017-12-07 06:28:12 +01:00
u8 unk_0f;
u8 fill_10[0xcc];
};
2017-11-17 05:37:09 +01:00
struct UnkRfuStruct_1 {
2017-11-19 06:02:15 +01:00
/* 0x000 */ u8 unk_00;
/* 0x001 */ u8 unk_01;
2017-11-21 15:14:43 +01:00
/* 0x002 */ vu8 unk_02;
2017-11-19 06:02:15 +01:00
/* 0x003 */ vu8 unk_03;
/* 0x004 */ u8 unk_04;
/* 0x005 */ u8 unk_05;
/* 0x006 */ u8 unk_06;
/* 0x007 */ u8 unk_07;
/* 0x008 */ u8 unk_08;
/* 0x009 */ u8 unk_09;
/* 0x00a */ u8 unk_0a;
/* 0x00b */ u8 unk_0b;
/* 0x00c */ u8 unk_0c;
/* 0x00d */ u8 unk_0d;
2017-11-19 22:54:49 +01:00
/* 0x00e */ u8 unk_0e;
/* 0x00f */ u8 unk_0f;
2017-11-19 06:02:15 +01:00
/* 0x010 */ u8 unk_10;
/* 0x011 */ u8 unk_11;
/* 0x012 */ u8 unk_12;
2017-11-19 05:30:23 +01:00
// aligned
2017-11-19 06:02:15 +01:00
/* 0x014 */ u16 unk_14;
2017-11-19 16:20:44 +01:00
/* 0x016 */ u16 unk_16;
2017-11-19 06:02:15 +01:00
/* 0x018 */ u16 unk_18;
/* 0x01a */ u16 unk_1a;
2017-11-20 00:34:28 +01:00
/* 0x01c */ u16 unk_1c;
2017-11-19 06:02:15 +01:00
/* 0x01e */ u16 unk_1e;
2017-12-05 03:05:41 +01:00
/* 0x020 */ const u16 *unk_20;
2017-11-19 06:02:15 +01:00
/* 0x024 */ u8 unk_24;
/* 0x026 */ u16 unk_26;
/* 0x028 */ u16 unk_28[4];
/* 0x030 */ u8 unk_30;
2017-11-18 21:00:38 +01:00
// aligned
2017-11-19 06:02:15 +01:00
/* 0x032 */ u16 unk_32;
/* 0x034 */ u16 unk_34[4];
/* 0x03c */ const struct UnkLinkRfuStruct_02022B2C *unk_3c;
2017-11-30 06:19:44 +01:00
/* 0x040 */ void (*unk_40)(u8, u8);
2017-11-22 06:16:00 +01:00
/* 0x044 */ void (*unk_44)(u16);
2017-12-05 02:06:03 +01:00
/* 0x048 */ u8 filler_48[8];
/* 0x050 */ u32 unk_50[0x399];
/* 0xeb4 */ u8 filler_e64[12];
2017-11-19 06:02:15 +01:00
};
2017-12-05 01:51:26 +01:00
struct UnkRfuStruct_2_Sub_6c {
/* 0x00 */ u16 unk_00;
/* 0x02 */ u16 unk_02;
2018-01-19 01:23:12 +01:00
/* 0x04 */ u8 *unk_04;
2017-12-05 01:51:26 +01:00
/* 0x08 */ u32 unk_08;
2018-01-19 01:23:12 +01:00
/* 0x0c */ u32 unk_0c;
2017-12-05 01:51:26 +01:00
/* 0x10 */ u8 unk_10;
/* 0x11 */ u8 unk_11;
/* 0x12 */ u8 unk_12;
};
2017-12-01 04:56:56 +01:00
struct UnkRfuStruct_2_Sub_124 {
/* 0x000 */ u8 unk_00[32][70];
/* 0x8c0 */ vu8 unk_8c0;
/* 0x8c1 */ vu8 unk_8c1;
/* 0x8c2 */ vu8 unk_8c2;
/* 0x8c3 */ vu8 unk_8c3;
};
struct UnkRfuStruct_2_Sub_9e8 {
/* 0x000 */ u8 unk_00[40][14];
/* 0x230 */ vu8 unk_230;
/* 0x231 */ vu8 unk_231;
/* 0x232 */ vu8 unk_232;
/* 0x233 */ vu8 unk_233;
};
2017-12-02 03:51:06 +01:00
struct UnkRfuStruct_2_Sub_c1c {
/* 0x00 */ u8 unk_00[2][14];
/* 0x1c */ vu8 unk_1c;
/* 0x1d */ vu8 unk_1d;
/* 0x1e */ vu8 unk_1e;
};
2017-12-01 04:56:56 +01:00
struct UnkRfuStruct_Sub_Unused {
/* 0x000 */ u8 unk_00[2][256];
/* 0x200 */ vu8 unk_200;
/* 0x201 */ vu8 unk_201;
/* 0x202 */ vu8 unk_202;
/* 0x203 */ vu8 unk_203;
};
2017-11-19 06:02:15 +01:00
struct UnkRfuStruct_2 {
2018-01-20 01:13:45 +01:00
/* 0x000 */ void (*unk_00)(void);
2017-12-05 03:05:41 +01:00
/* 0x004 */ u16 unk_04;
/* 0x006 */ u8 filler_06[6];
2017-12-05 01:51:26 +01:00
/* 0x00c */ u8 unk_0c;
2017-11-19 06:02:15 +01:00
/* 0x00d */ u8 playerCount;
2017-12-16 18:07:20 +01:00
/* 0x00e */ u8 unk_0e;
/* 0x00f */ u8 filler_0f[5];
2017-12-07 14:48:49 +01:00
/* 0x014 */ u8 unk_14[4][14];
2017-12-08 14:24:54 +01:00
/* 0x04c */ u8 unk_4c[14];
2018-01-20 01:13:45 +01:00
/* 0x05a */ u8 filler_5a[2];
/* 0x05c */ u8 unk_5c[5];
/* 0x061 */ u8 unk_61[5];
/* 0x066 */ u8 unk_66;
2017-12-08 14:24:54 +01:00
/* 0x067 */ u8 unk_67;
2017-12-07 06:28:12 +01:00
/* 0x068 */ u8 filler_68[4];
2017-12-05 01:51:26 +01:00
/* 0x06c */ struct UnkRfuStruct_2_Sub_6c unk_6c;
/* 0x080 */ struct UnkRfuStruct_2_Sub_6c unk_80[5];
2018-01-20 03:50:30 +01:00
/* 0x0e4 */ u8 unk_e4[5];
/* 0x0e9 */ u8 unk_e9[5];
2017-12-05 01:51:26 +01:00
/* 0x0ee */ vu8 unk_ee;
2018-01-20 03:50:30 +01:00
/* 0x0ef */ u8 filler_ef[0x11];
/* 0x100 */ u16 unk_100;
2018-01-18 19:18:24 +01:00
/* 0x102 */ u8 unk_102;
/* 0x103 */ u8 filler_103[0x21];
2017-12-01 04:56:56 +01:00
/* 0x124 */ struct UnkRfuStruct_2_Sub_124 unk_124;
/* 0x9e8 */ struct UnkRfuStruct_2_Sub_9e8 unk_9e8;
2017-12-02 03:51:06 +01:00
/* 0xc1c */ struct UnkRfuStruct_2_Sub_c1c unk_c1c;
2017-12-10 16:31:11 +01:00
/* 0xc3c */ vu8 unk_c3c;
2017-12-10 16:23:43 +01:00
/* 0xc3d */ u8 unk_c3d;
2017-12-07 06:28:12 +01:00
/* 0xc3e */ vu8 unk_c3e;
2017-12-07 14:48:49 +01:00
/* 0xc3f */ u8 unk_c3f[70];
/* 0xc85 */ u8 filler_c85[2];
2017-12-10 16:23:43 +01:00
/* 0xc87 */ u8 unk_c87[5][7][2];
/* 0xccd */ u8 unk_ccd;
2018-01-20 03:50:30 +01:00
/* 0xcce */ u8 unk_cce;
/* 0xccf */ u8 unk_ccf;
2017-12-08 02:21:30 +01:00
/* 0xcd0 */ vu8 unk_cd0;
2018-01-18 14:46:17 +01:00
/* 0xcd1 */ u8 filler_cd1[8];
/* 0xcd9 */ u8 unk_cd9;
2017-12-08 02:21:30 +01:00
/* 0xcda */ u8 unk_cda;
2017-12-05 03:05:41 +01:00
/* 0xcdb */ vu8 unk_cdb;
2017-12-16 18:07:20 +01:00
/* 0xcdc */ vu8 unk_cdc;
/* 0xcdd */ u8 unk_cdd;
2017-12-07 05:55:40 +01:00
/* 0xcde */ u8 unk_cde[4];
2017-12-07 14:48:49 +01:00
/* 0xce2 */ u8 unk_ce2;
/* 0xce2 */ u8 unk_ce3;
2017-12-07 06:28:12 +01:00
/* 0xce4 */ u8 unk_ce4;
2018-01-18 14:46:17 +01:00
/* 0xce5 */ u8 unk_ce5;
/* 0xce5 */ u8 unk_ce6;
2017-12-10 16:23:43 +01:00
/* 0xce7 */ u8 unk_ce7;
2017-12-08 02:04:07 +01:00
/* 0xce8 */ u8 unk_ce8;
2018-01-18 14:46:17 +01:00
/* 0xce9 */ u8 unk_ce9;
/* 0xcea */ u8 unk_cea[4];
/* 0xcee */ u8 unk_cee[4];
2017-12-05 01:51:26 +01:00
}; // size = 0xcf4
2017-11-17 05:37:09 +01:00
2017-11-11 04:08:17 +01:00
// Exported RAM declarations
2017-11-17 05:37:09 +01:00
extern struct UnkRfuStruct_1 gUnknown_03004140;
2017-11-19 06:02:15 +01:00
extern struct UnkRfuStruct_2 gUnknown_03005000;
2017-11-17 05:37:09 +01:00
2017-11-11 04:08:17 +01:00
// Exported ROM declarations
u32 sub_800BEC0(void);
void sub_800E700(void);
void sub_800EDD4(void);
2017-11-11 04:34:23 +01:00
void sub_800F6FC(u8 who);
void sub_800F728(u8 who);
2017-11-11 04:08:17 +01:00
bool32 sub_800F7E4(void);
void sub_800F804(void);
void sub_800F850(void);
2017-11-11 04:34:23 +01:00
u8 sub_800FCD8(void);
bool32 sub_800FE84(const void *src, size_t size);
2017-11-11 04:08:17 +01:00
void Rfu_set_zero(void);
u8 sub_80104F4(void);
u8 rfu_get_multiplayer_id(void);
bool8 sub_8010100(u8 a0);
bool8 sub_8010500(void);
2017-11-13 04:09:11 +01:00
bool8 Rfu_IsMaster(void);
void task_add_05_task_del_08FA224_when_no_RfuFunc(void);
2017-11-13 04:44:20 +01:00
void sub_8010434(void);
2017-11-13 05:16:51 +01:00
void sub_800E604(void);
2017-11-13 07:01:27 +01:00
void sub_800E174(void);
void sub_800E6D0(void);
bool32 sub_8010EC0(void);
bool32 sub_8010F1C(void);
bool32 sub_800F0B8(void);
2017-11-13 07:12:34 +01:00
u32 sub_80124D4(void);
2017-11-14 14:44:32 +01:00
void RfuVSync(void);
2017-12-05 03:05:41 +01:00
void sub_80111B0(bool32 a0);
u8 sub_8011A74(void);
2017-11-11 04:08:17 +01:00
#endif //GUARD_LINK_RFU_H