From 95e2d6975c0fc3579a9fffd8e20399d1dc408d62 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Tue, 1 Sep 2020 16:20:09 -0400 Subject: Rename routines in pokemon.c --- include/seal.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 include/seal.h (limited to 'include/seal.h') diff --git a/include/seal.h b/include/seal.h new file mode 100644 index 00000000..9e31e2e4 --- /dev/null +++ b/include/seal.h @@ -0,0 +1,24 @@ +#ifndef POKEDIAMOND_SEAL_H +#define POKEDIAMOND_SEAL_H + +typedef u8 Coords8[3]; +typedef Coords8 CapsuleArray[8]; + +struct SealCase +{ + CapsuleArray coords[12]; + u8 padding_120[0x50]; +}; + +u32 FUN_02029C58(void); +void FUN_02029C60(struct SealCase * sealCase); +void FUN_02029C74(const CapsuleArray * a0, CapsuleArray * a1); +struct SealCase * FUN_02029C80(struct SaveBlock2 * sav2); +CapsuleArray * FUN_02029C8C(struct SealCase * sealCase, s32 idx); +void FUN_02029CA4(struct SealCase * sealCase, const CapsuleArray * src, s32 idx); +Coords8 * FUN_02029CC8(CapsuleArray * a0, s32 a1); +u8 FUN_02029CE0(Coords8 * a0); +u8 FUN_02029CE4(Coords8 * a0); +u8 FUN_02029CE8(Coords8 * a0); + +#endif //POKEDIAMOND_SEAL_H -- cgit v1.2.3 From 2fce2765829380a244a84b5ccf6f08086f820c9a Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Wed, 2 Sep 2020 15:17:31 -0400 Subject: Decompile seal_case --- include/seal.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'include/seal.h') diff --git a/include/seal.h b/include/seal.h index 9e31e2e4..7c4b04a5 100644 --- a/include/seal.h +++ b/include/seal.h @@ -7,18 +7,18 @@ typedef Coords8 CapsuleArray[8]; struct SealCase { CapsuleArray coords[12]; - u8 padding_120[0x50]; + u8 sealCounts[80]; }; -u32 FUN_02029C58(void); -void FUN_02029C60(struct SealCase * sealCase); -void FUN_02029C74(const CapsuleArray * a0, CapsuleArray * a1); -struct SealCase * FUN_02029C80(struct SaveBlock2 * sav2); -CapsuleArray * FUN_02029C8C(struct SealCase * sealCase, s32 idx); -void FUN_02029CA4(struct SealCase * sealCase, const CapsuleArray * src, s32 idx); -Coords8 * FUN_02029CC8(CapsuleArray * a0, s32 a1); -u8 FUN_02029CE0(Coords8 * a0); -u8 FUN_02029CE4(Coords8 * a0); -u8 FUN_02029CE8(Coords8 * a0); +u32 Sav2_SealCase_sizeof(void); +void Sav2_SealCase_init(struct SealCase * sealCase); +void CapsuleArray_copy(const CapsuleArray * a0, CapsuleArray * a1); +struct SealCase * Sav2_SealCase_get(struct SaveBlock2 * sav2); +CapsuleArray * SealCase_GetCapsuleI(struct SealCase * sealCase, s32 idx); +void SealCase_SetCapsuleI(struct SealCase * sealCase, const CapsuleArray * src, s32 idx); +Coords8 * Capsule_GetSealI(CapsuleArray * a0, s32 a1); +s32 Seal_GetId(Coords8 * a0); +s32 Seal_GetXCoord(Coords8 * a0); +s32 Seal_GetYCoord(Coords8 * a0); #endif //POKEDIAMOND_SEAL_H -- cgit v1.2.3