From 26ff7e6a0802b8e62350dc9c4db5f351683fbad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Calixte?= Date: Tue, 22 Jun 2021 19:20:33 +0200 Subject: decompile unk_02002F08.s --- include/font.h | 4 +++- include/unk_02002F08.h | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 include/unk_02002F08.h (limited to 'include') diff --git a/include/font.h b/include/font.h index 3818fb7b..6617f8ef 100644 --- a/include/font.h +++ b/include/font.h @@ -10,9 +10,11 @@ struct UnkStruct_02002C14 u8 width; u8 height; void *unk84[4]; - void *unk94[4]; + struct UnkStruct_0202199C *unk94[4]; }; +extern struct UnkStruct_02002C14 *UNK_02106FC8; + void FUN_02002C14(); void FUN_02002C50(u32 param0, u32 param1); void FUN_02002C84(s32 param0, u32 param1); diff --git a/include/unk_02002F08.h b/include/unk_02002F08.h new file mode 100644 index 00000000..1f6671df --- /dev/null +++ b/include/unk_02002F08.h @@ -0,0 +1,38 @@ +#ifndef POKEDIAMON_UNK_02002F08_H +#define POKEDIAMON_UNK_02002F08_H + +#include "global.h" +#include "gf_gfx_loader.h" +#include "string16.h" + + +struct UnkStruct_02002F08 +{ + struct + { + u16 *unk00; + u16 *unk04; + u32 unk08; + u32 unk0c; + u32 unk10; + } unk000[14]; + + u32 unk118; + u32 unk11c; +}; + +int FUN_02002F08(u32 param0, struct String *str, u32 param2); +u32 FUN_02002F40(u32 param0, struct String *str, u32 param2, u32 param3); +u32 FUN_02002F58(const u16 *str); +u32 FUN_02002F90(struct String *str); +int FUN_02002F9C(u32 param0, struct String *str); +struct UnkStruct_02002F08 *FUN_02002FD0(u32 heap_id); +void FUN_02002FEC(struct UnkStruct_02002F08 *ptr); +void FUN_02002FF4(struct UnkStruct_02002F08 *param0, u32 param1, void *param2, void *param3, u32 size); +void FUN_02003008(struct UnkStruct_02002F08 *param0, u32 param1, u32 size, u32 heap_id); +void FUN_02003038(struct UnkStruct_02002F08 *param0, u32 param1); +void FUN_02003054(struct UnkStruct_02002F08 *param0, const void *param1, u32 param2, u32 offset, u16 size); +void FUN_02003084(struct UnkStruct_02002F08 *param0, NarcId narcId, s32 memberId, u32 heap_id, u32 param4, u32 size, u16 offset, u16 param7); +void FUN_020030E8(struct UnkStruct_02002F08 *param0, NarcId narcId, s32 memberId, u32 heap_id, u32 param4, u32 size, u16 offset); + +#endif //POKEDIAMON_UNK_02002F08_H -- cgit v1.2.3 From 4f67da10102f766b53bc209415649c8cd2e61b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Calixte?= Date: Wed, 23 Jun 2021 18:17:18 +0200 Subject: fix header --- include/unk_02002F08.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/unk_02002F08.h b/include/unk_02002F08.h index 1f6671df..a304009b 100644 --- a/include/unk_02002F08.h +++ b/include/unk_02002F08.h @@ -1,5 +1,5 @@ -#ifndef POKEDIAMON_UNK_02002F08_H -#define POKEDIAMON_UNK_02002F08_H +#ifndef POKEDIAMOND_UNK_02002F08_H +#define POKEDIAMOND_UNK_02002F08_H #include "global.h" #include "gf_gfx_loader.h" @@ -35,4 +35,4 @@ void FUN_02003054(struct UnkStruct_02002F08 *param0, const void *param1, u32 par void FUN_02003084(struct UnkStruct_02002F08 *param0, NarcId narcId, s32 memberId, u32 heap_id, u32 param4, u32 size, u16 offset, u16 param7); void FUN_020030E8(struct UnkStruct_02002F08 *param0, NarcId narcId, s32 memberId, u32 heap_id, u32 param4, u32 size, u16 offset); -#endif //POKEDIAMON_UNK_02002F08_H +#endif //POKEDIAMOND_UNK_02002F08_H -- cgit v1.2.3 From c5a2721fff4710a92cd68cb801f593f7e44357f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Calixte?= Date: Wed, 23 Jun 2021 19:51:13 +0200 Subject: int -> s32 --- include/string16.h | 4 ++-- include/unk_02002F08.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/string16.h b/include/string16.h index bc276ea7..69ea4e30 100644 --- a/include/string16.h +++ b/include/string16.h @@ -25,8 +25,8 @@ BOOL StringCompare(struct String *, struct String *); void CopyU16ArrayToStringN(struct String *, u16 *, u32); // copy void StringSetEmpty(struct String *); // set empty struct String * StringDup(struct String *, u32 heap_id); -int StringGetWidth(struct UnkStruct_0202199C * r7, const u16 * arr, u32 r6); -int StringGetWidth_SingleLine_HandleClearToControlCode(struct UnkStruct_0202199C * r6, const u16 * arr); +s32 StringGetWidth(struct UnkStruct_0202199C * r7, const u16 * arr, u32 r6); +s32 StringGetWidth_SingleLine_HandleClearToControlCode(struct UnkStruct_0202199C * r6, const u16 * arr); void String_dtor(struct String * str); void StringCopy(struct String * dest, struct String * src); void String16_FormatInteger(struct String * str, int num, u32 ndigits, int strConvMode, BOOL whichCharset); diff --git a/include/unk_02002F08.h b/include/unk_02002F08.h index a304009b..773d9246 100644 --- a/include/unk_02002F08.h +++ b/include/unk_02002F08.h @@ -21,11 +21,11 @@ struct UnkStruct_02002F08 u32 unk11c; }; -int FUN_02002F08(u32 param0, struct String *str, u32 param2); +s32 FUN_02002F08(u32 param0, struct String *str, u32 param2); u32 FUN_02002F40(u32 param0, struct String *str, u32 param2, u32 param3); u32 FUN_02002F58(const u16 *str); u32 FUN_02002F90(struct String *str); -int FUN_02002F9C(u32 param0, struct String *str); +s32 FUN_02002F9C(u32 param0, struct String *str); struct UnkStruct_02002F08 *FUN_02002FD0(u32 heap_id); void FUN_02002FEC(struct UnkStruct_02002F08 *ptr); void FUN_02002FF4(struct UnkStruct_02002F08 *param0, u32 param1, void *param2, void *param3, u32 size); -- cgit v1.2.3