summaryrefslogtreecommitdiff
path: root/src/code
diff options
context:
space:
mode:
authorfig02 <fig02srl@gmail.com>2025-04-27 12:48:11 -0400
committerGitHub <noreply@github.com>2025-04-27 12:48:11 -0400
commitf7a270655bd974242a286856bd56b490a998ac44 (patch)
tree0b3faecb361c695b369fd099028c7a96460c7dc5 /src/code
parentea22c2ac38bb8cbb459210ce868398c5e7bdcda4 (diff)
Delete macros.h; Delete global.h (#2516)
Diffstat (limited to 'src/code')
-rw-r--r--src/code/PreRender.c3
-rw-r--r--src/code/audio_stop_all_sfx.c2
-rw-r--r--src/code/audio_thread_manager.c2
-rw-r--r--src/code/debug_malloc.c2
-rw-r--r--src/code/fault_gc.c2
-rw-r--r--src/code/fault_gc_drawer.c3
-rw-r--r--src/code/fault_n64.c2
-rw-r--r--src/code/game.c3
-rw-r--r--src/code/gamealloc.c2
-rw-r--r--src/code/graph.c3
-rw-r--r--src/code/irqmgr.c2
-rw-r--r--src/code/main.c2
-rw-r--r--src/code/mempak.c2
-rw-r--r--src/code/object_table.c2
-rw-r--r--src/code/padmgr.c2
-rw-r--r--src/code/sched.c3
-rw-r--r--src/code/shrink_window.c2
-rw-r--r--src/code/sys_cfb.c2
-rw-r--r--src/code/sys_freeze.c2
-rw-r--r--src/code/sys_math3d.c2
-rw-r--r--src/code/sys_math_atan.c2
-rw-r--r--src/code/sys_matrix.c1
-rw-r--r--src/code/title_setup.c2
-rw-r--r--src/code/ucode_disas.c2
-rw-r--r--src/code/z_DLF.c2
-rw-r--r--src/code/z_actor.c2
-rw-r--r--src/code/z_actor_dlftbls.c2
-rw-r--r--src/code/z_camera_data.inc.c2
-rw-r--r--src/code/z_collision_btltbls.c2
-rw-r--r--src/code/z_collision_check.c1
-rw-r--r--src/code/z_cutscene_spline.c1
-rw-r--r--src/code/z_debug.c2
-rw-r--r--src/code/z_demo.c2
-rw-r--r--src/code/z_eff_blure.c3
-rw-r--r--src/code/z_eff_shield_particle.c3
-rw-r--r--src/code/z_eff_spark.c3
-rw-r--r--src/code/z_fbdemo.c2
-rw-r--r--src/code/z_fbdemo_circle.c2
-rw-r--r--src/code/z_fbdemo_fade.c2
-rw-r--r--src/code/z_fbdemo_triforce.c1
-rw-r--r--src/code/z_fcurve_data.c1
-rw-r--r--src/code/z_frame_advance.c1
-rw-r--r--src/code/z_game_over.c3
-rw-r--r--src/code/z_jpeg.c3
-rw-r--r--src/code/z_kaleido_manager.c2
-rw-r--r--src/code/z_kaleido_scope_call.c2
-rw-r--r--src/code/z_kanfont.c2
-rw-r--r--src/code/z_lib.c1
-rw-r--r--src/code/z_malloc.c2
-rw-r--r--src/code/z_map_exp.c2
-rw-r--r--src/code/z_map_mark.c2
-rw-r--r--src/code/z_message.c2
-rw-r--r--src/code/z_moji.c3
-rw-r--r--src/code/z_parameter.c2
-rw-r--r--src/code/z_play.c2
-rw-r--r--src/code/z_prenmi.c3
-rw-r--r--src/code/z_prenmi_buff.c1
-rw-r--r--src/code/z_quake.c1
-rw-r--r--src/code/z_sfx_source.c2
-rw-r--r--src/code/z_skelanime.c2
-rw-r--r--src/code/z_skin_matrix.c2
-rw-r--r--src/code/z_sram.c2
-rw-r--r--src/code/z_ss_sram.c3
-rw-r--r--src/code/z_vimode.c3
-rw-r--r--src/code/z_viscvg.c2
-rw-r--r--src/code/z_vismono.c2
-rw-r--r--src/code/z_viszbuf.c2
-rw-r--r--src/code/z_vr_box.c2
68 files changed, 0 insertions, 141 deletions
diff --git a/src/code/PreRender.c b/src/code/PreRender.c
index c6cf72c59..ddf6b473e 100644
--- a/src/code/PreRender.c
+++ b/src/code/PreRender.c
@@ -13,9 +13,6 @@
#include "printf.h"
#include "regs.h"
-#include "macros.h"
-#include "global.h"
-
void PreRender_SetValuesSave(PreRender* this, u32 width, u32 height, void* fbuf, void* zbuf, void* cvg) {
this->widthSave = width;
this->heightSave = height;
diff --git a/src/code/audio_stop_all_sfx.c b/src/code/audio_stop_all_sfx.c
index 2702f8a57..b1b526e8e 100644
--- a/src/code/audio_stop_all_sfx.c
+++ b/src/code/audio_stop_all_sfx.c
@@ -2,8 +2,6 @@
#include "sfx.h"
#include "ultra64.h"
-#include "macros.h"
-
u8 sSfxBankIds[] = {
BANK_PLAYER, BANK_ITEM, BANK_ENV, BANK_ENEMY, BANK_SYSTEM, BANK_OCARINA, BANK_VOICE,
};
diff --git a/src/code/audio_thread_manager.c b/src/code/audio_thread_manager.c
index 5e0cbfc28..57f530a4b 100644
--- a/src/code/audio_thread_manager.c
+++ b/src/code/audio_thread_manager.c
@@ -13,8 +13,6 @@
#include "translation.h"
#include "z64dma.h"
-#include "macros.h"
-
void AudioMgr_NotifyTaskDone(AudioMgr* audioMgr) {
AudioTask* task = audioMgr->rspTask;
diff --git a/src/code/debug_malloc.c b/src/code/debug_malloc.c
index 6204e674f..ad7c786f3 100644
--- a/src/code/debug_malloc.c
+++ b/src/code/debug_malloc.c
@@ -3,8 +3,6 @@
#include "printf.h"
#include "translation.h"
-#include "macros.h"
-
#define LOG_SEVERITY_NOLOG 0
#define LOG_SEVERITY_ERROR 2
#define LOG_SEVERITY_VERBOSE 3
diff --git a/src/code/fault_gc.c b/src/code/fault_gc.c
index 75104362d..b2bb9d13d 100644
--- a/src/code/fault_gc.c
+++ b/src/code/fault_gc.c
@@ -58,8 +58,6 @@
#include "translation.h"
#include "z64thread.h"
-#include "global.h"
-
void Fault_Init(void);
void Fault_SetOsSyncPrintfEnabled(u32 enabled);
void Fault_DrawRecImpl(s32 xStart, s32 yStart, s32 xEnd, s32 yEnd, u16 color);
diff --git a/src/code/fault_gc_drawer.c b/src/code/fault_gc_drawer.c
index 044b9561b..9c2470b9b 100644
--- a/src/code/fault_gc_drawer.c
+++ b/src/code/fault_gc_drawer.c
@@ -7,12 +7,9 @@
#include "array_count.h"
#include "fault.h"
-
#include "gfx.h"
#include "terminal.h"
-#include "global.h"
-
#pragma increment_block_number "gc-eu:0 gc-eu-mq:0 gc-jp:128 gc-jp-ce:128 gc-jp-mq:128 gc-us:128 gc-us-mq:128"
typedef struct FaultDrawer {
diff --git a/src/code/fault_n64.c b/src/code/fault_n64.c
index 5e071d87b..75fc704b9 100644
--- a/src/code/fault_n64.c
+++ b/src/code/fault_n64.c
@@ -13,8 +13,6 @@
#include "z64thread.h"
#include "translation.h"
-#include "global.h"
-
#pragma increment_block_number "ntsc-1.0:144 ntsc-1.1:144 ntsc-1.2:144 pal-1.0:144 pal-1.1:144"
typedef struct FaultMgr {
diff --git a/src/code/game.c b/src/code/game.c
index 536013aa9..7f63d4d64 100644
--- a/src/code/game.c
+++ b/src/code/game.c
@@ -32,9 +32,6 @@
#include "z64play.h"
#include "z64vis.h"
-#include "macros.h"
-#include "global.h"
-
#pragma increment_block_number "gc-eu:128 gc-eu-mq:128 gc-jp:128 gc-jp-ce:128 gc-jp-mq:128 gc-us:128 gc-us-mq:128"
SpeedMeter D_801664D0;
diff --git a/src/code/gamealloc.c b/src/code/gamealloc.c
index 33ad848a1..506ef7721 100644
--- a/src/code/gamealloc.c
+++ b/src/code/gamealloc.c
@@ -3,8 +3,6 @@
#include "gamealloc.h"
#include "printf.h"
-#include "macros.h"
-
void GameAlloc_Log(GameAlloc* this) {
GameAllocEntry* iter;
diff --git a/src/code/graph.c b/src/code/graph.c
index 8fbb1b02f..86543cc50 100644
--- a/src/code/graph.c
+++ b/src/code/graph.c
@@ -30,9 +30,6 @@
#include "z64save.h"
#include "z64play.h"
-#include "macros.h"
-#include "global.h"
-
#define GFXPOOL_HEAD_MAGIC 0x1234
#define GFXPOOL_TAIL_MAGIC 0x5678
diff --git a/src/code/irqmgr.c b/src/code/irqmgr.c
index fe6b3a12f..ced883f7a 100644
--- a/src/code/irqmgr.c
+++ b/src/code/irqmgr.c
@@ -42,8 +42,6 @@
#include "versions.h"
#include "z64thread.h"
-#include "macros.h"
-
vu32 gIrqMgrResetStatus = IRQ_RESET_STATUS_IDLE;
volatile OSTime sIrqMgrResetTime = 0;
volatile OSTime gIrqMgrRetraceTime = 0;
diff --git a/src/code/main.c b/src/code/main.c
index 584e098e6..cb936b217 100644
--- a/src/code/main.c
+++ b/src/code/main.c
@@ -43,8 +43,6 @@ extern struct IrqMgr gIrqMgr;
#include "z64debug.h"
#include "z64thread.h"
-#include "global.h"
-
#pragma increment_block_number "gc-eu:128 gc-eu-mq:128 gc-jp:128 gc-jp-ce:128 gc-jp-mq:128 gc-us:128 gc-us-mq:128" \
"ique-cn:0 ntsc-1.0:34 ntsc-1.1:34 ntsc-1.2:34 pal-1.0:32 pal-1.1:32"
diff --git a/src/code/mempak.c b/src/code/mempak.c
index 19c11b31d..850c478b9 100644
--- a/src/code/mempak.c
+++ b/src/code/mempak.c
@@ -11,8 +11,6 @@
#include "padmgr.h"
#include "printf.h"
-#include "macros.h"
-
#define MEMPAK_MAX_FILES 11
OSPfs sMempakPfsHandle;
diff --git a/src/code/object_table.c b/src/code/object_table.c
index 0de131824..9ed6a1f44 100644
--- a/src/code/object_table.c
+++ b/src/code/object_table.c
@@ -4,8 +4,6 @@
#include "ultra64.h"
#include "z64object.h"
-#include "macros.h"
-
s16 gLinkObjectIds[] = { OBJECT_LINK_BOY, OBJECT_LINK_CHILD };
u32 gObjectTableSize = ARRAY_COUNT(gObjectTable);
diff --git a/src/code/padmgr.c b/src/code/padmgr.c
index ddea9b254..01a952c87 100644
--- a/src/code/padmgr.c
+++ b/src/code/padmgr.c
@@ -38,8 +38,6 @@
#include "translation.h"
#include "line_numbers.h"
-#include "macros.h"
-
#define PADMGR_LOG(controllerNum, msg) \
if (DEBUG_FEATURES) { \
PRINTF_COLOR_YELLOW(); \
diff --git a/src/code/sched.c b/src/code/sched.c
index b009dff35..c573bf97f 100644
--- a/src/code/sched.c
+++ b/src/code/sched.c
@@ -54,9 +54,6 @@
#include "vi_mode.h"
#include "z64thread.h"
-#include "macros.h"
-#include "global.h"
-
#define RSP_DONE_MSG 667
#define RDP_DONE_MSG 668
#define NOTIFY_MSG 670 // original name: ENTRY_MSG
diff --git a/src/code/shrink_window.c b/src/code/shrink_window.c
index a485d8168..3c92ede0e 100644
--- a/src/code/shrink_window.c
+++ b/src/code/shrink_window.c
@@ -2,8 +2,6 @@
#include "printf.h"
#include "regs.h"
-#include "macros.h"
-
typedef enum LetterboxState {
/* 0 */ LETTERBOX_STATE_IDLE,
/* 1 */ LETTERBOX_STATE_GROWING,
diff --git a/src/code/sys_cfb.c b/src/code/sys_cfb.c
index 8877c92ce..38fc9c65d 100644
--- a/src/code/sys_cfb.c
+++ b/src/code/sys_cfb.c
@@ -7,8 +7,6 @@
#include "printf.h"
#include "translation.h"
-#include "global.h"
-
#pragma increment_block_number "gc-eu:128 gc-eu-mq:128 gc-jp:128 gc-jp-ce:128 gc-jp-mq:128 gc-us:128 gc-us-mq:128" \
"pal-1.1:128"
diff --git a/src/code/sys_freeze.c b/src/code/sys_freeze.c
index 427fca389..295715555 100644
--- a/src/code/sys_freeze.c
+++ b/src/code/sys_freeze.c
@@ -4,8 +4,6 @@
#include "sys_freeze.h"
#include "terminal.h"
-#include "macros.h"
-
NORETURN void func_800D31A0(void) {
PRINTF(VT_FGCOL(RED) "\n**** Freeze!! ****\n" VT_RST);
for (;;) {
diff --git a/src/code/sys_math3d.c b/src/code/sys_math3d.c
index 35f15bdaf..1ce651e9c 100644
--- a/src/code/sys_math3d.c
+++ b/src/code/sys_math3d.c
@@ -7,8 +7,6 @@
#include "z_lib.h"
#include "z64math.h"
-#include "macros.h"
-
#pragma increment_block_number "gc-eu:77 gc-eu-mq:77 gc-jp:77 gc-jp-ce:77 gc-jp-mq:77 gc-us:77 gc-us-mq:77 ique-cn:67" \
"ntsc-1.0:64 ntsc-1.1:64 ntsc-1.2:64 pal-1.0:64 pal-1.1:64"
diff --git a/src/code/sys_math_atan.c b/src/code/sys_math_atan.c
index e2b70a361..0c99eaced 100644
--- a/src/code/sys_math_atan.c
+++ b/src/code/sys_math_atan.c
@@ -2,8 +2,6 @@
#include "sys_math.h"
#include "z64math.h"
-#include "macros.h"
-
static u16 sAtan2Tbl[] = {
0x0000, 0x000A, 0x0014, 0x001F, 0x0029, 0x0033, 0x003D, 0x0047, 0x0051, 0x005C, 0x0066, 0x0070, 0x007A, 0x0084,
0x008F, 0x0099, 0x00A3, 0x00AD, 0x00B7, 0x00C2, 0x00CC, 0x00D6, 0x00E0, 0x00EA, 0x00F4, 0x00FF, 0x0109, 0x0113,
diff --git a/src/code/sys_matrix.c b/src/code/sys_matrix.c
index 3dc86d25d..2ca488260 100644
--- a/src/code/sys_matrix.c
+++ b/src/code/sys_matrix.c
@@ -3,7 +3,6 @@
#if DEBUG_FEATURES
#include "fault.h"
#endif
-#include "macros.h"
#include "printf.h"
#include "sys_matrix.h"
#include "ultra64.h"
diff --git a/src/code/title_setup.c b/src/code/title_setup.c
index 64e30ecaa..027202247 100644
--- a/src/code/title_setup.c
+++ b/src/code/title_setup.c
@@ -4,8 +4,6 @@
#include "translation.h"
#include "z64save.h"
-#include "global.h"
-
void Setup_InitImpl(SetupState* this) {
PRINTF(T("ゼルダ共通データ初期化\n", "Zelda common data initialization\n"));
SaveContext_Init();
diff --git a/src/code/ucode_disas.c b/src/code/ucode_disas.c
index 7626ed620..8d1ff6cd7 100644
--- a/src/code/ucode_disas.c
+++ b/src/code/ucode_disas.c
@@ -7,8 +7,6 @@
#include "ucode_disas.h"
#include "ultra64.h"
-#include "macros.h"
-
#if DEBUG_FEATURES
typedef struct F3dzexConst {
diff --git a/src/code/z_DLF.c b/src/code/z_DLF.c
index 2dbcb115b..ad2cdff11 100644
--- a/src/code/z_DLF.c
+++ b/src/code/z_DLF.c
@@ -6,8 +6,6 @@
#include "ultra64.h"
#include "z_game_dlftbls.h"
-#include "macros.h"
-
void Overlay_LoadGameState(GameStateOverlay* overlayEntry) {
if (overlayEntry->loadedRamAddr != NULL) {
PRINTF(T("既にリンクされています\n", "Already linked\n"));
diff --git a/src/code/z_actor.c b/src/code/z_actor.c
index 202b2e232..721087332 100644
--- a/src/code/z_actor.c
+++ b/src/code/z_actor.c
@@ -28,8 +28,6 @@
#include "z64save.h"
#include "z64skin_matrix.h"
-#include "global.h"
-
#include "overlays/actors/ovl_Arms_Hook/z_arms_hook.h"
#include "overlays/actors/ovl_En_Part/z_en_part.h"
diff --git a/src/code/z_actor_dlftbls.c b/src/code/z_actor_dlftbls.c
index f489e614c..1e3c6c96b 100644
--- a/src/code/z_actor_dlftbls.c
+++ b/src/code/z_actor_dlftbls.c
@@ -3,8 +3,6 @@
#include "segment_symbols.h"
#include "z_actor_dlftbls.h"
-#include "macros.h"
-
// Linker symbol declarations (used in the table below)
#define DEFINE_ACTOR(name, _1, _2, _3) DECLARE_OVERLAY_SEGMENT(name)
#define DEFINE_ACTOR_INTERNAL(_0, _1, _2, _3)
diff --git a/src/code/z_camera_data.inc.c b/src/code/z_camera_data.inc.c
index 18b071b1d..9a9795f45 100644
--- a/src/code/z_camera_data.inc.c
+++ b/src/code/z_camera_data.inc.c
@@ -1,8 +1,6 @@
#include "array_count.h"
#include "ultra64.h"
-#include "global.h"
-
typedef struct CameraModeValue {
s16 val;
s16 dataType;
diff --git a/src/code/z_collision_btltbls.c b/src/code/z_collision_btltbls.c
index a49a71d05..5c2a210bc 100644
--- a/src/code/z_collision_btltbls.c
+++ b/src/code/z_collision_btltbls.c
@@ -3,8 +3,6 @@
#include "translation.h"
#include "z64collision_check.h"
-#include "macros.h"
-
static DamageTable sDamageTablePresets[] = {
{ {
// 0
diff --git a/src/code/z_collision_check.c b/src/code/z_collision_check.c
index 2c77d9441..dcf07766e 100644
--- a/src/code/z_collision_check.c
+++ b/src/code/z_collision_check.c
@@ -1,5 +1,4 @@
#include "gfx.h"
-#include "macros.h"
#include "printf.h"
#include "regs.h"
#include "sfx.h"
diff --git a/src/code/z_cutscene_spline.c b/src/code/z_cutscene_spline.c
index d95b2ca7f..137f9f544 100644
--- a/src/code/z_cutscene_spline.c
+++ b/src/code/z_cutscene_spline.c
@@ -2,7 +2,6 @@
#include "z64math.h"
#include "z64camera.h"
#include "z64cutscene_spline.h"
-#include "macros.h"
// The code in this file is very similar to a spline system used in Super Mario 64 for cutscene camera movement
diff --git a/src/code/z_debug.c b/src/code/z_debug.c
index 65f8eb60a..d5804cd7e 100644
--- a/src/code/z_debug.c
+++ b/src/code/z_debug.c
@@ -11,8 +11,6 @@
#include "ultra64.h"
#include "z64debug.h"
-#include "macros.h"
-
typedef struct DebugCamTextBufferEntry {
/* 0x0 */ u8 x;
/* 0x1 */ u8 y;
diff --git a/src/code/z_demo.c b/src/code/z_demo.c
index f45fd1933..d5135b99d 100644
--- a/src/code/z_demo.c
+++ b/src/code/z_demo.c
@@ -30,8 +30,6 @@
#include "z64player.h"
#include "z64save.h"
-#include "global.h"
-
#include "assets/scenes/indoors/tokinoma/tokinoma_scene.h"
#include "assets/scenes/overworld/ganon_tou/ganon_tou_scene.h"
diff --git a/src/code/z_eff_blure.c b/src/code/z_eff_blure.c
index a956d3468..614cfa5b5 100644
--- a/src/code/z_eff_blure.c
+++ b/src/code/z_eff_blure.c
@@ -9,9 +9,6 @@
#include "z64effect.h"
#include "z64skin_matrix.h"
-#include "macros.h"
-#include "global.h"
-
#include "z64.h" // required for gameplay keep, the header doesnt include any external dependencies
#include "assets/objects/gameplay_keep/gameplay_keep.h"
diff --git a/src/code/z_eff_shield_particle.c b/src/code/z_eff_shield_particle.c
index bc71d8c4f..865bd8ec9 100644
--- a/src/code/z_eff_shield_particle.c
+++ b/src/code/z_eff_shield_particle.c
@@ -10,9 +10,6 @@
#include "z64play.h"
#include "z64skin_matrix.h"
-#include "macros.h"
-#include "global.h"
-
#include "assets/objects/gameplay_keep/gameplay_keep.h"
static Vtx sVertices[5] = {
diff --git a/src/code/z_eff_spark.c b/src/code/z_eff_spark.c
index dc3ebf9d1..57ce3d9ba 100644
--- a/src/code/z_eff_spark.c
+++ b/src/code/z_eff_spark.c
@@ -9,9 +9,6 @@
#include "z64play.h"
#include "z64skin_matrix.h"
-#include "macros.h"
-#include "global.h"
-
#include "assets/objects/gameplay_keep/gameplay_keep.h"
// original name: "spark"
diff --git a/src/code/z_fbdemo.c b/src/code/z_fbdemo.c
index 482fa99d6..2621f1c12 100644
--- a/src/code/z_fbdemo.c
+++ b/src/code/z_fbdemo.c
@@ -19,8 +19,6 @@
#include "z64math.h"
#include "z64transition_instances.h"
-#include "macros.h"
-
// color framebuffer
extern u16 D_0F000000[];
diff --git a/src/code/z_fbdemo_circle.c b/src/code/z_fbdemo_circle.c
index 699526ce7..499867d57 100644
--- a/src/code/z_fbdemo_circle.c
+++ b/src/code/z_fbdemo_circle.c
@@ -4,8 +4,6 @@
#include "gfx.h"
#include "sfx.h"
-#include "global.h"
-
typedef enum TransitionCircleDirection {
/* 0 */ TRANS_CIRCLE_DIR_IN,
/* 1 */ TRANS_CIRCLE_DIR_OUT
diff --git a/src/code/z_fbdemo_fade.c b/src/code/z_fbdemo_fade.c
index c789cfd6c..1be97d5f5 100644
--- a/src/code/z_fbdemo_fade.c
+++ b/src/code/z_fbdemo_fade.c
@@ -9,8 +9,6 @@
#include "z64save.h"
#include "z64transition_instances.h"
-#include "macros.h"
-
typedef enum TransitionFadeDirection {
/* 0 */ TRANS_FADE_DIR_IN,
/* 1 */ TRANS_FADE_DIR_OUT
diff --git a/src/code/z_fbdemo_triforce.c b/src/code/z_fbdemo_triforce.c
index c12029035..d844644a2 100644
--- a/src/code/z_fbdemo_triforce.c
+++ b/src/code/z_fbdemo_triforce.c
@@ -1,6 +1,5 @@
#include "transition_triforce.h"
-#include "global.h"
#include "printf.h"
#include "assets/code/fbdemo_triforce/z_fbdemo_triforce.c"
diff --git a/src/code/z_fcurve_data.c b/src/code/z_fcurve_data.c
index a1c03a927..a1950a568 100644
--- a/src/code/z_fcurve_data.c
+++ b/src/code/z_fcurve_data.c
@@ -2,7 +2,6 @@
* File: z_fcurve_data.c
* Description: Interpolation functions for use with Curve SkelAnime
*/
-#include "global.h"
#include "z64curve.h"
#define FCURVE_INTERP_CUBIC 0 // Interpolate using a Hermite cubic spline
diff --git a/src/code/z_frame_advance.c b/src/code/z_frame_advance.c
index 5c8f685f2..6ca410a75 100644
--- a/src/code/z_frame_advance.c
+++ b/src/code/z_frame_advance.c
@@ -4,7 +4,6 @@
#include "controller.h"
#include "libu64/pad.h"
-#include "macros.h"
void FrameAdvance_Init(FrameAdvanceContext* frameAdvCtx) {
frameAdvCtx->timer = 0;
diff --git a/src/code/z_game_over.c b/src/code/z_game_over.c
index e05bcff26..f73616116 100644
--- a/src/code/z_game_over.c
+++ b/src/code/z_game_over.c
@@ -8,9 +8,6 @@
#include "z64play.h"
#include "z64save.h"
-#include "macros.h"
-#include "global.h"
-
void GameOver_Init(PlayState* play) {
play->gameOverCtx.state = GAMEOVER_INACTIVE;
}
diff --git a/src/code/z_jpeg.c b/src/code/z_jpeg.c
index 86c896e62..4413e8ae6 100644
--- a/src/code/z_jpeg.c
+++ b/src/code/z_jpeg.c
@@ -9,9 +9,6 @@
#include "translation.h"
#include "ultra64.h"
-#include "global.h"
-#include "macros.h"
-
#define MARKER_ESCAPE 0x00
#define MARKER_SOI 0xD8
#define MARKER_SOF 0xC0
diff --git a/src/code/z_kaleido_manager.c b/src/code/z_kaleido_manager.c
index efecef646..d9bca732e 100644
--- a/src/code/z_kaleido_manager.c
+++ b/src/code/z_kaleido_manager.c
@@ -8,8 +8,6 @@
#include "translation.h"
#include "z64play.h"
-#include "macros.h"
-
#define KALEIDO_OVERLAY(name, nameString) \
{ NULL, ROM_FILE(ovl_##name), _ovl_##name##SegmentStart, _ovl_##name##SegmentEnd, 0, nameString, }
diff --git a/src/code/z_kaleido_scope_call.c b/src/code/z_kaleido_scope_call.c
index b50cc0f86..2707db826 100644
--- a/src/code/z_kaleido_scope_call.c
+++ b/src/code/z_kaleido_scope_call.c
@@ -10,8 +10,6 @@
#include "translation.h"
#include "z64play.h"
-#include "global.h"
-
void (*sKaleidoScopeUpdateFunc)(PlayState* play);
void (*sKaleidoScopeDrawFunc)(PlayState* play);
f32 gBossMarkScale;
diff --git a/src/code/z_kanfont.c b/src/code/z_kanfont.c
index 0996a1a6e..89f5bbd3b 100644
--- a/src/code/z_kanfont.c
+++ b/src/code/z_kanfont.c
@@ -8,8 +8,6 @@
#include "z64font.h"
#include "z64message.h"
-#include "macros.h"
-
/**
* Loads a texture from kanji for the requested `character` into the character texture buffer
* at `codePointIndex`. The value of `character` is the SHIFT-JIS encoding of the character.
diff --git a/src/code/z_lib.c b/src/code/z_lib.c
index 741c982e0..e4d56b8da 100644
--- a/src/code/z_lib.c
+++ b/src/code/z_lib.c
@@ -3,7 +3,6 @@
#include "ichain.h"
#include "printf.h"
#include "regs.h"
-#include "macros.h"
#include "sys_math.h"
#include "rand.h"
#include "sfx.h"
diff --git a/src/code/z_malloc.c b/src/code/z_malloc.c
index 6751bcbee..513a61b31 100644
--- a/src/code/z_malloc.c
+++ b/src/code/z_malloc.c
@@ -2,8 +2,6 @@
#include "printf.h"
#include "translation.h"
-#include "global.h"
-
#define LOG_SEVERITY_NOLOG 0
#define LOG_SEVERITY_ERROR 2
#define LOG_SEVERITY_VERBOSE 3
diff --git a/src/code/z_map_exp.c b/src/code/z_map_exp.c
index ee93a9a29..e46c70bd1 100644
--- a/src/code/z_map_exp.c
+++ b/src/code/z_map_exp.c
@@ -17,8 +17,6 @@
#include "z64player.h"
#include "z64save.h"
-#include "global.h"
-
#include "assets/objects/gameplay_keep/gameplay_keep.h"
#include "assets/textures/parameter_static/parameter_static.h"
diff --git a/src/code/z_map_mark.c b/src/code/z_map_mark.c
index 1bccd2921..402d942d6 100644
--- a/src/code/z_map_mark.c
+++ b/src/code/z_map_mark.c
@@ -16,8 +16,6 @@
#include "assets/textures/parameter_static/parameter_static.h"
-#include "global.h"
-
typedef struct MapMarkInfo {
/* 0x00 */ void* texture;
/* 0x04 */ u32 imageFormat;
diff --git a/src/code/z_message.c b/src/code/z_message.c
index 38153dff0..046d3ff88 100644
--- a/src/code/z_message.c
+++ b/src/code/z_message.c
@@ -24,8 +24,6 @@
#include "z64player.h"
#include "z64save.h"
-#include "global.h"
-
#include "assets/textures/parameter_static/parameter_static.h"
#pragma increment_block_number "gc-eu:0 gc-eu-mq:0 gc-jp:0 gc-jp-ce:0 gc-jp-mq:0 gc-us:0 gc-us-mq:0 ntsc-1.0:32" \
diff --git a/src/code/z_moji.c b/src/code/z_moji.c
index 2114996cb..e26ce68e7 100644
--- a/src/code/z_moji.c
+++ b/src/code/z_moji.c
@@ -3,10 +3,7 @@
*/
#include "gfx.h"
-
-#include "macros.h"
#include "printf.h"
-#include "global.h"
// how big to draw the characters on screen
#define DISP_CHAR_WIDTH 8
diff --git a/src/code/z_parameter.c b/src/code/z_parameter.c
index 078567510..1498db0fb 100644
--- a/src/code/z_parameter.c
+++ b/src/code/z_parameter.c
@@ -25,8 +25,6 @@
#include "z64player.h"
#include "z64save.h"
-#include "global.h"
-
#include "assets/textures/parameter_static/parameter_static.h"
#include "assets/textures/do_action_static/do_action_static.h"
#include "assets/textures/icon_item_static/icon_item_static.h"
diff --git a/src/code/z_play.c b/src/code/z_play.c
index 31dbc765c..d4d28422c 100644
--- a/src/code/z_play.c
+++ b/src/code/z_play.c
@@ -47,8 +47,6 @@
#include "z64save.h"
#include "z64vis.h"
-#include "global.h"
-
#pragma increment_block_number "gc-eu:0 gc-eu-mq:0 gc-jp:0 gc-jp-ce:0 gc-jp-mq:0 gc-us:0 gc-us-mq:0 ique-cn:224" \
"ntsc-1.0:240 ntsc-1.1:240 ntsc-1.2:240 pal-1.0:240 pal-1.1:240"
diff --git a/src/code/z_prenmi.c b/src/code/z_prenmi.c
index 6d50f4106..6bf73b057 100644
--- a/src/code/z_prenmi.c
+++ b/src/code/z_prenmi.c
@@ -7,9 +7,6 @@
#include "versions.h"
#include "vi_mode.h"
-#include "macros.h"
-#include "global.h"
-
void func_80092320(PreNMIState* this) {
this->state.running = false;
this->state.init = NULL;
diff --git a/src/code/z_prenmi_buff.c b/src/code/z_prenmi_buff.c
index 17ef0b78c..3c45d7e54 100644
--- a/src/code/z_prenmi_buff.c
+++ b/src/code/z_prenmi_buff.c
@@ -1,5 +1,4 @@
#include "prenmi_buff.h"
-#include "global.h"
#define COLD_RESET 0
#define NMI 1
diff --git a/src/code/z_quake.c b/src/code/z_quake.c
index cacb5a213..d3ba17810 100644
--- a/src/code/z_quake.c
+++ b/src/code/z_quake.c
@@ -1,6 +1,5 @@
#include "libc64/qrand.h"
#include "array_count.h"
-#include "macros.h"
#include "printf.h"
#include "quake.h"
#include "terminal.h"
diff --git a/src/code/z_sfx_source.c b/src/code/z_sfx_source.c
index 9dda34ce3..785afcde3 100644
--- a/src/code/z_sfx_source.c
+++ b/src/code/z_sfx_source.c
@@ -5,8 +5,6 @@
#include "z64play.h"
#include "z64skin_matrix.h"
-#include "global.h"
-
void SfxSource_InitAll(PlayState* play) {
SfxSource* sources = &play->sfxSources[0];
s32 i;
diff --git a/src/code/z_skelanime.c b/src/code/z_skelanime.c
index 9e79abcbf..4e4fd97e9 100644
--- a/src/code/z_skelanime.c
+++ b/src/code/z_skelanime.c
@@ -14,8 +14,6 @@
#include "z64animation_legacy.h"
#include "z64play.h"
-#include "macros.h"
-
#define ANIM_INTERP 1
s32 LinkAnimation_Loop(PlayState* play, SkelAnime* skelAnime);
diff --git a/src/code/z_skin_matrix.c b/src/code/z_skin_matrix.c
index 5e9edf45e..36d7a0279 100644
--- a/src/code/z_skin_matrix.c
+++ b/src/code/z_skin_matrix.c
@@ -6,8 +6,6 @@
#include "translation.h"
#include "z_lib.h"
-#include "macros.h"
-
// clang-format off
MtxF sMtxFClear = {
1.0f, 0.0f, 0.0f, 0.0f,
diff --git a/src/code/z_sram.c b/src/code/z_sram.c
index 456e7a822..2eef6db03 100644
--- a/src/code/z_sram.c
+++ b/src/code/z_sram.c
@@ -17,8 +17,6 @@
#include "z64scene.h"
#include "z64ss_sram.h"
-#include "global.h"
-
#define SLOT_SIZE (sizeof(SaveContext) + 0x28)
#define CHECKSUM_SIZE (sizeof(Save) / 2)
diff --git a/src/code/z_ss_sram.c b/src/code/z_ss_sram.c
index 809786245..94e97639a 100644
--- a/src/code/z_ss_sram.c
+++ b/src/code/z_ss_sram.c
@@ -2,9 +2,6 @@
#include "printf.h"
#include "z64ss_sram.h"
-#include "macros.h"
-#include "global.h"
-
typedef struct SsSramContext {
/* 0x00 */ OSPiHandle piHandle;
/* 0x74 */ OSIoMesg ioMesg;
diff --git a/src/code/z_vimode.c b/src/code/z_vimode.c
index 877a789c6..6eceeaa7e 100644
--- a/src/code/z_vimode.c
+++ b/src/code/z_vimode.c
@@ -9,9 +9,6 @@
#include "regs.h"
#include "versions.h"
-#include "global.h"
-#include "macros.h"
-
void ViMode_LogPrint(OSViMode* osViMode) {
LOG_ADDRESS("osvimodep", osViMode, "../z_vimode.c", 87);
LOG_HEX32("osvimodep->comRegs.ctrl", osViMode->comRegs.ctrl, "../z_vimode.c", 88);
diff --git a/src/code/z_viscvg.c b/src/code/z_viscvg.c
index 5fff1a460..51fc6f8e5 100644
--- a/src/code/z_viscvg.c
+++ b/src/code/z_viscvg.c
@@ -23,8 +23,6 @@
#include "gfx.h"
#include "z64vis.h"
-#include "macros.h"
-
/**
* Draws only coverage: does not retain any of the original pixel RGB, primColor is used as background color.
*/
diff --git a/src/code/z_vismono.c b/src/code/z_vismono.c
index e3cecda5c..517f2ada6 100644
--- a/src/code/z_vismono.c
+++ b/src/code/z_vismono.c
@@ -15,8 +15,6 @@
#include "gfxalloc.h"
#include "z64vis.h"
-#include "macros.h"
-
// Height of the fragments the color frame buffer (CFB) is split into.
// It is the maximum amount of lines such that all rgba16 SCREEN_WIDTH-long lines fit into
// the half of TMEM dedicated to color-indexed data.
diff --git a/src/code/z_viszbuf.c b/src/code/z_viszbuf.c
index 8f8265bfd..431d7f6d9 100644
--- a/src/code/z_viszbuf.c
+++ b/src/code/z_viszbuf.c
@@ -35,8 +35,6 @@
#include "gfx.h"
#include "z64vis.h"
-#include "macros.h"
-
// Height of the fragments the z-buffer is split into.
// It is the maximum amount of lines such that all rgba16 SCREEN_WIDTH-long lines fit into TMEM.
#define VISZBUF_ZBUFFRAG_HEIGHT (TMEM_SIZE / (SCREEN_WIDTH * G_IM_SIZ_16b_BYTES))
diff --git a/src/code/z_vr_box.c b/src/code/z_vr_box.c
index f0ef9b008..2fa2122ac 100644
--- a/src/code/z_vr_box.c
+++ b/src/code/z_vr_box.c
@@ -10,8 +10,6 @@
#include "z64play.h"
#include "z64save.h"
-#include "global.h"
-
typedef struct SkyboxFaceParams {
/* 0x000 */ s32 xStart;
/* 0x004 */ s32 yStart;