From d523142098cb0d0fb37eca7d91931859776b085d Mon Sep 17 00:00:00 2001 From: tgsm Date: Mon, 24 May 2021 18:23:47 -0400 Subject: Decompile unk_0206439C --- include/unk_0206439C.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/unk_0206439C.h (limited to 'include') diff --git a/include/unk_0206439C.h b/include/unk_0206439C.h new file mode 100644 index 00000000..6d094e5c --- /dev/null +++ b/include/unk_0206439C.h @@ -0,0 +1,15 @@ +#ifndef POKEDIAMOND_UNK_0206439C_H +#define POKEDIAMOND_UNK_0206439C_H + +struct Pokemon; +struct SaveBlock2; + +struct UnkStruct_0206439C +{ + struct Pokemon* pokemon; + void* unk4; +}; + +struct UnkStruct_0206439C* FUN_0206439C(u32 heap_id, u8 mon_idx, struct SaveBlock2* sav2); + +#endif -- cgit v1.2.3 From 8169654ed22031b0aba942913aae72d296c2c83a Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Tue, 25 May 2021 17:19:59 -0400 Subject: Decompile gf_rtc.c --- include/error_handling.h | 2 +- include/gf_rtc.h | 31 +++++++++++++++++++++++++++++++ include/global.h | 2 +- 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 include/gf_rtc.h (limited to 'include') diff --git a/include/error_handling.h b/include/error_handling.h index 1299fcba..c14c93fe 100644 --- a/include/error_handling.h +++ b/include/error_handling.h @@ -1,6 +1,6 @@ #ifndef POKEDIAMOND_ERROR_HANDLING_H #define POKEDIAMOND_ERROR_HANDLING_H -void ErrorHandling(void); +void GF_AssertFail(void); #endif //POKEDIAMOND_ERROR_HANDLING_H diff --git a/include/gf_rtc.h b/include/gf_rtc.h new file mode 100644 index 00000000..f7a4e2a7 --- /dev/null +++ b/include/gf_rtc.h @@ -0,0 +1,31 @@ +#ifndef POKEDIAMOND_GF_RTC_H +#define POKEDIAMOND_GF_RTC_H + +#include "RTC_api.h" + +enum RTC_Month +{ + RTC_MONTH_JANUARY = 1, + RTC_MONTH_FEBRUARY, + RTC_MONTH_MARCH, + RTC_MONTH_APRIL, + RTC_MONTH_MAY, + RTC_MONTH_JUNE, + RTC_MONTH_JULY, + RTC_MONTH_AUGUST, + RTC_MONTH_SEPTEMBER, + RTC_MONTH_OCTOBER, + RTC_MONTH_NOVEMBER, + RTC_MONTH_DECEMBER, +}; + +enum RTC_TimeOfDay +{ + RTC_TIMEOFDAY_MORN = 0, + RTC_TIMEOFDAY_DAY, + RTC_TIMEOFDAY_EVE, + RTC_TIMEOFDAY_NITE, + RTC_TIMEOFDAY_LATE, +}; + +#endif //POKEDIAMOND_GF_RTC_H diff --git a/include/global.h b/include/global.h index 1c92a1ec..1853dbc3 100644 --- a/include/global.h +++ b/include/global.h @@ -11,7 +11,7 @@ #define NELEMS(a) (sizeof(a) / sizeof(*(a))) -#define GF_ASSERT(expr) do {if (!(expr)) ErrorHandling();} while (0) +#define GF_ASSERT(expr) do {if (!(expr)) GF_AssertFail();} while (0) #ifndef IN_MAIN_C extern const u8 gGameLanguage; -- cgit v1.2.3