summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/cereader_tool.h42
-rw-r--r--include/link.h2
-rw-r--r--include/mevent.h6
-rw-r--r--include/save.h2
-rw-r--r--include/unk_815c27c.h12
5 files changed, 51 insertions, 13 deletions
diff --git a/include/cereader_tool.h b/include/cereader_tool.h
index 05677dc79..f223bdaa5 100644
--- a/include/cereader_tool.h
+++ b/include/cereader_tool.h
@@ -3,7 +3,45 @@
#include "global.h"
-bool32 sub_815D794(u8 *);
-bool32 sub_815D6B4(u8 *);
+struct TrainerTowerTrainer_004
+{
+ /* 0x000 */ u8 unk_000[11];
+ /* 0x00B */ u8 unk_00B;
+ /* 0x00C */ u8 unk_00C;
+ /* 0x00E */ u16 unk_00E[6];
+ /* 0x01A */ u16 unk_01A[6];
+ /* 0x026 */ u16 unk_026[6];
+ /* 0x032 */ u16 unk_032[6];
+ /* 0x040 */ struct BattleTowerPokemon unk_040[PARTY_SIZE];
+}; // size: 328
+
+struct TrainerTowerTrainer
+{
+ /* 0x000 */ u8 unk_000;
+ /* 0x000 */ u8 unk_001;
+ /* 0x002 */ u8 unk_002;
+ /* 0x003 */ u8 unk_003;
+ /* 0x004 */ struct TrainerTowerTrainer_004 unk_004[3];
+ /* 0x3DC */ u32 checksum;
+};
+
+struct Unk_203F458_Header
+{
+ u8 unk0;
+ u8 unk1;
+ u32 unk4;
+};
+
+struct TrainerTowerData
+{
+ u8 count;
+ u8 id;
+ u16 dummy;
+ u32 checksum;
+ struct TrainerTowerTrainer trainers[8];
+};
+
+bool32 ValidateTrainerTowerData(struct TrainerTowerData * a0);
+bool32 CEReaderTool_SaveTrainerTower(struct TrainerTowerData * a0);
#endif //GUARD_CEREADER_TOOL_H
diff --git a/include/link.h b/include/link.h
index a875149aa..33f04a42a 100644
--- a/include/link.h
+++ b/include/link.h
@@ -147,7 +147,7 @@ extern bool8 gReceivedRemoteLinkPlayers;
extern bool8 gLinkVSyncDisabled;
extern u8 gUnknown_3003F84;
-extern u64 gUnknown_3003FB4;
+extern u64 gSioMlt_Recv;
void Task_DestroySelf(u8);
void OpenLink(void);
diff --git a/include/mevent.h b/include/mevent.h
index b9b17d8c0..b61fa732d 100644
--- a/include/mevent.h
+++ b/include/mevent.h
@@ -23,9 +23,9 @@ struct MEventStruct_Unk1442CC
struct MEvent_Str_1
{
- u16 unk_000;
- size_t unk_004;
- const void * unk_008;
+ u16 status;
+ size_t size;
+ const void * data;
};
struct MEvent_Str_2
diff --git a/include/save.h b/include/save.h
index f547230b9..7a74373c8 100644
--- a/include/save.h
+++ b/include/save.h
@@ -121,7 +121,7 @@ u8 Save_LoadGameData(u8 a1);
u32 TryCopySpecialSaveSection(u8 sector, u8* dst);
u32 sub_8153634(u8 sector, u8* src);
void sub_8153688(u8 taskId);
-u32 sub_80DA5E0(u8 sector, u8* src);
+u32 TryWriteSpecialSaveSection(u8 sector, u8* src);
void sub_80DA634(u8 taskId);
#endif // GUARD_SAVE_H
diff --git a/include/unk_815c27c.h b/include/unk_815c27c.h
index cc1cbb7ce..02c886895 100644
--- a/include/unk_815c27c.h
+++ b/include/unk_815c27c.h
@@ -1,11 +1,11 @@
#ifndef GUARD_UNK_815C27C_H
#define GUARD_UNK_815C27C_H
-void sub_815C6D4(void);
-void sub_815C6C4(void);
-void sub_815C8C8(void);
-void sub_815C960(void);
-void sub_815C91C(void);
-u16 sub_815C498(u8, size_t, const void *, u8);
+void EReaderHelper_SerialCallback(void);
+void EReaderHelper_Timer3Callback(void);
+void EReaderHelper_SaveRegsState(void);
+void EReaderHelper_ClearsSendRecvMgr(void);
+void EReaderHelper_RestoreRegsState(void);
+u16 EReaderHandleTransfer(u8, size_t, const void *, void *);
#endif //GUARD_UNK_815C27C_H