mirror of
https://github.com/n64decomp/mk64
synced 2026-07-28 07:07:12 -04:00
Header cleanup and some renames (#616)
* Place macros for addr conversions * dl renames * fixes * changes ok * Delete types.h * move enums
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#include <actors.h>
|
||||
#include <main.h>
|
||||
#include <types.h>
|
||||
#include <code_800029B0.h>
|
||||
#include <defines.h>
|
||||
#include "collision.h"
|
||||
|
||||
@@ -37,8 +37,8 @@ void render_actor_paddle_boat(Camera *arg0, struct PaddleWheelBoat *boat, UNUSED
|
||||
if (render_set_position(spE0, 1) != 0) {
|
||||
|
||||
// Render the boat
|
||||
gSPDisplayList(gDisplayListHead++, &d_course_dks_jungle_parkway_dl_E730);
|
||||
gSPDisplayList(gDisplayListHead++, &d_course_dks_jungle_parkway_dl_E058);
|
||||
gSPDisplayList(gDisplayListHead++, &d_course_dks_jungle_parkway_boat_dl);
|
||||
gSPDisplayList(gDisplayListHead++, &d_course_dks_jungle_parkway_railings_dl);
|
||||
|
||||
mtxf_rotate_x(spE0, boat->wheelRot);
|
||||
vec3f_set(sp120, 0, 16.0f, -255.0f);
|
||||
@@ -47,7 +47,7 @@ void render_actor_paddle_boat(Camera *arg0, struct PaddleWheelBoat *boat, UNUSED
|
||||
if (render_set_position(sp60, 3) != 0) {
|
||||
// Render the paddle wheel
|
||||
gSPClearGeometryMode(gDisplayListHead++, G_CULL_BACK);
|
||||
gSPDisplayList(gDisplayListHead++, &d_course_dks_jungle_parkway_dl_FC28);
|
||||
gSPDisplayList(gDisplayListHead++, &d_course_dks_jungle_parkway_paddle_wheel_dl);
|
||||
gSPPopMatrix(gDisplayListHead++, G_MTX_MODELVIEW);
|
||||
gSPSetGeometryMode(gDisplayListHead++, G_CULL_BACK);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <mk64.h>
|
||||
#include <defines.h>
|
||||
#include "camera.h"
|
||||
#include "math_util_2.h"
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
#include <ultra64.h>
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#define SEQUENCE_PLAYERS 4
|
||||
#define SEQUENCE_CHANNELS 48
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
#define BUFFERS_H
|
||||
|
||||
#include <PR/ultratypes.h>
|
||||
#include "config.h"
|
||||
#include <mk64.h>
|
||||
#include "common_structs.h"
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include "config.h"
|
||||
#include <mk64.h>
|
||||
#include "buffers.h"
|
||||
|
||||
ALIGNED8 union_D_802BFB80 D_802BFB80;
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
#ifndef RANDOM_H
|
||||
#define RANDOM_H
|
||||
|
||||
#include <ultra64.h>
|
||||
|
||||
extern u16 gRandomSeed16;
|
||||
extern u8 randomSeedPadding[];
|
||||
|
||||
#endif // RANDOM_H
|
||||
@@ -3,6 +3,7 @@
|
||||
#include <common_structs.h>
|
||||
#include <defines.h>
|
||||
#include <libc/math.h>
|
||||
#include <mk64.h>
|
||||
|
||||
#include "camera.h"
|
||||
#include "code_800029B0.h"
|
||||
|
||||
+1
-1
@@ -1,8 +1,8 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <mk64.h>
|
||||
|
||||
#include "code_800029B0.h"
|
||||
#include "types.h"
|
||||
#include "memory.h"
|
||||
#include "waypoints.h"
|
||||
#include "actors.h"
|
||||
|
||||
+22
-1
@@ -3,8 +3,29 @@
|
||||
|
||||
#include <macros.h>
|
||||
#include <ultra64.h>
|
||||
#include <types.h>
|
||||
#include <actor_types.h>
|
||||
#include "camera.h"
|
||||
|
||||
struct UnkStruct_800DC5EC {
|
||||
/* 0x00 */ struct Controller *controllers; // gControllers ptr 800F6910
|
||||
/* 0x04 */ Camera *camera; // Player camera ptr
|
||||
/* 0x08 */ Player *player; // Player ptr 800F6990
|
||||
/* 0x0C */ s32 *unkC; // unk struct?
|
||||
/* 0x10 */ Vp viewport;
|
||||
/* 0x20 */ s32 pad[2];
|
||||
/* 0x28 */ s16 cameraHeight;
|
||||
/* 0x2A */ s16 unk;
|
||||
/* 0x2C */ s16 screenWidth;
|
||||
/* 0x2E */ s16 screenHeight;
|
||||
/* 0x30 */ s16 screenStartX;
|
||||
/* 0x32 */ s16 screenStartY;
|
||||
/* 0x34 */ s16 unk3C;
|
||||
/* 0x36 */ s16 playerDirection;
|
||||
/* 0x38 */ s16 pathCounter;
|
||||
/* 0x3A */ s16 unk42;
|
||||
/* 0x3C */ s32 pad2;
|
||||
}; // size = 0x40
|
||||
|
||||
|
||||
/* Function Prototypes */
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <types.h>
|
||||
#include <mk64.h>
|
||||
#include "math_util.h"
|
||||
#include "code_80004740.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <mk64.h>
|
||||
#include "math_util.h"
|
||||
#include "common_structs.h"
|
||||
#include "player_controller.h"
|
||||
|
||||
+2
-1
@@ -6,13 +6,14 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <PR/gbi.h>
|
||||
#include <mk64.h>
|
||||
|
||||
#include "camera.h"
|
||||
#include "code_80057C60.h"
|
||||
#include "main.h"
|
||||
#include "actors.h"
|
||||
#include "code_800029B0.h"
|
||||
#include "racing/memory.h"
|
||||
#include <config.h>
|
||||
#include <defines.h>
|
||||
#include "math_util.h"
|
||||
#include "math_util_2.h"
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <macros.h>
|
||||
#include <memory.h>
|
||||
#include <defines.h>
|
||||
#include <mk64.h>
|
||||
|
||||
#include "code_800029B0.h"
|
||||
#include "code_80005FD0.h"
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <common_structs.h>
|
||||
#include <types.h>
|
||||
#include <mk64.h>
|
||||
|
||||
#include "code_80086E70.h"
|
||||
#include "camera.h"
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#ifndef CODE_80091440_H
|
||||
#define CODE_80091440_H
|
||||
|
||||
#include "ultra64.h"
|
||||
|
||||
void func_80091440(s8);
|
||||
void func_800914A0(void);
|
||||
void func_800914E0(void);
|
||||
|
||||
#endif // CODE_80091440_H
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <mk64.h>
|
||||
#include <defines.h>
|
||||
#include <segments.h>
|
||||
#include <PR/ultratypes.h>
|
||||
#include <config.h>
|
||||
#include <sounds.h>
|
||||
#include "code_800029B0.h"
|
||||
#include "code_80091750.h"
|
||||
@@ -7415,7 +7415,7 @@ void func_800A1FB0(struct_8018D9E0_entry *arg0) {
|
||||
s32 var_s1;
|
||||
char spA8[3];
|
||||
s32 var_s2;
|
||||
s32 temp_v0;
|
||||
UNUSED s32 temp_v0;
|
||||
UNUSED s32 stackPadding9;
|
||||
char sp98[3];
|
||||
struct_8018EE10_entry *var_v1;
|
||||
@@ -7427,7 +7427,7 @@ void func_800A1FB0(struct_8018D9E0_entry *arg0) {
|
||||
case 0x17: /* switch 1 */
|
||||
case 0x18: /* switch 1 */
|
||||
for (stackPadding0 = 0; stackPadding0 < 4; stackPadding0++) {
|
||||
func_80092224(D_8018EDEC - 0x15, stackPadding0, 3);
|
||||
set_text_color_rainbow_if_selected(D_8018EDEC - 0x15, stackPadding0, 3);
|
||||
func_80093324(0x00000032, 0x55 + (0x23 * stackPadding0), D_800E7868[stackPadding0], 0, 0.9f, 1.0f);
|
||||
if (stackPadding0 == (D_8018EDEC - 0x15)) {
|
||||
spE0.column = 0x0032;
|
||||
@@ -7444,7 +7444,7 @@ void func_800A1FB0(struct_8018D9E0_entry *arg0) {
|
||||
func_80093324(0x00000028, 0x55 + (0x14 * stackPadding0), D_800E7878[stackPadding0], 0, 1.0f, 1.0f);
|
||||
}
|
||||
for (stackPadding0 = 0; stackPadding0 < 2; stackPadding0++) {
|
||||
func_80092224(D_8018EDEC - 0x1E, stackPadding0, 1);
|
||||
set_text_color_rainbow_if_selected(D_8018EDEC - 0x1E, stackPadding0, 1);
|
||||
func_80093324(0x00000084, 0x96 + (0x19 * stackPadding0), D_800E7840[stackPadding0], 0, 1.0f, 1.0f);
|
||||
if (stackPadding0 == (D_8018EDEC - 0x1E)) {
|
||||
spE0.column = 0x0084;
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#define CODE_800AF9B0_H
|
||||
|
||||
#include "common_structs.h"
|
||||
#include <types.h>
|
||||
|
||||
/* Function Prototypes */
|
||||
void func_800AF9B0(void);
|
||||
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <types.h>
|
||||
#include <config.h>
|
||||
#include <mk64.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
#ifndef CRASH_SCREEN_H
|
||||
#define CRASH_SCREEN_H
|
||||
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
|
||||
extern u16 *pFramebuffer;
|
||||
|
||||
void crash_screen_set_framebuffer(u16*);
|
||||
|
||||
#endif // CRASH_SCREEN_H
|
||||
@@ -1,5 +1,4 @@
|
||||
#include <macros.h>
|
||||
#include <types.h>
|
||||
#include <PR/ultratypes.h>
|
||||
#include <PR/gbi.h>
|
||||
#include "data_segment2.h"
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
|
||||
#include <actor_types.h>
|
||||
#include <common_structs.h>
|
||||
#include <config.h>
|
||||
#include <course.h>
|
||||
#include <course_offsets.h>
|
||||
#include <debug.h>
|
||||
@@ -64,7 +63,6 @@
|
||||
#include <segments.h>
|
||||
#include <sounds.h>
|
||||
#include "buffers/trig_tables.h"
|
||||
#include <types.h>
|
||||
#include <ultra64.h>
|
||||
#include <vehicles.h>
|
||||
#include <waypoints.h>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <types.h>
|
||||
#include <config.h>
|
||||
#include <mk64.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include "../crash_screen.h"
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#ifndef CRASH_SCREEN_ENHANCEMENT_H
|
||||
#define CRASH_SCREEN_ENHANCEMENT_H
|
||||
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
|
||||
@@ -35,3 +38,5 @@ void crash_screen_draw(OSThread* thread);
|
||||
// }
|
||||
// gGlobalTimer++;
|
||||
// }
|
||||
|
||||
#endif // CRASH_SCREEN_ENHANCEMENT_H
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <types.h>
|
||||
#include <decode.h>
|
||||
#include <mk64.h>
|
||||
#include <defines.h>
|
||||
#include <sounds.h>
|
||||
#include "code_800029B0.h"
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <types.h>
|
||||
#include <segments.h>
|
||||
#include <common_structs.h>
|
||||
#include "math_util.h"
|
||||
|
||||
@@ -3,18 +3,17 @@
|
||||
#include <defines.h>
|
||||
#include <debug.h>
|
||||
#include <PR/gu.h>
|
||||
#include <mk64.h>
|
||||
|
||||
#include <main.h>
|
||||
#include <segments.h>
|
||||
#include <code_800029B0.h>
|
||||
#include <types.h>
|
||||
#include "camera.h"
|
||||
#include "memory.h"
|
||||
#include "math_util.h"
|
||||
#include "code_80280000.h"
|
||||
#include "code_80281780.h"
|
||||
#include "skybox_and_splitscreen.h"
|
||||
#include <config.h>
|
||||
#include "code_80091750.h"
|
||||
#include "code_8006E9C0.h"
|
||||
#include "code_800029B0.h"
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <defines.h>
|
||||
#include <config.h>
|
||||
#include <segments.h>
|
||||
#include <mk64.h>
|
||||
|
||||
#include "code_80281780.h"
|
||||
#include "types.h"
|
||||
#include "memory.h"
|
||||
#include "camera.h"
|
||||
#include "camera_junk.h"
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include <types.h>
|
||||
#include <ultra64.h>
|
||||
#include <PR/gbi.h>
|
||||
|
||||
#include "courses/royal_raceway/course_displaylists.inc.h"
|
||||
|
||||
// Init RDP - RSP (Ceremony)
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#include <macros.h>
|
||||
#include <PR/gu.h>
|
||||
#include <mk64.h>
|
||||
#include <types.h>
|
||||
#include <debug.h>
|
||||
#include <common_structs.h>
|
||||
#include "main.h"
|
||||
|
||||
+1
-2
@@ -1,9 +1,8 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include "types.h"
|
||||
#include "PR/gu.h"
|
||||
#include "main.h"
|
||||
#include "config.h"
|
||||
#include <mk64.h>
|
||||
|
||||
extern s16 D_800E43A8;
|
||||
extern Mtx D_0D008E98;
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@
|
||||
#include <PR/ucode.h>
|
||||
#include <macros.h>
|
||||
#include <decode.h>
|
||||
#include <types.h>
|
||||
#include <config.h>
|
||||
#include <mk64.h>
|
||||
|
||||
#include "profiler.h"
|
||||
#include "main.h"
|
||||
#include "racing/memory.h"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#ifndef MAIN_H
|
||||
#define MAIN_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
// Message IDs
|
||||
#define MESG_SP_COMPLETE 100
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "render_player.h"
|
||||
#include "code_80057C60.h"
|
||||
#include "defines.h"
|
||||
#include "camera.h"
|
||||
|
||||
#pragma intrinsic (sqrtf)
|
||||
|
||||
|
||||
+1
-1
@@ -1,8 +1,8 @@
|
||||
#ifndef MATH_UTIL_2_H
|
||||
#define MATH_UTIL_2_H
|
||||
|
||||
#include "types.h"
|
||||
#include "common_structs.h"
|
||||
#include "camera.h"
|
||||
|
||||
/* Function Prototypes */
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <macros.h>
|
||||
#include <defines.h>
|
||||
#include <common_structs.h>
|
||||
#include <mk64.h>
|
||||
|
||||
#include "menus.h"
|
||||
#include "main.h"
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
#include "PR/os.h"
|
||||
#include "common_structs.h"
|
||||
#include <types.h>
|
||||
#include <defines.h>
|
||||
|
||||
// D_8018EDEC is position on options screen?
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#ifndef _ULTRA64_CONTROLLER_INTERNAL_H_
|
||||
#define _ULTRA64_CONTROLLER_INTERNAL_H_
|
||||
|
||||
#include <types.h>
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
||||
+1
-2
@@ -1,8 +1,7 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include "types.h"
|
||||
#include "profiler.h"
|
||||
#include "config.h"
|
||||
#include <mk64.h>
|
||||
#include "main.h"
|
||||
|
||||
struct ProfilerFrameData gProfilerFrameData[2];
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#ifndef PROFILER_H
|
||||
#define PROFILER_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
extern u64 osClockRate;
|
||||
|
||||
|
||||
+1
-1
@@ -1,12 +1,12 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <PR/os.h>
|
||||
#include <mk64.h>
|
||||
#include <sounds.h>
|
||||
#include <common_structs.h>
|
||||
#include <actor_types.h>
|
||||
#include <defines.h>
|
||||
#include <PR/gbi.h>
|
||||
#include <types.h>
|
||||
|
||||
#include "code_800029B0.h"
|
||||
#include "main.h"
|
||||
|
||||
+2
-1
@@ -1,8 +1,9 @@
|
||||
#ifndef ACTORS_H
|
||||
#define ACTORS_H
|
||||
|
||||
#include "types.h"
|
||||
#include "actor_types.h"
|
||||
#include "code_800029B0.h"
|
||||
#include "camera.h"
|
||||
|
||||
#define END_OF_SPAWN_DATA -0x8000
|
||||
|
||||
|
||||
+10
-6
@@ -421,8 +421,10 @@ void func_802B5D30(s16 arg0, s16 arg1, s32 arg2) {
|
||||
func_802B5D64(0x9000000, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
void func_802B5D64(uintptr_t arg0, s16 arg1, s16 arg2, s32 arg3) {
|
||||
UNUSED s32 pad[3];
|
||||
void func_802B5D64(uintptr_t addr, s16 arg1, s16 arg2, s32 arg3) {
|
||||
u32 segment = SEGMENT_NUMBER2(addr);
|
||||
u32 offset = SEGMENT_OFFSET(addr);
|
||||
UNUSED s32 pad;
|
||||
f32 sp48;
|
||||
f32 sp44;
|
||||
f32 sp40;
|
||||
@@ -432,7 +434,7 @@ void func_802B5D64(uintptr_t arg0, s16 arg1, s16 arg2, s32 arg3) {
|
||||
s8 sp2C[3];
|
||||
Lights1 *var_s0;
|
||||
|
||||
var_s0 = (Lights1 *) VIRTUAL_TO_PHYSICAL2(gSegmentTable[arg0 >> 0x18] + (arg0 & 0xFFFFFF));
|
||||
var_s0 = (Lights1 *) VIRTUAL_TO_PHYSICAL2(gSegmentTable[segment] + offset);
|
||||
sp48 = sins(arg2);
|
||||
sp44 = coss(arg2);
|
||||
sp40 = sins(arg1);
|
||||
@@ -1151,15 +1153,17 @@ f32 is_within_render_distance(Vec3f cameraPos, Vec3f objectPos, u16 orientationY
|
||||
|
||||
// No idea if arg1 is actually a Mat4 or not, but since this function is unused
|
||||
// its impossible to know with certainty either way, very close of func_802B5D64
|
||||
UNUSED void func_802B8414(uintptr_t arg0, Mat4 arg1, s16 arg2, s16 arg3, s32 arg4) {
|
||||
UNUSED s32 pad[3];
|
||||
UNUSED void func_802B8414(uintptr_t addr, Mat4 arg1, s16 arg2, s16 arg3, s32 arg4) {
|
||||
u32 segment = SEGMENT_NUMBER2(addr);
|
||||
u32 offset = SEGMENT_OFFSET(addr);
|
||||
UNUSED s32 pad;
|
||||
Vec3f sp40;
|
||||
s8 sp3C[3];
|
||||
s32 var_v0;
|
||||
UNUSED s32 pad2[3];
|
||||
Lights1 *var_s0;
|
||||
|
||||
var_s0 = (Lights1 *) VIRTUAL_TO_PHYSICAL2(gSegmentTable[arg0 >> 0x18] + (arg0 & 0xFFFFFF));
|
||||
var_s0 = (Lights1 *) VIRTUAL_TO_PHYSICAL2(gSegmentTable[segment] + offset);
|
||||
sins(arg3);
|
||||
coss(arg3);
|
||||
sins(arg2);
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
#include <PR/ultratypes.h>
|
||||
|
||||
#include "types.h"
|
||||
|
||||
//#define sins(x) gSineTable[(u16) (x) >> 4]
|
||||
//#define coss(x) gCosineTable[(u16) (x) >> 4]
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include <ultra64.h>
|
||||
#include <PR/ultratypes.h>
|
||||
#include <macros.h>
|
||||
#include <types.h>
|
||||
#include <common_structs.h>
|
||||
#include <segments.h>
|
||||
#include <decode.h>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#ifndef MEMORY_H
|
||||
#define MEMORY_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
struct MainPoolBlock {
|
||||
struct MainPoolBlock *prev;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <types.h>
|
||||
#include <mk64.h>
|
||||
#include <common_structs.h>
|
||||
#include <config.h>
|
||||
#include <defines.h>
|
||||
#include <sounds.h>
|
||||
#include "camera.h"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <mk64.h>
|
||||
#include <common_structs.h>
|
||||
#include <defines.h>
|
||||
#include <types.h>
|
||||
#include <course.h>
|
||||
|
||||
#include "render_courses.h"
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef RENDER_COURSES_H
|
||||
#define RENDER_COURSES_H
|
||||
|
||||
#include "code_800029B0.h"
|
||||
|
||||
void func_8029122C(struct UnkStruct_800DC5EC*, s32);
|
||||
s32 func_80290C20(Camera*);
|
||||
void parse_course_displaylists(uintptr_t);
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <PR/gbi.h>
|
||||
#include <types.h>
|
||||
#include <config.h>
|
||||
#include <mk64.h>
|
||||
|
||||
#include "skybox_and_splitscreen.h"
|
||||
#include "code_800029B0.h"
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define SKYBOX_AND_SPLITSCREEN_H
|
||||
|
||||
#include <PR/gbi.h>
|
||||
#include "code_800029B0.h"
|
||||
|
||||
#define G_CLEAR_ALL_MODES 0xFFFFFFFF
|
||||
|
||||
|
||||
@@ -4,12 +4,13 @@
|
||||
**/
|
||||
|
||||
#include <ultra64.h>
|
||||
#include <mk64.h>
|
||||
#include <PR/gbi.h>
|
||||
#include <macros.h>
|
||||
#include <defines.h>
|
||||
#include <common_structs.h>
|
||||
#include <actor_types.h>
|
||||
#include <config.h>
|
||||
#include "camera.h"
|
||||
#include "memory.h"
|
||||
#include "math_util.h"
|
||||
#include "math_util_2.h"
|
||||
|
||||
+2
-1
@@ -1,9 +1,10 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <mk64.h>
|
||||
#include <common_structs.h>
|
||||
#include <defines.h>
|
||||
#include <types.h>
|
||||
#include "code_800029B0.h"
|
||||
#include "camera.h"
|
||||
#include "math_util.h"
|
||||
#include "math_util_2.h"
|
||||
#include "main.h"
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
#ifndef CODE_8001F980_H
|
||||
#define CODE_8001F980_H
|
||||
|
||||
#include "types.h"
|
||||
#include "common_structs.h"
|
||||
#include <common_structs.h>
|
||||
#include "buffers.h"
|
||||
#include "camera.h"
|
||||
|
||||
#define SOME_TEXTURE_POINTER_MATH 0x800
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
#include "PR/os.h"
|
||||
#include "common_structs.h"
|
||||
#include <types.h>
|
||||
|
||||
/* define symbols */
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <defines.h>
|
||||
#include <mk64.h>
|
||||
|
||||
#include "spawn_players.h"
|
||||
#include "code_800029B0.h"
|
||||
|
||||
+3
-4
@@ -1,6 +1,6 @@
|
||||
#include <ultra64.h>
|
||||
#include <macros.h>
|
||||
#include <types.h>
|
||||
#include <mk64.h>
|
||||
#include <common_structs.h>
|
||||
#include <defines.h>
|
||||
#include <decode.h>
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "code_8006E9C0.h"
|
||||
#include "code_80091750.h"
|
||||
#include "code_80057C60.h"
|
||||
#include "kart_dma.h"
|
||||
|
||||
extern s32 mio0encode(s32 input, s32, s32);
|
||||
extern s32 func_80040174(void *, s32, s32);
|
||||
@@ -61,8 +62,6 @@ s32 D_80162E00;
|
||||
u32 *D_800DC710 = (u32 *) &D_802BFB80.arraySize8[0][2][3];
|
||||
u32 *D_800DC714 = (u32 *) &D_802BFB80.arraySize8[1][1][3];
|
||||
|
||||
extern u8 _kart_texturesSegmentRomStart;
|
||||
|
||||
extern s32 gLapCountByPlayerId[];
|
||||
|
||||
extern StaffGhost *d_mario_raceway_staff_ghost;
|
||||
@@ -72,7 +71,7 @@ extern StaffGhost *d_luigi_raceway_staff_ghost;
|
||||
void func_80004EF0(void) {
|
||||
D_80162DA4 = (u32 *) &D_802BFB80.arraySize8[0][2][3];
|
||||
osInvalDCache(&D_80162DA4[0], 0x4000);
|
||||
osPiStartDma(&gDmaIoMesg, 0, 0, (uintptr_t) ((D_80162DC4 & 0xFFFFFF) + &_kart_texturesSegmentRomStart), D_80162DA4, 0x4000, &gDmaMesgQueue);
|
||||
osPiStartDma(&gDmaIoMesg, 0, 0, (uintptr_t) &_kart_texturesSegmentRomStart[SEGMENT_OFFSET(D_80162DC4)], D_80162DA4, 0x4000, &gDmaMesgQueue);
|
||||
osRecvMesg(&gDmaMesgQueue, &gMainReceivedMesg, OS_MESG_BLOCK);
|
||||
D_80162D9C = (*D_80162DA4 & 0xFF0000);
|
||||
D_80162DA0 = 0;
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
#include "PR/os.h"
|
||||
#include "common_structs.h"
|
||||
#include <types.h>
|
||||
|
||||
void func_80005B18(void);
|
||||
void func_80004EF0(void);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <macros.h>
|
||||
#include <defines.h>
|
||||
#include <decode.h>
|
||||
#include <mk64.h>
|
||||
|
||||
#include "update_objects.h"
|
||||
#include "main.h"
|
||||
|
||||
Reference in New Issue
Block a user