diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2024-10-05 15:31:31 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-05 15:31:31 -0600 |
| commit | 75297759ee906b103ff9714dad17e683f1757b7f (patch) | |
| tree | 2a81aff6c8e1d2be2806f34f8850c74499980479 /include | |
| parent | 447fd8b29057e8dcc223507e6b7d6bc448c6f7d8 (diff) | |
[modding] Course Mod Support (#104)
* Course Manager
* Course
* Test
* Render
* That escalated quickly
* update
* properties
* Properties
* test
* Fix compile
* Add World
* skycolours
* Skybox Colours done
* Cleanup
* test
* Game runs again
* update
* Game run again
* Cup Works
* continue
* Add Courses
* clouds
* changes
* fixes
* update
* Fix compile
* update
* A few changes
* More Updates
* More refactors
* Fixes
* Fix ai behaviour
* Changes
* Fix courses
* test course test not working
* CUSTOM
* TestCourse works kinda
* fixes
* test course works
* cleanup
---------
Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/common_structs.h | 14 | ||||
| -rw-r--r-- | include/course_offsets.h | 2 | ||||
| -rw-r--r-- | include/defines.h | 2 |
3 files changed, 16 insertions, 2 deletions
diff --git a/include/common_structs.h b/include/common_structs.h index 46e3895da..db8e189c9 100644 --- a/include/common_structs.h +++ b/include/common_structs.h @@ -125,6 +125,15 @@ struct UnkStruct_800DDB68 { }; /*** Types.h end ***/ +struct Skybox { + s16 unk0; + s16 unk2; + s16 unk4; + s16 unk6; + s16 unk8; + s16 unkA; +}; + typedef struct { u8 button; s8 frameDuration; @@ -398,6 +407,11 @@ typedef struct { } struct_8018EE10_entry; // size = 0x80 typedef struct { + uint8_t r, g, b; +} RGB8; + + +typedef struct { /* 0x00 */ u16 red; /* 0x02 */ u16 green; /* 0x04 */ u16 blue; diff --git a/include/course_offsets.h b/include/course_offsets.h index 5f5ddfec9..947ebbebf 100644 --- a/include/course_offsets.h +++ b/include/course_offsets.h @@ -8,7 +8,7 @@ #include "animation.h" typedef struct { - u8* addr; // segmented address texture file + const char* addr; // segmented address texture file u32 file_size; // compressed file size u32 data_size; // uncompressed texture size u32 padding; // always zero diff --git a/include/defines.h b/include/defines.h index 4172ae5a0..11394a6c2 100644 --- a/include/defines.h +++ b/include/defines.h @@ -199,7 +199,7 @@ enum { COURSE_ONE, COURSE_TWO, COURSE_THREE, COURSE_FOUR }; #define CONTROLLER_PAK_MENU 9 #define START_MENU 10 #define MAIN_MENU 11 -#define PLAYER_SELECT_MENU 12 +#define CHARACTER_SELECT_MENU 12 #define COURSE_SELECT_MENU 13 #define RACING_DUPLICATE 14 |
