From 0b4d16442c6b18693d417aafb3b652c430d1e659 Mon Sep 17 00:00:00 2001 From: ProjectRevoTPP Date: Thu, 11 Oct 2018 23:29:11 -0400 Subject: decompile save.c --- include/global.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/global.h') diff --git a/include/global.h b/include/global.h index ba681d570..8e5fab52c 100644 --- a/include/global.h +++ b/include/global.h @@ -32,6 +32,9 @@ char* strcpy(char *dst0, const char *src0); #define POKEMON_NAME_LENGTH 10 #define OT_NAME_LENGTH 7 +#define min(a, b) ((a) < (b) ? (a) : (b)) +#define max(a, b) ((a) >= (b) ? (a) : (b)) + // There are many quirks in the source code which have overarching behavioral differences from // a number of other files. For example, diploma.c seems to declare rodata before each use while // other files declare out of order and must be at the beginning. There are also a number of @@ -510,6 +513,7 @@ struct SaveBlock1 /*0x361C*/ struct RamScript ramScript; /*0x3A08*/ u8 filler3A08[0x44]; /*0x3A4C*/ u8 rivalName[PLAYER_NAME_LENGTH]; + /*0x3A54*/ u8 filler3A54[0x314]; }; extern struct SaveBlock1* gSaveBlock1Ptr; -- cgit v1.2.3