summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorscnorton <scnorton@biociphers.org>2017-06-05 16:34:47 -0400
committerscnorton <scnorton@biociphers.org>2017-06-05 16:34:47 -0400
commit4a6d595e5171ed4dc3742c3ff43e771b731a9716 (patch)
treebf510f9b35f1e18c07e48d8ccb8d282be244cf16 /include
parent454d7bbdd7ee6c5cb61680da855755869662968f (diff)
Assign types to structures passed to secret base exchange packet receipt subroutine staged for decompilation; decompile sub_8041324
Diffstat (limited to 'include')
-rw-r--r--include/asm.inc.h2
-rw-r--r--include/global.h12
-rw-r--r--include/record_mixing.h2
3 files changed, 11 insertions, 5 deletions
diff --git a/include/asm.inc.h b/include/asm.inc.h
index e087acd28..7c090dec2 100644
--- a/include/asm.inc.h
+++ b/include/asm.inc.h
@@ -42,7 +42,7 @@ void LoadWordFromTwoHalfwords(u16 *, u32 *);
u8 Daycare_CountPokemon(struct BoxPokemon *);
// asm/daycare.o
-void sub_8041324(struct BoxPokemon *, void *);
+void sub_8041324(struct BoxPokemon *, struct RecordMixing_UnknownStruct *);
void sub_8041790(int i);
u16 sub_8041870(u16);
void sub_8041940(void);
diff --git a/include/global.h b/include/global.h
index 9a95cf41f..716aae15f 100644
--- a/include/global.h
+++ b/include/global.h
@@ -472,10 +472,16 @@ struct GabbyAndTyData {
/*2b1b*/ u8 valB_5:3;
};
-struct RecordMixing_UnknownStruct {
+struct RecordMixing_UnknownStructSub {
u8 data[0x38];
};
+struct RecordMixing_UnknownStruct {
+ struct RecordMixing_UnknownStructSub data[2];
+ u32 unk70;
+ u16 unk74[0x2];
+};
+
struct SaveBlock1 /* 0x02025734 */
{
/*0x00*/ struct Coords16 pos;
@@ -551,8 +557,8 @@ struct SaveBlock1 /* 0x02025734 */
/*0x2DFC*/ u8 filler_2DFC[0x8];
/*0x2E04*/ SB_Struct sbStruct;
/*0x2F9C*/ struct BoxPokemon daycareData[2];
- /*0x303C*/ struct RecordMixing_UnknownStruct filler_303C[2];
- /*0x30AC*/ u8 filler_30AC[0xA];
+ /*0x303C*/ struct RecordMixing_UnknownStruct filler_303C;
+ /*0x30AC*/ u8 filler_30B4[0x2];
/*0x30B6*/ u8 filler_30B6;
/*0x30B7*/ u8 filler_30B7[1];
/*0x30B8*/ u8 linkBattleRecords[5][16];
diff --git a/include/record_mixing.h b/include/record_mixing.h
index 72a089ca1..ec30f50a0 100644
--- a/include/record_mixing.h
+++ b/include/record_mixing.h
@@ -27,7 +27,7 @@ void sub_80B9BC4(u32 a, u32 b, u32 c, u32 d);
u8 sub_80B9C4C(u8 *a);
// ASM
-void sub_80B9C6C(void *, u32, u8, void *);
+void sub_80B9C6C(struct RecordMixing_UnknownStruct *, u32, u8, void *);
void sub_80B9F3C(void *, u8);
void sub_80BA00C(u8);