mirror of
https://github.com/zeldaret/oot.git
synced 2025-02-23 15:55:47 +00:00
Merge branch 'main' into doc_pause_menu
This commit is contained in:
commit
e7e1b6a0cb
9 changed files with 57 additions and 54 deletions
|
@ -1160,12 +1160,7 @@ void Graph_Destroy(GraphicsContext* gfxCtx);
|
||||||
void Graph_TaskSet00(GraphicsContext* gfxCtx);
|
void Graph_TaskSet00(GraphicsContext* gfxCtx);
|
||||||
void Graph_Update(GraphicsContext* gfxCtx, GameState* gameState);
|
void Graph_Update(GraphicsContext* gfxCtx, GameState* gameState);
|
||||||
void Graph_ThreadEntry(void*);
|
void Graph_ThreadEntry(void*);
|
||||||
void* Graph_Alloc(GraphicsContext* gfxCtx, size_t size);
|
|
||||||
void* Graph_Alloc2(GraphicsContext* gfxCtx, size_t size);
|
|
||||||
#if OOT_DEBUG
|
|
||||||
void Graph_OpenDisps(Gfx** dispRefs, GraphicsContext* gfxCtx, const char* file, int line);
|
|
||||||
void Graph_CloseDisps(Gfx** dispRefs, GraphicsContext* gfxCtx, const char* file, int line);
|
|
||||||
#endif
|
|
||||||
Gfx* Gfx_Open(Gfx* gfx);
|
Gfx* Gfx_Open(Gfx* gfx);
|
||||||
Gfx* Gfx_Close(Gfx* gfx, Gfx* dst);
|
Gfx* Gfx_Close(Gfx* gfx, Gfx* dst);
|
||||||
void* Gfx_Alloc(Gfx** gfxP, u32 size);
|
void* Gfx_Alloc(Gfx** gfxP, u32 size);
|
||||||
|
|
|
@ -161,4 +161,52 @@ typedef struct UCodeDisas {
|
||||||
/* 0xD4 */ u32 geometryMode;
|
/* 0xD4 */ u32 geometryMode;
|
||||||
} UCodeDisas; // size = 0xD8
|
} UCodeDisas; // size = 0xD8
|
||||||
|
|
||||||
|
void* Graph_Alloc(GraphicsContext* gfxCtx, size_t size);
|
||||||
|
void* Graph_Alloc2(GraphicsContext* gfxCtx, size_t size);
|
||||||
|
|
||||||
|
#define WORK_DISP __gfxCtx->work.p
|
||||||
|
#define POLY_OPA_DISP __gfxCtx->polyOpa.p
|
||||||
|
#define POLY_XLU_DISP __gfxCtx->polyXlu.p
|
||||||
|
#define OVERLAY_DISP __gfxCtx->overlay.p
|
||||||
|
|
||||||
|
#if OOT_DEBUG
|
||||||
|
|
||||||
|
void Graph_OpenDisps(Gfx** dispRefs, GraphicsContext* gfxCtx, const char* file, int line);
|
||||||
|
void Graph_CloseDisps(Gfx** dispRefs, GraphicsContext* gfxCtx, const char* file, int line);
|
||||||
|
|
||||||
|
// __gfxCtx shouldn't be used directly.
|
||||||
|
// Use the DISP macros defined above when writing to display buffers.
|
||||||
|
#define OPEN_DISPS(gfxCtx, file, line) \
|
||||||
|
{ \
|
||||||
|
GraphicsContext* __gfxCtx; \
|
||||||
|
Gfx* dispRefs[4]; \
|
||||||
|
__gfxCtx = gfxCtx; \
|
||||||
|
(void)__gfxCtx; \
|
||||||
|
Graph_OpenDisps(dispRefs, gfxCtx, file, line)
|
||||||
|
|
||||||
|
#define CLOSE_DISPS(gfxCtx, file, line) \
|
||||||
|
do { \
|
||||||
|
Graph_CloseDisps(dispRefs, gfxCtx, file, line); \
|
||||||
|
} while (0); \
|
||||||
|
} \
|
||||||
|
(void)0
|
||||||
|
|
||||||
|
#define GRAPH_ALLOC(gfxCtx, size) Graph_Alloc(gfxCtx, size)
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#define OPEN_DISPS(gfxCtx, file, line) \
|
||||||
|
{ \
|
||||||
|
GraphicsContext* __gfxCtx = gfxCtx; \
|
||||||
|
s32 __dispPad
|
||||||
|
|
||||||
|
#define CLOSE_DISPS(gfxCtx, file, line) \
|
||||||
|
do {} while (0); \
|
||||||
|
} \
|
||||||
|
(void)0
|
||||||
|
|
||||||
|
#define GRAPH_ALLOC(gfxCtx, size) ((void*)((gfxCtx)->polyOpa.d = (Gfx*)((u8*)(gfxCtx)->polyOpa.d - ALIGN16(size))))
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -160,35 +160,8 @@
|
||||||
} \
|
} \
|
||||||
(void)0
|
(void)0
|
||||||
|
|
||||||
struct GraphicsContext;
|
|
||||||
|
|
||||||
extern struct GraphicsContext* __gfxCtx;
|
|
||||||
|
|
||||||
#define WORK_DISP __gfxCtx->work.p
|
|
||||||
#define POLY_OPA_DISP __gfxCtx->polyOpa.p
|
|
||||||
#define POLY_XLU_DISP __gfxCtx->polyXlu.p
|
|
||||||
#define OVERLAY_DISP __gfxCtx->overlay.p
|
|
||||||
|
|
||||||
#if OOT_DEBUG
|
#if OOT_DEBUG
|
||||||
|
|
||||||
// __gfxCtx shouldn't be used directly.
|
|
||||||
// Use the DISP macros defined above when writing to display buffers.
|
|
||||||
#define OPEN_DISPS(gfxCtx, file, line) \
|
|
||||||
{ \
|
|
||||||
GraphicsContext* __gfxCtx; \
|
|
||||||
Gfx* dispRefs[4]; \
|
|
||||||
__gfxCtx = gfxCtx; \
|
|
||||||
(void)__gfxCtx; \
|
|
||||||
Graph_OpenDisps(dispRefs, gfxCtx, file, line)
|
|
||||||
|
|
||||||
#define CLOSE_DISPS(gfxCtx, file, line) \
|
|
||||||
do { \
|
|
||||||
Graph_CloseDisps(dispRefs, gfxCtx, file, line); \
|
|
||||||
} while (0); \
|
|
||||||
} \
|
|
||||||
(void)0
|
|
||||||
|
|
||||||
#define GRAPH_ALLOC(gfxCtx, size) Graph_Alloc(gfxCtx, size)
|
|
||||||
#define DMA_REQUEST_SYNC(ram, vrom, size, file, line) DmaMgr_RequestSyncDebug(ram, vrom, size, file, line)
|
#define DMA_REQUEST_SYNC(ram, vrom, size, file, line) DmaMgr_RequestSyncDebug(ram, vrom, size, file, line)
|
||||||
#define DMA_REQUEST_ASYNC(req, ram, vrom, size, unk5, queue, msg, file, line) DmaMgr_RequestAsyncDebug(req, ram, vrom, size, unk5, queue, msg, file, line)
|
#define DMA_REQUEST_ASYNC(req, ram, vrom, size, unk5, queue, msg, file, line) DmaMgr_RequestAsyncDebug(req, ram, vrom, size, unk5, queue, msg, file, line)
|
||||||
#define GAME_STATE_ALLOC(gameState, size, file, line) GameState_Alloc(gameState, size, file, line)
|
#define GAME_STATE_ALLOC(gameState, size, file, line) GameState_Alloc(gameState, size, file, line)
|
||||||
|
@ -207,17 +180,6 @@ extern struct GraphicsContext* __gfxCtx;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#define OPEN_DISPS(gfxCtx, file, line) \
|
|
||||||
{ \
|
|
||||||
GraphicsContext* __gfxCtx = gfxCtx; \
|
|
||||||
s32 __dispPad
|
|
||||||
|
|
||||||
#define CLOSE_DISPS(gfxCtx, file, line) \
|
|
||||||
do {} while (0); \
|
|
||||||
} \
|
|
||||||
(void)0
|
|
||||||
|
|
||||||
#define GRAPH_ALLOC(gfxCtx, size) ((void*)((gfxCtx)->polyOpa.d = (Gfx*)((u8*)(gfxCtx)->polyOpa.d - ALIGN16(size))))
|
|
||||||
#define DMA_REQUEST_SYNC(ram, vrom, size, file, line) DmaMgr_RequestSync(ram, vrom, size)
|
#define DMA_REQUEST_SYNC(ram, vrom, size, file, line) DmaMgr_RequestSync(ram, vrom, size)
|
||||||
#define DMA_REQUEST_ASYNC(req, ram, vrom, size, unk5, queue, msg, file, line) DmaMgr_RequestAsync(req, ram, vrom, size, unk5, queue, msg)
|
#define DMA_REQUEST_ASYNC(req, ram, vrom, size, unk5, queue, msg, file, line) DmaMgr_RequestAsync(req, ram, vrom, size, unk5, queue, msg)
|
||||||
#define GAME_STATE_ALLOC(gameState, size, file, line) THA_AllocTailAlign16(&(gameState)->tha, size)
|
#define GAME_STATE_ALLOC(gameState, size, file, line) THA_AllocTailAlign16(&(gameState)->tha, size)
|
||||||
|
|
|
@ -1,9 +1,3 @@
|
||||||
u32 sDebugPadHold;
|
|
||||||
u32 sDebugPadBtnLast;
|
|
||||||
u32 sDebugPadPress;
|
|
||||||
s32 sAudioUpdateTaskStart;
|
|
||||||
s32 sAudioUpdateTaskEnd;
|
|
||||||
|
|
||||||
f32 D_80131C8C = 0.0f;
|
f32 D_80131C8C = 0.0f;
|
||||||
f32 sAudioUpdateDuration = 0.0f;
|
f32 sAudioUpdateDuration = 0.0f;
|
||||||
f32 sAudioUpdateDurationMax = 0.0f;
|
f32 sAudioUpdateDurationMax = 0.0f;
|
||||||
|
|
|
@ -1297,6 +1297,11 @@ OcarinaNote sScarecrowsLongSongSecondNote;
|
||||||
#if OOT_DEBUG
|
#if OOT_DEBUG
|
||||||
u8 sIsMalonSinging;
|
u8 sIsMalonSinging;
|
||||||
f32 sMalonSingingDist;
|
f32 sMalonSingingDist;
|
||||||
|
u32 sDebugPadHold;
|
||||||
|
u32 sDebugPadBtnLast;
|
||||||
|
u32 sDebugPadPress;
|
||||||
|
s32 sAudioUpdateTaskStart;
|
||||||
|
s32 sAudioUpdateTaskEnd;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void PadMgr_RequestPadData(PadMgr* padMgr, Input* inputs, s32 gameRequest);
|
void PadMgr_RequestPadData(PadMgr* padMgr, Input* inputs, s32 gameRequest);
|
||||||
|
|
|
@ -14,7 +14,7 @@ s32 gScreenWidth = SCREEN_WIDTH;
|
||||||
s32 gScreenHeight = SCREEN_HEIGHT;
|
s32 gScreenHeight = SCREEN_HEIGHT;
|
||||||
u32 gSystemHeapSize = 0;
|
u32 gSystemHeapSize = 0;
|
||||||
|
|
||||||
#pragma increment_block_number "gc-eu:208 gc-eu-mq:208 gc-jp:208 gc-jp-ce:208 gc-jp-mq:208 gc-us:208 gc-us-mq:208"
|
#pragma increment_block_number "gc-eu:204 gc-eu-mq:204 gc-jp:208 gc-jp-ce:208 gc-jp-mq:208 gc-us:208 gc-us-mq:208"
|
||||||
|
|
||||||
PreNmiBuff* gAppNmiBufferPtr;
|
PreNmiBuff* gAppNmiBufferPtr;
|
||||||
Scheduler gScheduler;
|
Scheduler gScheduler;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#include "macros.h"
|
#include "macros.h"
|
||||||
#include "sys_math3d.h"
|
#include "sys_math3d.h"
|
||||||
|
|
||||||
#pragma increment_block_number "gc-eu:103 gc-eu-mq:103 gc-jp:103 gc-jp-ce:103 gc-jp-mq:103 gc-us:103 gc-us-mq:103"
|
#pragma increment_block_number "gc-eu:106 gc-eu-mq:106 gc-jp:106 gc-jp-ce:106 gc-jp-mq:106 gc-us:106 gc-us-mq:106"
|
||||||
|
|
||||||
s32 Math3D_LineVsLineClosestTwoPoints(Vec3f* lineAPointA, Vec3f* lineAPointB, Vec3f* lineBPointA, Vec3f* lineBPointB,
|
s32 Math3D_LineVsLineClosestTwoPoints(Vec3f* lineAPointA, Vec3f* lineAPointB, Vec3f* lineBPointA, Vec3f* lineBPointB,
|
||||||
Vec3f* lineAClosestToB, Vec3f* lineBClosestToA);
|
Vec3f* lineAClosestToB, Vec3f* lineBClosestToA);
|
||||||
|
|
|
@ -2317,7 +2317,6 @@ void CollisionCheck_ATQuadVsACCyl(PlayState* play, CollisionCheckContext* colChk
|
||||||
#if OOT_DEBUG
|
#if OOT_DEBUG
|
||||||
static s8 sBssDummy3;
|
static s8 sBssDummy3;
|
||||||
static s8 sBssDummy4;
|
static s8 sBssDummy4;
|
||||||
static s8 sBssDummy5;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void CollisionCheck_ATTrisVsACTris(PlayState* play, CollisionCheckContext* colChkCtx, Collider* atCol,
|
void CollisionCheck_ATTrisVsACTris(PlayState* play, CollisionCheckContext* colChkCtx, Collider* atCol,
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#include "cic6105.h"
|
#include "cic6105.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#pragma increment_block_number "gc-eu:141 gc-eu-mq:141 gc-jp:143 gc-jp-ce:143 gc-jp-mq:143 gc-us:143 gc-us-mq:143"
|
#pragma increment_block_number "gc-eu:143 gc-eu-mq:143 gc-jp:145 gc-jp-ce:145 gc-jp-mq:145 gc-us:145 gc-us-mq:145"
|
||||||
|
|
||||||
#define FLAGS ACTOR_FLAG_4
|
#define FLAGS ACTOR_FLAG_4
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue