diff --git a/include/common.h b/include/common.h index 1f45ebe0..70f5399c 100644 --- a/include/common.h +++ b/include/common.h @@ -1,6 +1,8 @@ #ifndef _COMMON_H_ #define _COMMON_H_ -void OSReport(const char * format, ...); +#include "types.h" +#include "common_structs.h" +#include "functions.h" #endif \ No newline at end of file diff --git a/include/common_structs.h b/include/common_structs.h new file mode 100644 index 00000000..19a73ff0 --- /dev/null +++ b/include/common_structs.h @@ -0,0 +1,12 @@ +#ifndef _COMMON_STRUCTS_H +#define _COMMON_STRUCTS_H + +#include "types.h" + +typedef struct UnkOvl { + s32 unk0; + char unk4[4]; + s32 unk8; +} UnkOvl; + +#endif \ No newline at end of file diff --git a/include/functions.h b/include/functions.h new file mode 100644 index 00000000..4f81af72 --- /dev/null +++ b/include/functions.h @@ -0,0 +1,17 @@ +#ifndef _FUNCTIONS_H_ +#define _FUNCTIONS_H_ + +#include "types.h" +#include "common_structs.h" + +void OSReport(const char * format, ...); +void *HuPrcCreate(void (*), s32, s32, s32); +void Hu3DBGColorSet(u8, u8, u8); +void Hu3DCameraCreate(s16); +void Hu3DCameraPerspectiveSet(s16, f32, f32, f32, f32); +void Hu3DCameraViewportSet(s16, f32, f32, f32, f32, f32, f32); +void omOvlHisChg(s32, s32, s32, s32); +UnkOvl* omOvlHisGet(s32); +void * omInitObjMan(s32, s32); + +#endif \ No newline at end of file diff --git a/include/types.h b/include/types.h new file mode 100644 index 00000000..71c28167 --- /dev/null +++ b/include/types.h @@ -0,0 +1,23 @@ +#ifndef _TYPES_H_ +#define _TYPES_H_ + +typedef unsigned char u8; +typedef unsigned short u16; +typedef unsigned long u32; +typedef unsigned long long u64; +typedef signed char s8; +typedef short s16; +typedef long s32; +typedef long long s64; +typedef volatile unsigned char vu8; +typedef volatile unsigned short vu16; +typedef volatile unsigned long vu32; +typedef volatile unsigned long long vu64; +typedef volatile signed char vs8; +typedef volatile short vs16; +typedef volatile long vs32; +typedef volatile long long vs64; +typedef float f32; +typedef double f64; + +#endif \ No newline at end of file