mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-23 07:21:19 +00:00
Create debug macros for common functions (#1597)
* Create debug macros for common functions * Revert NDEBUG change * MALLOCR -> MALLOC_R * DEBUG -> OOT_DEBUG * Use the same name for debug and non-debug matrix functions * Fix file/line argument order * Revert g[s]DPNoOp[Tag] * Use SystemArena_MallocDebug directly in GameAlloc_MallocDebug * MTXF_TO_MTX -> MATRIX_TO_MTX
This commit is contained in:
parent
e146d7bc26
commit
cd917b0cb8
314 changed files with 1352 additions and 1294 deletions
|
@ -115,7 +115,7 @@ void EnSda_Update(Actor* thisx, PlayState* play) {
|
|||
void EnSda_Draw(Actor* thisx, PlayState* play) {
|
||||
EnSda* this = (EnSda*)thisx;
|
||||
Player* player;
|
||||
u8* shadowTexture = Graph_Alloc(play->state.gfxCtx, 0x1000);
|
||||
u8* shadowTexture = GRAPH_ALLOC(play->state.gfxCtx, 0x1000);
|
||||
|
||||
osSyncPrintf("SDA DRAW \n");
|
||||
|
||||
|
@ -351,7 +351,7 @@ void func_80AF9C70(u8* shadowTexture, Player* player, PlayState* play) {
|
|||
20.0f;
|
||||
Matrix_Translate(tempx, 0.0f, tempz, MTXMODE_APPLY);
|
||||
Matrix_Scale(((BREG(56) - 250) / 1000.0f) + 0.6f, 1.0f, ((BREG(59) - 250) / 1000.0f) + 0.6f, MTXMODE_APPLY);
|
||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(play->state.gfxCtx, "../z_en_sda.c", 860),
|
||||
gSPMatrix(POLY_XLU_DISP++, MATRIX_NEW(play->state.gfxCtx, "../z_en_sda.c", 860),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
gSPDisplayList(POLY_XLU_DISP++, D_80AFA3D8);
|
||||
gDPLoadTextureBlock(POLY_XLU_DISP++, shadowTexture, G_IM_FMT_I, G_IM_SIZ_8b, 0x40, 0x40, 0,
|
||||
|
@ -360,7 +360,7 @@ void func_80AF9C70(u8* shadowTexture, Player* player, PlayState* play) {
|
|||
|
||||
for (phi_s1 = 0; phi_s1 < KREG(78); phi_s1++) {
|
||||
Matrix_Scale((KREG(79) / 100.0f) + 1.0f, 1.0f, (KREG(79) / 100.0f) + 1.0f, MTXMODE_APPLY);
|
||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(play->state.gfxCtx, "../z_en_sda.c", 877),
|
||||
gSPMatrix(POLY_XLU_DISP++, MATRIX_NEW(play->state.gfxCtx, "../z_en_sda.c", 877),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
gSPDisplayList(POLY_XLU_DISP++, D_80AFA3F8);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue