mirror of
https://github.com/n64decomp/mk64
synced 2026-07-08 12:56:13 -04:00
Match assorted functions and identify a variable (#122)
Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
This commit is contained in:
@@ -32,6 +32,26 @@ typedef enum {
|
||||
/* 0x15 */ NUM_COURSES
|
||||
} COURSES;
|
||||
|
||||
typedef enum {
|
||||
/* 0x00 */ TIME_TRIAL_DATA_LUIGI_RACEWAY,
|
||||
/* 0x01 */ TIME_TRIAL_DATA_MOO_MOO_FARM,
|
||||
/* 0x02 */ TIME_TRIAL_DATA_KOOPA_BEACH,
|
||||
/* 0x03 */ TIME_TRIAL_DATA_KALAMARI_DESERT,
|
||||
/* 0x04 */ TIME_TRIAL_DATA_TOADS_TURNPIKE,
|
||||
/* 0x05 */ TIME_TRIAL_DATA_FRAPPE_SNOWLAND,
|
||||
/* 0x06 */ TIME_TRIAL_DATA_CHOCO_MOUNTAIN,
|
||||
/* 0x07 */ TIME_TRIAL_DATA_MARIO_RACEWAY,
|
||||
/* 0x08 */ TIME_TRIAL_DATA_WARIO_STADIUM,
|
||||
/* 0x09 */ TIME_TRIAL_DATA_SHERBET_LAND,
|
||||
/* 0x0A */ TIME_TRIAL_DATA_ROYAL_RACEWAY,
|
||||
/* 0x0B */ TIME_TRIAL_DATA_BOWSER_CASTLE,
|
||||
/* 0x0C */ TIME_TRIAL_DATA_DK_JUNGLE,
|
||||
/* 0x0D */ TIME_TRIAL_DATA_YOSHI_VALLEY,
|
||||
/* 0x0E */ TIME_TRIAL_DATA_BANSHEE_BOARDWALK,
|
||||
/* 0x0F */ TIME_TRIAL_DATA_RAINBOW_ROAD,
|
||||
/* 0x10 */ NUM_TIME_TRIAL_DATA
|
||||
} TIME_TRIAL_DATA_INDEX;
|
||||
|
||||
// This was added as a silly idea:
|
||||
// In the data to use "A, B, Z, R" instead of hex numbers.
|
||||
typedef enum {
|
||||
@@ -454,4 +474,11 @@ typedef struct {
|
||||
/* 0x14 */ s32 unk14; // Flip flops between 0 and 1, use unknown
|
||||
} struct_8018DEE0_entry; // size = 0x18
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ u16 red;
|
||||
/* 0x02 */ u16 green;
|
||||
/* 0x04 */ u16 blue;
|
||||
/* 0x06 */ u16 alpha;
|
||||
} RGBA16; // size = 0x08
|
||||
|
||||
#endif
|
||||
|
||||
@@ -170,4 +170,9 @@
|
||||
#define CUP_COURSE_FOUR 3
|
||||
#define NUM_COURSES_PER_CUP 4
|
||||
|
||||
/**
|
||||
* Max representable time, 100 minutes measured in centiseconds
|
||||
*/
|
||||
#define MAX_TIME 0x927C0
|
||||
|
||||
#endif // DEFINES_H
|
||||
|
||||
+2
-1
@@ -13,7 +13,7 @@ extern f32 gCourseCompletionPercentByPlayerId[8]; // D_801644D0
|
||||
extern f32 gCourseCompletionPercentByRank[8]; // D_80162FD8
|
||||
extern s8 gCupCourseSelection; // D_8018EE0B
|
||||
extern char *gCupNames[]; // D_800E7500
|
||||
extern s8 gCupSelection;
|
||||
extern s8 gCupSelection; // D_8018EE09
|
||||
// Maps course IDs (as defined in the COURSES enum) to the cup they belong to
|
||||
extern u8 gCupSelectionByCourseId[NUM_COURSES]; // D_800E7664
|
||||
extern s16 gCurrentCourseId;
|
||||
@@ -39,6 +39,7 @@ extern u8 gSoundMode; // D_8018EDF2
|
||||
extern char *gSoundModeNames[NUM_SOUND_MODES]; // D_800E7710
|
||||
// Indexed by Player ID. Track time in seconds since player has last crossed the finish line
|
||||
extern f32 gTimePlayerLastTouchedFinishLine[8]; // D_8015F898
|
||||
extern s8 gTimeTrialDataCourseIndex; // D_8018EDF7
|
||||
|
||||
extern struct_8018D9E0_entry D_8018D9E0[32]; // D_8018D9E0
|
||||
extern struct_8018DEE0_entry D_8018DEE0[16]; // D_8018DEE0
|
||||
|
||||
Reference in New Issue
Block a user