1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-10 01:44:36 +00:00

Reduce dependencies on global.h (10) (#2490)

* reduce z64.h size

* fix z_cheap_proc.inc.c

* ,bss

* remove temp delcaration
This commit is contained in:
mzxrules 2025-02-26 17:18:30 -05:00 committed by GitHub
parent 2b30c61a26
commit cf1a39c26f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
116 changed files with 663 additions and 308 deletions

View file

@ -5,8 +5,15 @@
* buffer copies and coverage drawing. Also contains software implementations of the Video Interface anti-aliasing and
* divot filters.
*/
#include "global.h"
#include "libu64/debug.h"
#include "alloca.h"
#include "color.h"
#include "gfx.h"
#include "prerender.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;

View file

@ -8,7 +8,7 @@
*
* @see TwoHeadArena.c
*/
#include "global.h"
#include "thga.h"
void THGA_Init(TwoHeadGfxArena* thga, void* start, size_t size) {
THA_Init(&thga->tha, start, size);

View file

@ -5,7 +5,12 @@
* and sending the audio rsp tasks generated by the driver to the task scheduler.
*/
#include "global.h"
#include "audiomgr.h"
#include "regs.h"
#include "speed_meter.h"
#include "z64dma.h"
#include "macros.h"
void AudioMgr_NotifyTaskDone(AudioMgr* audioMgr) {
AudioTask* task = audioMgr->rspTask;

View file

@ -1,9 +1,11 @@
#include "fault.h"
#include "n64dd.h"
#include "regs.h"
#include "segmented_address.h"
#include "z64actor.h"
#include "z64cutscene.h"
#include "z64save.h"
#include "global.h"
n64ddStruct_800FEE70_pointers D_800FEE70 = {
func_801C7C1C,
NULL,

View file

@ -1,6 +1,7 @@
#include "libu64/gfxprint.h"
#include "attributes.h"
#include "controller.h"
#include "db_camera.h"
#include "debug_arena.h"
#include "letterbox.h"
#include "mempak.h"

View file

@ -40,8 +40,8 @@
* DPad-Up may be pressed to enable sending fault pages over osSyncPrintf as well as displaying them on-screen.
* DPad-Down disables sending fault pages over osSyncPrintf.
*/
#pragma increment_block_number "gc-eu:160 gc-eu-mq:160 gc-eu-mq-dbg:160 gc-jp:176 gc-jp-ce:176 gc-jp-mq:176 gc-us:176" \
"gc-us-mq:176 ique-cn:176"
#pragma increment_block_number "gc-eu:128 gc-eu-mq:128 gc-eu-mq-dbg:96 gc-jp:128 gc-jp-ce:128 gc-jp-mq:128 gc-us:128" \
"gc-us-mq:128 ique-cn:128"
#include "global.h"
#include "libc64/sleep.h"

View file

@ -13,7 +13,7 @@
#include "macros.h"
#include "global.h"
#pragma increment_block_number "ntsc-1.0:192 ntsc-1.1:192 ntsc-1.2:192 pal-1.0:192 pal-1.1:192"
#pragma increment_block_number "ntsc-1.0:128 ntsc-1.1:128 ntsc-1.2:128 pal-1.0:128 pal-1.1:128"
typedef struct FaultMgr {
OSThread thread;

View file

@ -1,3 +1,4 @@
#include "libc64/malloc.h"
#include "libu64/debug.h"
#include "libu64/gfxprint.h"
#include "audiomgr.h"
@ -16,10 +17,13 @@
#include "regs.h"
#include "rumble.h"
#include "speed_meter.h"
#include "sys_debug_controller.h"
#include "terminal.h"
#include "versions.h"
#include "vi_mode.h"
#include "zelda_arena.h"
#include "z64debug.h"
#include "z64dma.h"
#include "z64game.h"
#include "z64vis.h"

View file

@ -4,6 +4,7 @@
#include "buffers.h"
#include "console_logo_state.h"
#include "controller.h"
#include "gfx.h"
#include "fault.h"
#include "file_select_state.h"
@ -13,12 +14,15 @@
#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"
#include "title_setup_state.h"
#include "ucode_disas.h"
#include "versions.h"
#include "z_game_dlftbls.h"
#include "z64audio.h"
#include "z64save.h"
#include "z64play.h"
@ -28,8 +32,8 @@
#define GFXPOOL_HEAD_MAGIC 0x1234
#define GFXPOOL_TAIL_MAGIC 0x5678
#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:224" \
"ntsc-1.1:224 ntsc-1.2:224 pal-1.0:224 pal-1.1:224"
#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:128" \
"ntsc-1.0:96 ntsc-1.1:96 ntsc-1.2:96 pal-1.0:96 pal-1.1:96"
/**
* The time at which the previous `Graph_Update` ended.

View file

@ -32,11 +32,15 @@
*
* @see sched.c
*/
#include "global.h"
#include "libu64/debug.h"
#include "irqmgr.h"
#include "stackcheck.h"
#include "terminal.h"
#include "versions.h"
#include "z64thread.h"
#include "macros.h"
vu32 gIrqMgrResetStatus = IRQ_RESET_STATUS_IDLE;
volatile OSTime sIrqMgrResetTime = 0;
volatile OSTime gIrqMgrRetraceTime = 0;

View file

@ -1,4 +1,5 @@
#include "global.h"
#include "libc64/malloc.h"
#include "listalloc.h"
ListAlloc* ListAlloc_Init(ListAlloc* this) {
this->prev = NULL;

View file

@ -12,11 +12,16 @@ extern struct Scheduler gScheduler;
extern struct PadMgr gPadMgr;
extern struct IrqMgr gIrqMgr;
#include "libc64/malloc.h"
#include "audiomgr.h"
#include "debug_arena.h"
#include "fault.h"
#include "padmgr.h"
#include "prenmi_buff.h"
#include "regs.h"
#include "segmented_address.h"
#include "stack.h"
#include "stackcheck.h"
#include "terminal.h"
#include "versions.h"
#if PLATFORM_N64
@ -28,8 +33,8 @@ extern struct IrqMgr gIrqMgr;
#include "global.h"
#pragma increment_block_number "gc-eu:160 gc-eu-mq:160 gc-jp:160 gc-jp-ce:160 gc-jp-mq:160 gc-us:160 gc-us-mq:160" \
"ique-cn:160 ntsc-1.0:140 ntsc-1.1:140 ntsc-1.2:140 pal-1.0:138 pal-1.1:138"
#pragma increment_block_number "gc-eu:32 gc-eu-mq:32 gc-jp:32 gc-jp-ce:32 gc-jp-mq:32 gc-us:32 gc-us-mq:32 ique-cn:32" \
"ntsc-1.0:13 ntsc-1.1:13 ntsc-1.2:13 pal-1.0:11 pal-1.1:11"
extern u8 _buffersSegmentEnd[];

View file

@ -7,7 +7,10 @@
* Each file is assigned an uppercase ASCII letter as an identifier, the game name for each is marked as
* 'ZELDA DEMO TOOL', encoded according to the N64 Font Code described in section 26.3 of the N64 Programming Manual.
*/
#include "global.h"
#include "mempak.h"
#include "padmgr.h"
#include "macros.h"
#define MEMPAK_MAX_FILES 11

View file

@ -42,11 +42,14 @@
#include "libu64/debug.h"
#include "fault.h"
#include "irqmgr.h"
#include "main.h"
#include "regs.h"
#include "sched.h"
#include "speed_meter.h"
#include "versions.h"
#include "z64thread.h"
#include "macros.h"
#include "global.h"
#define RSP_DONE_MSG 667

View file

@ -1,4 +1,7 @@
#include "global.h"
#include "letterbox.h"
#include "regs.h"
#include "macros.h"
typedef enum LetterboxState {
/* 0 */ LETTERBOX_STATE_IDLE,

View file

@ -1,8 +1,14 @@
#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" \
"ntsc-1.2:128 pal-1.0:128 pal-1.1:128"
#include "global.h"
#include "libc64/malloc.h"
#include "libu64/debug.h"
#include "gfx.h"
#include "regs.h"
#include "speed_meter.h"
#include "terminal.h"
#include "zelda_arena.h"
#include "z64game.h"
#include "z64view.h"
/**
* How much time the audio update on the audio thread (`AudioThread_Update`) took in total, between scheduling the last

View file

@ -1,4 +1,7 @@
#include "global.h"
#include "sys_debug_controller.h"
#include "stdbool.h"
#include "ultra64/ultratypes.h"
#include "padmgr.h"
u32 gIsCtrlr2Valid = false;

View file

@ -1,6 +1,10 @@
#include "global.h"
#include "libc64/sleep.h"
#include "attributes.h"
#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 (;;) {

View file

@ -12,7 +12,8 @@
*
* @note Original filename is likely sys_vibrate.c or similar as it is ordered after sys_ucode.c
*/
#include "global.h"
#include "rumble.h"
#include "padmgr.h"
/**
* Rumble manager update, runs on Vertical Retrace on the padmgr thread.

View file

@ -33,8 +33,8 @@
#include "assets/objects/gameplay_dangeon_keep/gameplay_dangeon_keep.h"
#include "assets/objects/object_bdoor/object_bdoor.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" \
"ntsc-1.0:128 ntsc-1.1:0 ntsc-1.2:0 pal-1.0:0 pal-1.1:0"
#pragma increment_block_number "gc-eu:128 gc-eu-mq:128 gc-jp:0 gc-jp-ce:0 gc-jp-mq:0 gc-us:0 gc-us-mq:0 ntsc-1.0:128" \
"ntsc-1.1:0 ntsc-1.2:0 pal-1.0:0 pal-1.1:0"
CollisionPoly* sCurCeilingPoly;
s32 sCurCeilingBgId;

View file

@ -1,4 +1,7 @@
#include "global.h"
#include "z_lib.h"
#include "z64actor.h"
#include "z64bgcheck.h"
#include "z64play.h"
/**
* @param transformFlags How other actors standing on the dynapoly actor's collision move when the dynapoly actor moves.

View file

@ -11,7 +11,7 @@
#include "z64player.h"
#include "z64skin_matrix.h"
#pragma increment_block_number "ntsc-1.0:184 ntsc-1.1:184 ntsc-1.2:184"
#pragma increment_block_number "ntsc-1.0:208 ntsc-1.1:208 ntsc-1.2:208"
u16 DynaSSNodeList_GetNextNodeIdx(DynaSSNodeList* nodeList);
void BgCheck_GetStaticLookupIndicesFromPos(CollisionContext* colCtx, Vec3f* pos, Vec3i* sector);

View file

@ -1,14 +1,30 @@
#include "libc64/math64.h"
#include "libc64/qrand.h"
#include "ultra64.h"
#include "attributes.h"
#include "controller.h"
#include "db_camera.h"
#include "letterbox.h"
#include "one_point_cutscene.h"
#include "quake.h"
#include "regs.h"
#include "sfx.h"
#include "sys_math3d.h"
#include "terminal.h"
#include "z_lib.h"
#include "zelda_arena.h"
#include "z64audio.h"
#include "z64cutscene_spline.h"
#include "z64debug.h"
#include "z64olib.h"
#include "z64play.h"
#include "z64player.h"
#include "z64save.h"
#include "overlays/actors/ovl_En_Horse/z_en_horse.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:0" \
"ntsc-1.0:0 ntsc-1.1:0 ntsc-1.2:0 pal-1.0:0 pal-1.1:0"
#pragma increment_block_number "gc-eu:192 gc-eu-mq:192 gc-jp:192 gc-jp-ce:192 gc-jp-mq:192 gc-us:192 gc-us-mq:192" \
"ique-cn:192 ntsc-1.0:192 ntsc-1.1:192 ntsc-1.2:192 pal-1.0:192 pal-1.1:192"
s16 Camera_RequestSettingImpl(Camera* camera, s16 requestedSetting, s16 flags);
s32 Camera_RequestModeImpl(Camera* camera, s16 requestedMode, u8 forceModeChange);
@ -3642,7 +3658,7 @@ s32 Camera_KeepOn3(Camera* camera) {
}
#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:128 ntsc-1.0:120 ntsc-1.1:120 ntsc-1.2:120 pal-1.0:118 pal-1.1:118"
"ique-cn:128 ntsc-1.0:95 ntsc-1.1:95 ntsc-1.2:95 pal-1.0:93 pal-1.1:93"
s32 Camera_KeepOn4(Camera* camera) {
static Vec3f D_8015BD50;

View file

@ -1,4 +1,7 @@
#include "global.h"
#include "gfx.h"
#include "gfx_setupdl.h"
#include "sys_matrix.h"
#include "z64play.h"
void Gfx_DrawDListOpa(PlayState* play, Gfx* dlist) {
OPEN_DISPS(play->state.gfxCtx, "../z_cheap_proc.c", 214);

View file

@ -15,7 +15,7 @@
#include "overlays/effects/ovl_Effect_Ss_HitMark/z_eff_ss_hitmark.h"
#include "z_lib.h"
#pragma increment_block_number "ique-cn:0 ntsc-1.0:224 ntsc-1.1:224 ntsc-1.2:224 pal-1.0:224 pal-1.1:224"
#pragma increment_block_number "ique-cn:0 ntsc-1.0:248 ntsc-1.1:248 ntsc-1.2:248 pal-1.0:248 pal-1.1:248"
typedef s32 (*ColChkResetFunc)(PlayState*, Collider*);
typedef void (*ColChkApplyFunc)(PlayState*, CollisionCheckContext*, Collider*);

View file

@ -1,14 +1,14 @@
#include "alignment.h"
#include "region.h"
#include "sequence.h"
#include "versions.h"
#include "z_locale.h"
#include "z64environment.h"
#include "z64save.h"
#include "z64transition.h"
#include "global.h"
#pragma increment_block_number "gc-eu:64 gc-eu-mq:64 gc-jp:64 gc-jp-ce:64 gc-jp-mq:64 gc-us:64 gc-us-mq:64" \
"ntsc-1.0:176 ntsc-1.1:176 ntsc-1.2:176 pal-1.0:192 pal-1.1:192"
#pragma increment_block_number "gc-eu:192 gc-eu-mq:192 gc-jp:192 gc-jp-ce:192 gc-jp-mq:192 gc-us:192 gc-us-mq:192" \
"ntsc-1.0:0 ntsc-1.1:0 ntsc-1.2:0 pal-1.0:0 pal-1.1:0"
ALIGNED(16) SaveContext gSaveContext;
#if PLATFORM_IQUE

View file

@ -1,4 +1,4 @@
#pragma increment_block_number "gc-eu:0 gc-eu-mq:128 gc-jp:0 gc-jp-ce:0 gc-jp-mq:128 gc-us:0 gc-us-mq:128 ique-cn:0" \
#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:0" \
"ntsc-1.0:0 ntsc-1.1:0 ntsc-1.2:0 pal-1.0:0 pal-1.1:0"
#include "global.h"
#include "libu64/gfxprint.h"
@ -144,8 +144,8 @@ u16 gCamAtSplinePointsAppliedFrame;
u16 gCamEyePointAppliedFrame;
u16 gCamAtPointAppliedFrame;
#pragma increment_block_number "gc-eu:0 gc-eu-mq:128 gc-jp:0 gc-jp-ce:0 gc-jp-mq:128 gc-us:0 gc-us-mq:128 ique-cn:0" \
"ntsc-1.0:128 ntsc-1.1:128 ntsc-1.2:128 pal-1.0:128 pal-1.1:128"
#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:0" \
"ntsc-1.0:128 ntsc-1.1:128 ntsc-1.2:0 pal-1.0:128 pal-1.1:128"
// Cam ID to return to when a scripted cutscene is finished
s16 sReturnToCamId;

View file

@ -1,4 +1,15 @@
#include "libc64/math64.h"
#include "gfx.h"
#include "gfx_setupdl.h"
#include "sys_math3d.h"
#include "sys_matrix.h"
#include "z_lib.h"
#include "z64effect.h"
#include "z64skin_matrix.h"
#include "macros.h"
#include "global.h"
#include "assets/objects/gameplay_keep/gameplay_keep.h"
void EffectBlure_AddVertex(EffectBlure* this, Vec3f* p1, Vec3f* p2) {

View file

@ -1,5 +1,15 @@
#include "global.h"
#include "libc64/qrand.h"
#include "gfx.h"
#include "gfx_setupdl.h"
#include "terminal.h"
#include "z64effect.h"
#include "z64light.h"
#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] = {

View file

@ -1,4 +1,14 @@
#include "libc64/qrand.h"
#include "gfx.h"
#include "gfx_setupdl.h"
#include "sys_matrix.h"
#include "z64effect.h"
#include "z64play.h"
#include "z64skin_matrix.h"
#include "macros.h"
#include "global.h"
#include "assets/objects/gameplay_keep/gameplay_keep.h"
// original name: "spark"

View file

@ -1,4 +1,6 @@
#include "global.h"
#include "gfx.h"
#include "z_lib.h"
#include "z64play.h"
void func_80026230(PlayState* play, Color_RGBA8* color, s16 arg2, s16 arg3) {
f32 cos;

View file

@ -1,6 +1,7 @@
#include "global.h"
#include "gfx.h"
#include "z64effect.h"
#include "z64frame_advance.h"
#include "z64play.h"
EffectContext sEffectContext;

View file

@ -1,4 +1,16 @@
#include "global.h"
#include "libc64/qrand.h"
#include "gfx.h"
#include "gfx_setupdl.h"
#include "rand.h"
#include "regs.h"
#include "segmented_address.h"
#include "sfx.h"
#include "z_lib.h"
#include "z64effect.h"
#include "z64play.h"
#include "z64player.h"
#include "z64skin_matrix.h"
#include "overlays/effects/ovl_Effect_Ss_Dust/z_eff_ss_dust.h"
#include "overlays/effects/ovl_Effect_Ss_KiraKira/z_eff_ss_kirakira.h"
#include "overlays/effects/ovl_Effect_Ss_Bomb/z_eff_ss_bomb.h"

View file

@ -1,4 +1,11 @@
#include "global.h"
#include "z_en_a_obj.h"
#include "gfx.h"
#include "gfx_setupdl.h"
#include "sfx.h"
#include "sys_matrix.h"
#include "z_lib.h"
#include "z64play.h"
#include "assets/objects/gameplay_keep/gameplay_keep.h"
#include "assets/objects/object_d_hsblock/object_d_hsblock.h"

View file

@ -9,7 +9,14 @@
* @note The only coded effect has a visual effect to blend the tiles to a single point, which looks like the screen
* gets sucked into.
*/
#include "global.h"
#include "libc64/malloc.h"
#include "libc64/sleep.h"
#include "libu64/debug.h"
#include "gfx.h"
#include "z64math.h"
#include "z64transition_instances.h"
#include "macros.h"
// color framebuffer
extern u16 D_0F000000[];

View file

@ -1,3 +1,5 @@
#include "gfx.h"
#include "global.h"
typedef enum TransitionCircleDirection {

View file

@ -25,8 +25,14 @@
* - higher detail draws both.
*/
#include "global.h"
#include "gfx.h"
#include "regs.h"
#include "segmented_address.h"
#include "sys_matrix.h"
#include "zelda_arena.h"
#include "z64actor.h"
#include "z64curve.h"
#include "z64play.h"
void SkelCurve_Clear(SkelCurve* skelCurve) {
skelCurve->limbCount = 0;

View file

@ -1,5 +1,5 @@
#pragma increment_block_number "gc-eu:224 gc-eu-mq:224 gc-jp:224 gc-jp-ce:224 gc-jp-mq:224 gc-us:224 gc-us-mq:224" \
"ique-cn:224 ntsc-1.0:224 ntsc-1.1:224 ntsc-1.2:224 pal-1.0:224 pal-1.1:224"
#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:128 ntsc-1.0:144 ntsc-1.1:144 ntsc-1.2:144 pal-1.0:144 pal-1.1:144"
#include "libu64/debug.h"
#include "kaleido_manager.h"

View file

@ -1,5 +1,5 @@
#pragma increment_block_number "gc-eu:64 gc-eu-mq:64 gc-jp:0 gc-jp-ce:0 gc-jp-mq:0 gc-us:0 gc-us-mq:0 ique-cn:0" \
"ntsc-1.0:0 ntsc-1.1:0 ntsc-1.2:0 pal-1.0:64 pal-1.1:64"
#pragma increment_block_number "gc-eu:64 gc-eu-mq:64 gc-jp:64 gc-jp-ce:64 gc-jp-mq:64 gc-us:64 gc-us-mq:64 ique-cn:64" \
"ntsc-1.0:64 ntsc-1.1:64 ntsc-1.2:64 pal-1.0:64 pal-1.1:64"
#include "libc64/qrand.h"
#include "libu64/gfxprint.h"
@ -235,8 +235,8 @@ s16 sLightningFlashAlpha;
s16 sSunDepthTestX;
s16 sSunDepthTestY;
#pragma increment_block_number "gc-eu:160 gc-eu-mq:160 gc-jp:128 gc-jp-ce:128 gc-jp-mq:128 gc-us:128 gc-us-mq:128" \
"ique-cn:128 ntsc-1.0:128 ntsc-1.1:128 ntsc-1.2:128 pal-1.0:160 pal-1.1:160"
#pragma increment_block_number "gc-eu:192 gc-eu-mq:192 gc-jp:160 gc-jp-ce:160 gc-jp-mq:160 gc-us:160 gc-us-mq:160" \
"ique-cn:160 ntsc-1.0:192 ntsc-1.1:192 ntsc-1.2:192 pal-1.0:192 pal-1.1:192"
LightNode* sNGameOverLightNode;
LightInfo sNGameOverLightInfo;

View file

@ -1,5 +1,6 @@
#include "libu64/debug.h"
#include "libu64/overlay.h"
#include "map.h"
#include "regs.h"
#include "romfile.h"
#include "segment_symbols.h"

View file

@ -24,7 +24,7 @@
#include "assets/textures/parameter_static/parameter_static.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" \
"ntsc-1.0:208 ntsc-1.1:208 ntsc-1.2:208 pal-1.0:128 pal-1.1:128"
"ntsc-1.0:80 ntsc-1.1:80 ntsc-1.2:80 pal-1.0:128 pal-1.1:128"
#if !PLATFORM_IQUE
#define MSG_BUF_DECODED (msgCtx->msgBufDecoded)

View file

@ -2,6 +2,9 @@
* Unused. A very simple utility for drawing text on screen.
*/
#include "gfx.h"
#include "macros.h"
#include "global.h"
// how big to draw the characters on screen

View file

@ -1,3 +1,5 @@
#include "libc64/malloc.h"
#include "libc64/qrand.h"
#include "libu64/debug.h"
#include "buffers.h"
#include "controller.h"
@ -33,11 +35,12 @@
#include "z64play.h"
#include "z64player.h"
#include "z64save.h"
#include "z64vis.h"
#include "global.h"
#pragma increment_block_number "gc-eu:128 gc-eu-mq:128 gc-jp:0 gc-jp-ce:0 gc-jp-mq:0 gc-us:0 gc-us-mq:0 ique-cn:192" \
"ntsc-1.0:144 ntsc-1.1:144 ntsc-1.2:144 pal-1.0:144 pal-1.1:144"
#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:0" \
"ntsc-1.0:224 ntsc-1.1:224 ntsc-1.2:224 pal-1.0:224 pal-1.1:224"
TransitionTile gTransitionTile;
s32 gTransitionTileState;

View file

@ -1,4 +1,8 @@
#include "global.h"
#include "kaleido_manager.h"
#include "z64actor.h"
#include "z64actor_profile.h"
#include "z64play.h"
#include "z64player.h"
#define FLAGS \
(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | \

View file

@ -3,11 +3,10 @@
#include "gfx_setupdl.h"
#include "gfxalloc.h"
#include "letterbox.h"
#include "main.h"
#include "regs.h"
#include "z64play.h"
#include "global.h"
Gfx sSetupDL[SETUPDL_MAX][6] = {
{
/* SETUPDL_0 */

View file

@ -11,7 +11,9 @@
*
* @note Original filename is likely z_vibrate.c or similar as it is ordered after z_ss_sram.c and before z_view.c
*/
#include "global.h"
#include "rumble.h"
#include "padmgr.h"
#include "z64math.h"
RumbleMgr sRumbleMgr;

View file

@ -1,9 +1,16 @@
#include "global.h"
#include "regs.h"
#include "romfile.h"
#include "seqcmd.h"
#include "segment_symbols.h"
#include "segmented_address.h"
#include "terminal.h"
#include "versions.h"
#include "z_actor_dlftbls.h"
#include "z_lib.h"
#include "z64play.h"
#include "z64player.h"
#include "z64save.h"
#include "z64scene.h"
SceneCmdHandlerFunc sSceneCmdHandlers[SCENE_CMD_ID_MAX];
RomFile sNaviQuestHintFiles[];

View file

@ -1,5 +1,17 @@
#include "global.h"
#include "libu64/debug.h"
#include "gfx.h"
#include "regs.h"
#include "segmented_address.h"
#include "segment_symbols.h"
#include "sys_matrix.h"
#include "terminal.h"
#include "z_lib.h"
#include "zelda_arena.h"
#include "z64animation.h"
#include "z64animation_legacy.h"
#include "z64play.h"
#include "macros.h"
#define ANIM_INTERP 1

View file

@ -1,5 +1,9 @@
#include "global.h"
#include "gfx.h"
#include "terminal.h"
#include "z_lib.h"
#include "z64skin_matrix.h"
#include "macros.h"
// clang-format off
MtxF sMtxFClear = {

View file

@ -1,5 +1,12 @@
#include "global.h"
#include "libc64/malloc.h"
#include "libu64/debug.h"
#include "gfx.h"
#include "letterbox.h"
#include "main.h"
#include "regs.h"
#include "sys_matrix.h"
#include "terminal.h"
#include "z64view.h"
vu32 sLogOnNextViewInit = true;

View file

@ -1,9 +1,15 @@
#include "vi_mode.h"
#include "global.h"
#include "libu64/debug.h"
#include "ultra64/viint.h"
#include "controller.h"
#include "main.h"
#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);

View file

@ -20,7 +20,10 @@
* before the filter is applied.
*/
#include "global.h"
#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.

View file

@ -8,7 +8,14 @@
* comments.
*/
#include "global.h"
#include "libc64/malloc.h"
#include "libu64/debug.h"
#include "attributes.h"
#include "gfx.h"
#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

View file

@ -32,7 +32,10 @@
* again ignored by the RenderMode.
*/
#include "global.h"
#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.

View file

@ -1,4 +1,7 @@
#include "global.h"
#include "gfx.h"
#include "gfx_setupdl.h"
#include "sys_matrix.h"
#include "z64skybox.h"
Mtx* sSkyboxDrawMatrix;