From 18f29c566a7038a62f176d19b76e8db8e247d654 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Mon, 5 Aug 2019 10:54:56 -0400 Subject: through sub_81CF278 --- include/pokenav.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/pokenav.h b/include/pokenav.h index 31cb5cb17..276fe7262 100644 --- a/include/pokenav.h +++ b/include/pokenav.h @@ -7,16 +7,18 @@ typedef u32 (*LoopedTask)(s32 state); +struct PokenavMonList +{ + u8 boxId; + u8 monId; + u16 unk6; +}; + struct PokenavSub18 { u16 unk0; u16 unk2; - struct PokenavMonList - { - u8 boxId; - u8 monId; - u16 unk6; - } unk4[TOTAL_BOXES_COUNT * IN_BOX_COUNT + PARTY_SIZE]; + struct PokenavMonList unk4[TOTAL_BOXES_COUNT * IN_BOX_COUNT + PARTY_SIZE]; }; // Return values of LoopedTask functions. -- cgit v1.2.3 From e2e667d4b5ef8df1b707fd8c654ea64b4ea51727 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Mon, 5 Aug 2019 13:47:04 -0400 Subject: Finish pokenav_unk_8 --- include/pokenav.h | 15 +++++---------- include/strings.h | 3 +++ 2 files changed, 8 insertions(+), 10 deletions(-) (limited to 'include') diff --git a/include/pokenav.h b/include/pokenav.h index 276fe7262..c6fd8a622 100644 --- a/include/pokenav.h +++ b/include/pokenav.h @@ -77,7 +77,7 @@ void SetVBlankCallback_(IntrCallback callback); // pokenav_match_call_ui.c struct MatchCallListTemplate { - u32 unk0; + struct PokenavMonList * unk0; u16 unk4; u16 unk6; u8 unk8; @@ -87,9 +87,10 @@ struct MatchCallListTemplate u8 unkC; u8 unkD; u8 unkE; - void (*unk10)(u32, u8 *a1); + void (*unk10)(struct PokenavMonList *, u8 *a1); void (*unk14)(u16 a0, u32 a1, u32 a2); }; + u32 GetSelectedMatchCall(void); bool32 sub_81C8224(void); int MatchCall_MoveCursorUp(void); @@ -167,26 +168,20 @@ void sub_81C99D4(void); void sub_81CAADC(void); // pokenav_unk_3.c -struct Pokenav3Struct_Unk1C -{ - u8 unk0; - u8 unk1; - u16 unk2; -}; bool32 sub_81CAAE8(void); u32 sub_81CAB24(void); void sub_81CAB38(void); int sub_81CAE28(void); int sub_81CAE38(void); int sub_81CAE48(void); -struct Pokenav3Struct_Unk1C *sub_81CAE94(void); +struct PokenavMonList *sub_81CAE94(void); u16 sub_81CAEA4(int); bool32 sub_81CAEBC(int index); int sub_81CAF04(int index); const u8 *sub_81CAFD8(int index, int textType); u16 sub_81CB01C(void); u16 sub_81CB02C(int arg0); -void sub_81CB050(u32 arg0, u8 *str); +void sub_81CB050(struct PokenavMonList * arg0, u8 *str); u8 sub_81CB0C8(int rematchIndex); int sub_81CB0E4(int index); bool32 sub_81CAE08(int); diff --git a/include/strings.h b/include/strings.h index f2d3f23ad..7e7fcd322 100644 --- a/include/strings.h +++ b/include/strings.h @@ -2773,6 +2773,9 @@ extern const u8 gUnknown_085EC017[]; extern const u8 gUnknown_085EC01C[]; extern const u8 gUnknown_085EC022[]; +// pokenav_unk_8 +extern const u8 gText_NumberF700[]; + // pokenav_unk_10 extern const u8 gText_RibbonsF700[]; -- cgit v1.2.3 From a7eb4f9dd27a7584ad58e08f2e2dc71f58c42dd9 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Mon, 5 Aug 2019 14:00:38 -0400 Subject: Make pokenav_unk_8 syms static, fix gcc-9 warnings --- include/pokenav.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/pokenav.h b/include/pokenav.h index c6fd8a622..87d4e3e5c 100644 --- a/include/pokenav.h +++ b/include/pokenav.h @@ -189,7 +189,7 @@ int sub_81CB128(int index); // pokenav_unk_4.c bool32 sub_81CB260(void); -void sub_81CB29C(int index); +void sub_81CB29C(s32 index); u32 sub_81CB2CC(void); void sub_81CB2E0(void); void sub_81CBD48(u16 windowId, u32 a1); @@ -199,7 +199,7 @@ u32 sub_81CC4D4(void); void sub_81CC524(void); u32 sub_81CC554(void); bool32 sub_81CC5F4(void); -void sub_81CC62C(int); +void sub_81CC62C(s32); u32 sub_81CC65C(void); void sub_81CC670(void); -- cgit v1.2.3