From c048ec3ee3964faf96da46e62a6d24936b19916e Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 17 Oct 2020 18:03:00 -0400 Subject: rename code_801DAA30's static initializer in ctors.s, and match code_801DAA30.cpp. Does not link because the __sinit_ function is not global --- include/types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/types.h b/include/types.h index 01c7fbf..7df137c 100644 --- a/include/types.h +++ b/include/types.h @@ -25,6 +25,8 @@ typedef volatile s64 vs64; typedef float f32; typedef volatile f32 vf32; +typedef unsigned long size_t; + typedef int BOOL; #define TRUE 1 #define FALSE 0 -- cgit v1.2.3 From a9e25ce7ed4e0ad2f53b520445eed63d476c1257 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 17 Oct 2020 20:10:05 -0400 Subject: add note to ctors_2, and organize function/class declarations into headers --- include/code_801DAA30.h | 9 +++++++++ include/code_801DAAE0.h | 16 ++++++++++++++++ include/unkStruct.h | 17 +++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 include/code_801DAA30.h create mode 100644 include/code_801DAAE0.h create mode 100644 include/unkStruct.h (limited to 'include') diff --git a/include/code_801DAA30.h b/include/code_801DAA30.h new file mode 100644 index 0000000..167f01c --- /dev/null +++ b/include/code_801DAA30.h @@ -0,0 +1,9 @@ +#ifndef POKEREVO_CODE_801DAA30_H +#define POKEREVO_CODE_801DAA30_H + +void* operator new(size_t sz); +void* operator new[](size_t sz); +void operator delete(void* ptr); +void operator delete[](void* ptr); + +#endif //POKEREVO_CODE_801DAA30_H diff --git a/include/code_801DAAE0.h b/include/code_801DAAE0.h new file mode 100644 index 0000000..34bafa0 --- /dev/null +++ b/include/code_801DAAE0.h @@ -0,0 +1,16 @@ +#ifndef POKEREVO_CODE_801DAAE0_H +#define POKEREVO_CODE_801DAAE0_H + +#ifdef __cplusplus +extern "C" { +#endif + +BOOL func_801DAB28(void); +void *func_801DAD64(size_t); +void func_801DAEA4(void *); + +#ifdef __cplusplus +} +#endif + +#endif //POKEREVO_CODE_801DAAE0_H diff --git a/include/unkStruct.h b/include/unkStruct.h new file mode 100644 index 0000000..aface6c --- /dev/null +++ b/include/unkStruct.h @@ -0,0 +1,17 @@ +#ifndef POKEREVO_CODE_UNKSTRUCT_H +#define POKEREVO_CODE_UNKSTRUCT_H + +class unkStruct +{ + u8 unk0; + u16 unk2; + u8 unk4; + u8 unk5; + u8 unk6; + u8 unk7; +public: + unkStruct(u8 p1, u16 p2, u8 p3) + : unk0(p1), unk2(p2), unk4(p3) { } +}; + +#endif //POKEREVO_CODE_UNKSTRUCT_H -- cgit v1.2.3 From 67137e460468b0f5293561165c0113d43d60c473 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 17 Oct 2020 20:16:23 -0400 Subject: add unkStruct.h --- include/unkStruct.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/unkStruct.h b/include/unkStruct.h index aface6c..73d3cfc 100644 --- a/include/unkStruct.h +++ b/include/unkStruct.h @@ -1,6 +1,9 @@ #ifndef POKEREVO_CODE_UNKSTRUCT_H #define POKEREVO_CODE_UNKSTRUCT_H +// Note: Many instances of this class appear in .sbss, and they are partially initialized +// by the static initializers in .ctors + class unkStruct { u8 unk0; -- cgit v1.2.3