1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-23 07:21:19 +00:00

Replace most osSyncPrintf calls with PRINTF macro (#1598)

* Replace most osSyncPrintf calls with PRINTF macro

* DEBUG -> OOT_DEBUG
This commit is contained in:
cadmic 2024-01-12 07:38:13 -08:00 committed by GitHub
parent 6eb3bf401c
commit 324db1d578
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
297 changed files with 2642 additions and 2679 deletions

View file

@ -99,7 +99,7 @@ void EnSda_Update(Actor* thisx, PlayState* play) {
EnSda* this = (EnSda*)thisx;
Player* player;
osSyncPrintf("SDA MOVE\n");
PRINTF("SDA MOVE\n");
if (this->actor.params == 1) {
player = (Player*)this->actor.parent;
@ -109,7 +109,7 @@ void EnSda_Update(Actor* thisx, PlayState* play) {
this->actor.world.pos = player->actor.world.pos;
osSyncPrintf("SDA MOVE END\n");
PRINTF("SDA MOVE END\n");
}
void EnSda_Draw(Actor* thisx, PlayState* play) {
@ -117,7 +117,7 @@ void EnSda_Draw(Actor* thisx, PlayState* play) {
Player* player;
u8* shadowTexture = GRAPH_ALLOC(play->state.gfxCtx, 0x1000);
osSyncPrintf("SDA DRAW \n");
PRINTF("SDA DRAW \n");
if (this->actor.params == 1) {
player = (Player*)this->actor.parent;
@ -132,7 +132,7 @@ void EnSda_Draw(Actor* thisx, PlayState* play) {
func_80AF9C70(shadowTexture, player, play);
}
osSyncPrintf("SDA DRAW END\n");
PRINTF("SDA DRAW END\n");
}
void func_80AF8F60(Player* player, u8* shadowTexture, f32 arg2) {
@ -251,7 +251,7 @@ void func_80AF95C4(EnSda* this, u8* shadowTexture, Player* player, PlayState* pl
Vec3f sp16C;
Vec3f sp64[22];
osSyncPrintf("SDA CONT \n");
PRINTF("SDA CONT \n");
if (BREG(57) != 0) {
for (shadowTextureTemp = shadowTexture, i = 0; i < 0x1000; i++, shadowTextureTemp++) {
if ((i >= 0 && i < 0x40) || (i >= 0xFC0 && i < 0x1000) || ((i & 0x3F) == 0) || ((i & 0x3F) == 0x3F)) {
@ -271,7 +271,7 @@ void func_80AF95C4(EnSda* this, u8* shadowTexture, Player* player, PlayState* pl
D_80AFA660[D_80AFA16C[i]] = player->bodyPartsPos[i];
}
}
osSyncPrintf("SDA CONT 2\n");
PRINTF("SDA CONT 2\n");
D_80AFA660[0].y += 3.0f;
D_80AFA660[15].x = D_80AFA660[0].x + ((D_80AFA660[15].x - D_80AFA660[0].x) * 1.2f);
D_80AFA660[15].y = D_80AFA660[0].y + ((D_80AFA660[15].y - D_80AFA660[0].y) * -1.2f);
@ -279,7 +279,7 @@ void func_80AF95C4(EnSda* this, u8* shadowTexture, Player* player, PlayState* pl
for (i = 0; i < 6; i++) {
func_80AF8F60(player, shadowTexture, i / 5.0f);
}
osSyncPrintf("SDA CONT 3\n");
PRINTF("SDA CONT 3\n");
if (this->actor.params != 1) {
Matrix_MtxFToYXZRotS(&player->shieldMf, &sp178, false);
sp178.y += (KREG(87) << 0xF) + 0x8000;
@ -327,7 +327,7 @@ void func_80AF95C4(EnSda* this, u8* shadowTexture, Player* player, PlayState* pl
}
}
}
osSyncPrintf("SDA CONT 4\n");
PRINTF("SDA CONT 4\n");
}
void func_80AF9C70(u8* shadowTexture, Player* player, PlayState* play) {
@ -339,7 +339,7 @@ void func_80AF9C70(u8* shadowTexture, Player* player, PlayState* play) {
OPEN_DISPS(gfxCtx, "../z_en_sda.c", 826);
osSyncPrintf("SDA D 1\n");
PRINTF("SDA D 1\n");
Gfx_SetupDL_44Xlu(play->state.gfxCtx);
gDPSetPrimColor(POLY_XLU_DISP++, 0x00, 0x00, 0, 0, 0, (BREG(52) + 50));
gDPSetEnvColor(POLY_XLU_DISP++, 0, 0, 0, 0);
@ -364,6 +364,6 @@ void func_80AF9C70(u8* shadowTexture, Player* player, PlayState* play) {
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
gSPDisplayList(POLY_XLU_DISP++, D_80AFA3F8);
}
osSyncPrintf("SDA D 2\n");
PRINTF("SDA D 2\n");
CLOSE_DISPS(gfxCtx, "../z_en_sda.c", 882);
}