fix build issues

This commit is contained in:
Yanis002
2025-02-28 19:30:11 +01:00
parent 4d5c52ca0a
commit a42991d014
24 changed files with 51 additions and 9 deletions

View File

@@ -28,4 +28,6 @@ typedef struct Debug {
void Debug_DrawColorRectangle(Vec2s rectLeft, Vec2s rectRight, Color_RGBA8 rgba);
void Debug_ConfigureNewRectangle(Input* controller);
extern Debug gDebug;
#endif

View File

@@ -1,6 +1,10 @@
#ifndef PROFILER_H
#define PROFILER_H
#include "config.h"
#include "ultra64/ultratypes.h"
#include "ultra64/time.h"
#define PROFILER_EVENT_COUNT 384
// These can't be an enum because they're used by asm.

View File

@@ -111,12 +111,12 @@ void Graph_CloseDisps(Gfx** dispRefs, GraphicsContext* gfxCtx, const char* file,
#else
#define OPEN_DISPS(gfxCtx, file, line) \
#define OPEN_DISPS(gfxCtx, ...) \
{ \
GraphicsContext* __gfxCtx = gfxCtx; \
s32 __dispPad
#define CLOSE_DISPS(gfxCtx, file, line) \
#define CLOSE_DISPS(gfxCtx, ...) \
do {} while (0); \
} \
(void)0

View File

@@ -28,6 +28,7 @@
#define VIRTUAL_TO_PHYSICAL(addr) (uintptr_t)((u8*)(addr) - 0x80000000)
#define ABS(x) ((x) >= 0 ? (x) : -(x))
#define ABS_ALT(x) ((x) < 0 ? -(x) : (x))
#define DECR(x) ((x) == 0 ? 0 : --(x))
#define CLAMP(x, min, max) ((x) < (min) ? (min) : (x) > (max) ? (max) : (x))
#define CLAMP_MAX(x, max) ((x) > (max) ? (max) : (x))

View File

@@ -8,8 +8,6 @@
#if ENABLE_HACKER_DEBUG
#include "debug.h"
extern Debug gDebug;
#endif
struct MapData;

View File

@@ -6,11 +6,10 @@
#include "seqcmd.h"
#include "sequence.h"
#include "versions.h"
#include "macros.h"
#include "global.h"
#define ABS_ALT(x) ((x) < 0 ? -(x) : (x))
#if !PLATFORM_N64
#define AUDIO_PRINTF osSyncPrintf
#elif IDO_PRINTF_WORKAROUND

View File

@@ -12,6 +12,7 @@
#include "gfx.h"
#include "prerender.h"
#include "regs.h"
#include "gfxalloc.h"
#include "macros.h"
#include "global.h"

View File

@@ -3,6 +3,9 @@
#include "z64.h"
#include "helpers.h"
#include "config.h"
#include "gfx.h"
#include "segmented_address.h"
#include "macros.h"
#if ENABLE_ANIMATED_MATERIALS

View File

@@ -7,7 +7,6 @@
#include "audiomgr.h"
#include "regs.h"
#include "speed_meter.h"
#include "z64dma.h"
#include "macros.h"

View File

@@ -2,6 +2,8 @@
#include "string.h"
#include "z64olib.h"
#include "config.h"
#include "z64save.h"
#include "libc64/math64.h"
#if ENABLE_CUTSCENE_IMPROVEMENTS

View File

@@ -14,6 +14,8 @@
#include "letterbox.h"
#include "config.h"
#include "z64camera.h"
#include "z64save.h"
#include "z_lib.h"
#if ENABLE_CUTSCENE_IMPROVEMENTS

View File

@@ -14,7 +14,6 @@
#include "prenmi_state.h"
#include "regs.h"
#include "setup_state.h"
#include "speed_meter.h"
#include "sys_debug_controller.h"
#include "sys_ucode.h"
#include "terminal.h"

View File

@@ -2,6 +2,8 @@
#include "file_select_state.h"
#include "title_setup_state.h"
#include "map_select_state.h"
#include "z64save.h"
#include "z_lib.h"
void Helpers_LoadDefinedScene(GameState* gameState) {
if (gSaveContext.fileNum == 0xff) {

View File

@@ -30,6 +30,7 @@ extern struct IrqMgr gIrqMgr;
#endif
#include "z64debug.h"
#include "z64thread.h"
#include "rainbow.h"
#include "global.h"

View File

@@ -1,6 +1,9 @@
#include "z64.h"
#include "functions.h"
#include "variables.h"
#include "occlusionplanes.h"
#include "gfx.h"
#include "sys_math3d.h"
#if ENABLE_F3DEX3

View File

@@ -45,7 +45,6 @@
#include "main.h"
#include "regs.h"
#include "sched.h"
#include "speed_meter.h"
#include "versions.h"
#include "z64thread.h"

View File

@@ -38,6 +38,8 @@
#include "z64player.h"
#include "z64save.h"
#include "z64vis.h"
#include "occlusionplanes.h"
#include "libu64/gfxprint.h"
#if CAN_INCLUDE_EXAMPLE_SCENE
#include "assets/scenes/example/example_scene.h"

View File

@@ -2,6 +2,7 @@
#include "gfx_setupdl.h"
#include "sys_matrix.h"
#include "z64skybox.h"
#include "z64light.h"
Mtx* sSkyboxDrawMatrix;

View File

@@ -1,5 +1,9 @@
#include "global.h"
#include "debug.h"
#include "controller.h"
#include "z64save.h"
#include "occlusionplanes.h"
#include "libc64/sprintf.h"
#if ENABLE_HACKER_DEBUG

View File

@@ -1,6 +1,9 @@
#include "config.h"
#include "global.h"
#include "debug.h"
#include "controller.h"
#include "gfx.h"
#include "gfxalloc.h"
#if ENABLE_HACKER_DEBUG

Some files were not shown because too many files have changed in this diff Show More