mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-10 01:44:36 +00:00
Clean out z64.h (#2484)
* Clean out z64.h * fix version include * overlay.h * pr suggestion * try fixing main.c * add back forward declare * fix bss * header guard * prefix
This commit is contained in:
parent
2e4d7a1101
commit
5ddb3e68b6
36 changed files with 199 additions and 157 deletions
|
@ -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:128 gc-eu-mq:128 gc-eu-mq-dbg:128 gc-jp:128 gc-jp-ce:128 gc-jp-mq:128 gc-us:128" \
|
||||
"gc-us-mq:128 ique-cn:128"
|
||||
#pragma increment_block_number "gc-eu:160 gc-eu-mq:160 gc-eu-mq-dbg:160 gc-jp:160 gc-jp-ce:160 gc-jp-mq:160 gc-us:160" \
|
||||
"gc-us-mq:160 ique-cn:160"
|
||||
|
||||
#include "global.h"
|
||||
#include "libc64/sleep.h"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include "macros.h"
|
||||
#include "global.h"
|
||||
|
||||
#pragma increment_block_number "ntsc-1.0:160 ntsc-1.1:160 ntsc-1.2:160 pal-1.0:160 pal-1.1:160"
|
||||
#pragma increment_block_number "ntsc-1.0:192 ntsc-1.1:192 ntsc-1.2:192 pal-1.0:192 pal-1.1:192"
|
||||
|
||||
typedef struct FaultMgr {
|
||||
OSThread thread;
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "speed_meter.h"
|
||||
#include "terminal.h"
|
||||
#include "versions.h"
|
||||
#include "vi_mode.h"
|
||||
#include "z64debug.h"
|
||||
#include "z64game.h"
|
||||
#include "z64vis.h"
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include "file_select_state.h"
|
||||
#include "line_numbers.h"
|
||||
#include "map_select_state.h"
|
||||
#include "prenmi_buff.h"
|
||||
#include "prenmi_state.h"
|
||||
#include "regs.h"
|
||||
#include "setup_state.h"
|
||||
|
@ -26,8 +27,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:192" \
|
||||
"ntsc-1.1:192 ntsc-1.2:192 pal-1.0:192 pal-1.1:192"
|
||||
#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"
|
||||
|
||||
/**
|
||||
* The time at which the previous `Graph_Update` ended.
|
||||
|
|
|
@ -14,6 +14,7 @@ extern struct IrqMgr gIrqMgr;
|
|||
|
||||
#include "debug_arena.h"
|
||||
#include "fault.h"
|
||||
#include "prenmi_buff.h"
|
||||
#include "segmented_address.h"
|
||||
#include "stack.h"
|
||||
#include "terminal.h"
|
||||
|
@ -27,8 +28,8 @@ extern struct IrqMgr gIrqMgr;
|
|||
|
||||
#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:128 ntsc-1.0:104 ntsc-1.1:104 ntsc-1.2:104 pal-1.0:102 pal-1.1:102"
|
||||
#pragma increment_block_number "gc-eu:144 gc-eu-mq:144 gc-jp:144 gc-jp-ce:144 gc-jp-mq:144 gc-us:144 gc-us-mq:144" \
|
||||
"ique-cn:144 ntsc-1.0:129 ntsc-1.1:129 ntsc-1.2:129 pal-1.0:127 pal-1.1:127"
|
||||
|
||||
extern u8 _buffersSegmentEnd[];
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include "libu64/overlay.h"
|
||||
|
||||
#include "global.h"
|
||||
#include "terminal.h"
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "libc64/math64.h"
|
||||
#include "libu64/overlay.h"
|
||||
#include "fault.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "z64player.h"
|
||||
#include "z64skin_matrix.h"
|
||||
|
||||
#pragma increment_block_number "ntsc-1.0:180 ntsc-1.1:180 ntsc-1.2:180"
|
||||
#pragma increment_block_number "ntsc-1.0:176 ntsc-1.1:176 ntsc-1.2:176"
|
||||
|
||||
u16 DynaSSNodeList_GetNextNodeIdx(DynaSSNodeList* nodeList);
|
||||
void BgCheck_GetStaticLookupIndicesFromPos(CollisionContext* colCtx, Vec3f* pos, Vec3i* sector);
|
||||
|
|
|
@ -3642,7 +3642,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:79 ntsc-1.1:79 ntsc-1.2:79 pal-1.0:77 pal-1.1:77"
|
||||
"ique-cn:128 ntsc-1.0:109 ntsc-1.1:109 ntsc-1.2:109 pal-1.0:107 pal-1.1:107"
|
||||
|
||||
s32 Camera_KeepOn4(Camera* camera) {
|
||||
static Vec3f D_8015BD50;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#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" \
|
||||
#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: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: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:0 ntsc-1.1:0 ntsc-1.2:0 pal-1.0:0 pal-1.1: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:128 ntsc-1.1:128 ntsc-1.2:128 pal-1.0:128 pal-1.1:128"
|
||||
|
||||
// Cam ID to return to when a scripted cutscene is finished
|
||||
s16 sReturnToCamId;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#include "libu64/overlay.h"
|
||||
#include "global.h"
|
||||
#include "terminal.h"
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include "libu64/overlay.h"
|
||||
|
||||
#include "global.h"
|
||||
#include "terminal.h"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#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:192 ntsc-1.1:192 ntsc-1.2:192 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" \
|
||||
"ique-cn:192 ntsc-1.0:224 ntsc-1.1:224 ntsc-1.2:224 pal-1.0:224 pal-1.1:224"
|
||||
|
||||
#include "libu64/debug.h"
|
||||
#include "kaleido_manager.h"
|
||||
|
|
|
@ -236,7 +236,7 @@ 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:192 pal-1.1:192"
|
||||
"ique-cn:128 ntsc-1.0:128 ntsc-1.1:128 ntsc-1.2:128 pal-1.0:160 pal-1.1:160"
|
||||
|
||||
LightNode* sNGameOverLightNode;
|
||||
LightInfo sNGameOverLightInfo;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "libu64/debug.h"
|
||||
#include "libu64/overlay.h"
|
||||
#include "regs.h"
|
||||
#include "romfile.h"
|
||||
#include "segment_symbols.h"
|
||||
|
|
|
@ -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:160 ntsc-1.1:160 ntsc-1.2:160 pal-1.0:128 pal-1.1:128"
|
||||
"ntsc-1.0:192 ntsc-1.1:192 ntsc-1.2:192 pal-1.0:128 pal-1.1:128"
|
||||
|
||||
#if !PLATFORM_IQUE
|
||||
#define MSG_BUF_DECODED (msgCtx->msgBufDecoded)
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#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:192 ntsc-1.0:112 ntsc-1.1:112 ntsc-1.2:112 pal-1.0:112 pal-1.1:112"
|
||||
"ique-cn:192 ntsc-1.0:144 ntsc-1.1:144 ntsc-1.2:144 pal-1.0:144 pal-1.1:144"
|
||||
|
||||
TransitionTile gTransitionTile;
|
||||
s32 gTransitionTileState;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#include "prenmi_buff.h"
|
||||
#include "global.h"
|
||||
|
||||
#define COLD_RESET 0
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include "vi_mode.h"
|
||||
|
||||
#include "global.h"
|
||||
#include "ultra64/viint.h"
|
||||
#include "versions.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue