mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-19 13:00:11 -07:00
more left over from code folder
This commit is contained in:
parent
9ea4e2423a
commit
ac48cae6c8
68 changed files with 955 additions and 955 deletions
|
@ -698,7 +698,7 @@ void DrawColViewer() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
OPEN_DISPS(gGlobalCtx->state.gfxCtx, "", 0);
|
OPEN_DISPS(gGlobalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
opaDl.push_back(gsSPEndDisplayList());
|
opaDl.push_back(gsSPEndDisplayList());
|
||||||
gSPDisplayList(POLY_OPA_DISP++, opaDl.data());
|
gSPDisplayList(POLY_OPA_DISP++, opaDl.data());
|
||||||
|
@ -706,5 +706,5 @@ void DrawColViewer() {
|
||||||
xluDl.push_back(gsSPEndDisplayList());
|
xluDl.push_back(gsSPEndDisplayList());
|
||||||
gSPDisplayList(POLY_XLU_DISP++, xluDl.data());
|
gSPDisplayList(POLY_XLU_DISP++, xluDl.data());
|
||||||
|
|
||||||
CLOSE_DISPS(gGlobalCtx->state.gfxCtx, "", 0);
|
CLOSE_DISPS(gGlobalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ extern "C" void OTRGameplay_SpawnScene(GlobalContext* globalCtx, s32 sceneNum, s
|
||||||
|
|
||||||
scene->unk_13 = 0;
|
scene->unk_13 = 0;
|
||||||
|
|
||||||
//ASSERT(globalCtx->sceneSegment != NULL, "this->sceneSegment != NULL", "../z_play.c", 4960);
|
//ASSERT(globalCtx->sceneSegment != NULL, "this->sceneSegment != NULL", __FILE__, __LINE__);
|
||||||
//gSegments[2] = VIRTUAL_TO_PHYSICAL(globalCtx->sceneSegment);
|
//gSegments[2] = VIRTUAL_TO_PHYSICAL(globalCtx->sceneSegment);
|
||||||
|
|
||||||
OTRGameplay_InitScene(globalCtx, spawn);
|
OTRGameplay_InitScene(globalCtx, spawn);
|
||||||
|
|
|
@ -908,7 +908,7 @@ extern "C" s32 OTRfunc_8009728C(GlobalContext* globalCtx, RoomContext* roomCtx,
|
||||||
roomCtx->curRoom.segment = NULL;
|
roomCtx->curRoom.segment = NULL;
|
||||||
roomCtx->status = 1;
|
roomCtx->status = 1;
|
||||||
|
|
||||||
ASSERT(roomNum < globalCtx->numRooms, "read_room_ID < game_play->room_rom_address.num", "../z_room.c", 1009);
|
ASSERT(roomNum < globalCtx->numRooms, "read_room_ID < game_play->room_rom_address.num", __FILE__, __LINE__);
|
||||||
|
|
||||||
if (roomNum >= globalCtx->numRooms)
|
if (roomNum >= globalCtx->numRooms)
|
||||||
return 0; // UH OH
|
return 0; // UH OH
|
||||||
|
@ -918,7 +918,7 @@ extern "C" s32 OTRfunc_8009728C(GlobalContext* globalCtx, RoomContext* roomCtx,
|
||||||
|
|
||||||
osCreateMesgQueue(&roomCtx->loadQueue, &roomCtx->loadMsg, 1);
|
osCreateMesgQueue(&roomCtx->loadQueue, &roomCtx->loadMsg, 1);
|
||||||
//DmaMgr_SendRequest2(&roomCtx->dmaRequest, roomCtx->unk_34, globalCtx->roomList[roomNum].vromStart, size, 0,
|
//DmaMgr_SendRequest2(&roomCtx->dmaRequest, roomCtx->unk_34, globalCtx->roomList[roomNum].vromStart, size, 0,
|
||||||
//&roomCtx->loadQueue, NULL, "../z_room.c", 1036);
|
//&roomCtx->loadQueue, NULL, __FILE__, __LINE__);
|
||||||
|
|
||||||
auto roomData = OTRGlobals::Instance->context->GetResourceManager()->LoadResource(globalCtx->roomList[roomNum].fileName);
|
auto roomData = OTRGlobals::Instance->context->GetResourceManager()->LoadResource(globalCtx->roomList[roomNum].fileName);
|
||||||
roomCtx->status = 1;
|
roomCtx->status = 1;
|
||||||
|
|
|
@ -125,9 +125,9 @@ end:
|
||||||
s32 DmaMgr_DmaHandler(OSPiHandle* pihandle, OSIoMesg* mb, s32 direction) {
|
s32 DmaMgr_DmaHandler(OSPiHandle* pihandle, OSIoMesg* mb, s32 direction) {
|
||||||
s32 ret;
|
s32 ret;
|
||||||
|
|
||||||
ASSERT(pihandle == gCartHandle, "pihandle == carthandle", "../z_std_dma.c", 530);
|
ASSERT(pihandle == gCartHandle, "pihandle == carthandle", __FILE__, __LINE__);
|
||||||
ASSERT(direction == OS_READ, "direction == OS_READ", "../z_std_dma.c", 531);
|
ASSERT(direction == OS_READ, "direction == OS_READ", __FILE__, __LINE__);
|
||||||
ASSERT(mb != NULL, "mb != NULL", "../z_std_dma.c", 532);
|
ASSERT(mb != NULL, "mb != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
if (D_80009460 == 10) {
|
if (D_80009460 == 10) {
|
||||||
osSyncPrintf("%10lld サウンドDMA %08x %08x %08x (%d)\n", OS_CYCLES_TO_USEC(osGetTime()), mb->dramAddr,
|
osSyncPrintf("%10lld サウンドDMA %08x %08x %08x (%d)\n", OS_CYCLES_TO_USEC(osGetTime()), mb->dramAddr,
|
||||||
|
@ -355,7 +355,7 @@ s32 DmaMgr_SendRequestImpl(DmaRequest* req, uintptr_t ram, uintptr_t vrom, size_
|
||||||
osSyncPrintf(VT_FGCOL(RED));
|
osSyncPrintf(VT_FGCOL(RED));
|
||||||
osSyncPrintf("dmaEntryMsgQが一杯です。キューサイズの再検討をおすすめします。");
|
osSyncPrintf("dmaEntryMsgQが一杯です。キューサイズの再検討をおすすめします。");
|
||||||
LOG_NUM("(sizeof(dmaEntryMsgBufs) / sizeof(dmaEntryMsgBufs[0]))", ARRAY_COUNT(sDmaMgrMsgs),
|
LOG_NUM("(sizeof(dmaEntryMsgBufs) / sizeof(dmaEntryMsgBufs[0]))", ARRAY_COUNT(sDmaMgrMsgs),
|
||||||
"../z_std_dma.c", 952);
|
__FILE__, __LINE__);
|
||||||
osSyncPrintf(VT_RST);
|
osSyncPrintf(VT_RST);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -417,7 +417,7 @@ void DmaMgr_Init(void) {
|
||||||
{
|
{
|
||||||
osSyncPrintf("_bootSegmentRomStart(%08x) != dma_rom_ad[0].rom_b(%08x)\n", _bootSegmentRomStart,
|
osSyncPrintf("_bootSegmentRomStart(%08x) != dma_rom_ad[0].rom_b(%08x)\n", _bootSegmentRomStart,
|
||||||
gDmaDataTable[0].vromEnd);
|
gDmaDataTable[0].vromEnd);
|
||||||
Fault_AddHungupAndCrash("../z_std_dma.c", 1055);
|
Fault_AddHungupAndCrash(__FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -41,10 +41,10 @@ void func_800C0F28(PreRender* this, Gfx** gfxp, void* buf, void* bufSave) {
|
||||||
s32 x2;
|
s32 x2;
|
||||||
s32 dx;
|
s32 dx;
|
||||||
|
|
||||||
LogUtils_CheckNullPointer("this", this, "../PreRender.c", 215);
|
LogUtils_CheckNullPointer("this", this, __FILE__, __LINE__);
|
||||||
LogUtils_CheckNullPointer("glistpp", gfxp, "../PreRender.c", 216);
|
LogUtils_CheckNullPointer("glistpp", gfxp, __FILE__, __LINE__);
|
||||||
gfx = *gfxp;
|
gfx = *gfxp;
|
||||||
LogUtils_CheckNullPointer("glistp", gfx, "../PreRender.c", 218);
|
LogUtils_CheckNullPointer("glistp", gfx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPPipeSync(gfx++);
|
gDPPipeSync(gfx++);
|
||||||
gDPSetOtherMode(gfx++,
|
gDPSetOtherMode(gfx++,
|
||||||
|
@ -89,10 +89,10 @@ void func_800C1258(PreRender* this, Gfx** gfxp) {
|
||||||
s32 y2;
|
s32 y2;
|
||||||
s32 dy;
|
s32 dy;
|
||||||
|
|
||||||
LogUtils_CheckNullPointer("this", this, "../PreRender.c", 278);
|
LogUtils_CheckNullPointer("this", this, __FILE__, __LINE__);
|
||||||
LogUtils_CheckNullPointer("glistpp", gfxp, "../PreRender.c", 279);
|
LogUtils_CheckNullPointer("glistpp", gfxp, __FILE__, __LINE__);
|
||||||
gfx = *gfxp;
|
gfx = *gfxp;
|
||||||
LogUtils_CheckNullPointer("glistp", gfx, "../PreRender.c", 281);
|
LogUtils_CheckNullPointer("glistp", gfx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPPipeSync(gfx++);
|
gDPPipeSync(gfx++);
|
||||||
gDPSetOtherMode(gfx++,
|
gDPSetOtherMode(gfx++,
|
||||||
|
@ -139,10 +139,10 @@ void func_800C170C(PreRender* this, Gfx** gfxp, void* fbuf, void* fbufSave, u32
|
||||||
s32 x2;
|
s32 x2;
|
||||||
s32 dx;
|
s32 dx;
|
||||||
|
|
||||||
LogUtils_CheckNullPointer("this", this, "../PreRender.c", 343);
|
LogUtils_CheckNullPointer("this", this, __FILE__, __LINE__);
|
||||||
LogUtils_CheckNullPointer("glistpp", gfxp, "../PreRender.c", 344);
|
LogUtils_CheckNullPointer("glistpp", gfxp, __FILE__, __LINE__);
|
||||||
gfx = *gfxp;
|
gfx = *gfxp;
|
||||||
LogUtils_CheckNullPointer("glistp", gfx, "../PreRender.c", 346);
|
LogUtils_CheckNullPointer("glistp", gfx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPPipeSync(gfx++);
|
gDPPipeSync(gfx++);
|
||||||
gDPSetOtherMode(gfx++,
|
gDPSetOtherMode(gfx++,
|
||||||
|
@ -195,10 +195,10 @@ void func_800C1B24(PreRender* this, Gfx** gfxp, void* fbuf, void* cvgSave) {
|
||||||
s32 x2;
|
s32 x2;
|
||||||
s32 dx;
|
s32 dx;
|
||||||
|
|
||||||
LogUtils_CheckNullPointer("this", this, "../PreRender.c", 422);
|
LogUtils_CheckNullPointer("this", this, __FILE__, __LINE__);
|
||||||
LogUtils_CheckNullPointer("glistpp", gfxp, "../PreRender.c", 423);
|
LogUtils_CheckNullPointer("glistpp", gfxp, __FILE__, __LINE__);
|
||||||
gfx = *gfxp;
|
gfx = *gfxp;
|
||||||
LogUtils_CheckNullPointer("glistp", gfx, "../PreRender.c", 425);
|
LogUtils_CheckNullPointer("glistp", gfx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPPipeSync(gfx++);
|
gDPPipeSync(gfx++);
|
||||||
gDPSetOtherMode(gfx++,
|
gDPSetOtherMode(gfx++,
|
||||||
|
@ -239,8 +239,8 @@ void func_800C1B24(PreRender* this, Gfx** gfxp, void* fbuf, void* cvgSave) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_800C1E9C(PreRender* this, Gfx** gfxp) {
|
void func_800C1E9C(PreRender* this, Gfx** gfxp) {
|
||||||
LogUtils_CheckNullPointer("this->zbuf_save", this->zbufSave, "../PreRender.c", 481);
|
LogUtils_CheckNullPointer("this->zbuf_save", this->zbufSave, __FILE__, __LINE__);
|
||||||
LogUtils_CheckNullPointer("this->zbuf", this->zbuf, "../PreRender.c", 482);
|
LogUtils_CheckNullPointer("this->zbuf", this->zbuf, __FILE__, __LINE__);
|
||||||
|
|
||||||
if ((this->zbufSave != NULL) && (this->zbuf != NULL)) {
|
if ((this->zbufSave != NULL) && (this->zbuf != NULL)) {
|
||||||
func_800C0F28(this, gfxp, this->zbuf, this->zbufSave);
|
func_800C0F28(this, gfxp, this->zbuf, this->zbufSave);
|
||||||
|
@ -248,8 +248,8 @@ void func_800C1E9C(PreRender* this, Gfx** gfxp) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_800C1F20(PreRender* this, Gfx** gfxp) {
|
void func_800C1F20(PreRender* this, Gfx** gfxp) {
|
||||||
LogUtils_CheckNullPointer("this->fbuf_save", this->fbufSave, "../PreRender.c", 495);
|
LogUtils_CheckNullPointer("this->fbuf_save", this->fbufSave, __FILE__, __LINE__);
|
||||||
LogUtils_CheckNullPointer("this->fbuf", this->fbuf, "../PreRender.c", 496);
|
LogUtils_CheckNullPointer("this->fbuf", this->fbuf, __FILE__, __LINE__);
|
||||||
|
|
||||||
if ((this->fbufSave != NULL) && (this->fbuf != NULL)) {
|
if ((this->fbufSave != NULL) && (this->fbuf != NULL)) {
|
||||||
func_800C1AE8(this, gfxp, this->fbuf, this->fbufSave);
|
func_800C1AE8(this, gfxp, this->fbuf, this->fbufSave);
|
||||||
|
@ -275,7 +275,7 @@ void func_800C1FA4(PreRender* this, Gfx** gfxp) {
|
||||||
|
|
||||||
void func_800C20B4(PreRender* this, Gfx** gfxp) {
|
void func_800C20B4(PreRender* this, Gfx** gfxp) {
|
||||||
func_800C1FA4(this, gfxp);
|
func_800C1FA4(this, gfxp);
|
||||||
LogUtils_CheckNullPointer("this->cvg_save", this->cvgSave, "../PreRender.c", 532);
|
LogUtils_CheckNullPointer("this->cvg_save", this->cvgSave, __FILE__, __LINE__);
|
||||||
if (this->cvgSave != NULL) {
|
if (this->cvgSave != NULL) {
|
||||||
func_800C1B24(this, gfxp, this->fbuf, this->cvgSave);
|
func_800C1B24(this, gfxp, this->fbuf, this->cvgSave);
|
||||||
}
|
}
|
||||||
|
@ -293,10 +293,10 @@ void func_800C213C(PreRender* this, Gfx** gfxp) {
|
||||||
s32 rtile = 1;
|
s32 rtile = 1;
|
||||||
|
|
||||||
if (this->cvgSave != NULL) {
|
if (this->cvgSave != NULL) {
|
||||||
LogUtils_CheckNullPointer("this", this, "../PreRender.c", 563);
|
LogUtils_CheckNullPointer("this", this, __FILE__, __LINE__);
|
||||||
LogUtils_CheckNullPointer("glistpp", gfxp, "../PreRender.c", 564);
|
LogUtils_CheckNullPointer("glistpp", gfxp, __FILE__, __LINE__);
|
||||||
gfx = *gfxp;
|
gfx = *gfxp;
|
||||||
LogUtils_CheckNullPointer("glistp", gfx, "../PreRender.c", 566);
|
LogUtils_CheckNullPointer("glistp", gfx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPPipeSync(gfx++);
|
gDPPipeSync(gfx++);
|
||||||
gDPSetEnvColor(gfx++, 255, 255, 255, 32);
|
gDPSetEnvColor(gfx++, 255, 255, 255, 32);
|
||||||
|
|
|
@ -40,7 +40,7 @@ void FlagSet_Update(GlobalContext* globalCtx) {
|
||||||
Gfx* gfx;
|
Gfx* gfx;
|
||||||
Gfx* polyOpa;
|
Gfx* polyOpa;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../flg_set.c", 131);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
{
|
{
|
||||||
GfxPrint printer;
|
GfxPrint printer;
|
||||||
|
@ -148,5 +148,5 @@ void FlagSet_Update(GlobalContext* globalCtx) {
|
||||||
globalCtx->pauseCtx.debugState = 0;
|
globalCtx->pauseCtx.debugState = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../flg_set.c", 241);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
|
@ -143,7 +143,7 @@ void GameState_Draw(GameState* gameState, GraphicsContext* gfxCtx) {
|
||||||
Gfx* newDList;
|
Gfx* newDList;
|
||||||
Gfx* polyOpaP;
|
Gfx* polyOpaP;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../game.c", 746);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
newDList = Graph_GfxPlusOne(polyOpaP = POLY_OPA_DISP);
|
newDList = Graph_GfxPlusOne(polyOpaP = POLY_OPA_DISP);
|
||||||
gSPDisplayList(OVERLAY_DISP++, newDList);
|
gSPDisplayList(OVERLAY_DISP++, newDList);
|
||||||
|
@ -184,7 +184,7 @@ void GameState_Draw(GameState* gameState, GraphicsContext* gfxCtx) {
|
||||||
|
|
||||||
if (1) {}
|
if (1) {}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../game.c", 800);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80063D7C(gfxCtx);
|
func_80063D7C(gfxCtx);
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ void GameState_Draw(GameState* gameState, GraphicsContext* gfxCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameState_SetFrameBuffer(GraphicsContext* gfxCtx) {
|
void GameState_SetFrameBuffer(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../game.c", 814);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPSegment(POLY_OPA_DISP++, 0, 0);
|
gSPSegment(POLY_OPA_DISP++, 0, 0);
|
||||||
gSPSegment(POLY_OPA_DISP++, 0xF, gfxCtx->curFrameBuffer);
|
gSPSegment(POLY_OPA_DISP++, 0xF, gfxCtx->curFrameBuffer);
|
||||||
|
@ -207,14 +207,14 @@ void GameState_SetFrameBuffer(GraphicsContext* gfxCtx) {
|
||||||
gSPSegment(OVERLAY_DISP++, 0xF, gfxCtx->curFrameBuffer);
|
gSPSegment(OVERLAY_DISP++, 0xF, gfxCtx->curFrameBuffer);
|
||||||
gSPSegment(OVERLAY_DISP++, 0xE, gZBuffer);
|
gSPSegment(OVERLAY_DISP++, 0xE, gZBuffer);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../game.c", 838);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_800C49F4(GraphicsContext* gfxCtx) {
|
void func_800C49F4(GraphicsContext* gfxCtx) {
|
||||||
Gfx* newDlist;
|
Gfx* newDlist;
|
||||||
Gfx* polyOpaP;
|
Gfx* polyOpaP;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../game.c", 846);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
newDlist = Graph_GfxPlusOne(polyOpaP = POLY_OPA_DISP);
|
newDlist = Graph_GfxPlusOne(polyOpaP = POLY_OPA_DISP);
|
||||||
gSPDisplayList(OVERLAY_DISP++, newDlist);
|
gSPDisplayList(OVERLAY_DISP++, newDlist);
|
||||||
|
@ -225,7 +225,7 @@ void func_800C49F4(GraphicsContext* gfxCtx) {
|
||||||
|
|
||||||
if (1) {}
|
if (1) {}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../game.c", 865);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PadMgr_RequestPadData(PadMgr*, Input*, s32);
|
void PadMgr_RequestPadData(PadMgr*, Input*, s32);
|
||||||
|
@ -435,14 +435,14 @@ void GameState_InitArena(GameState* gameState, size_t size) {
|
||||||
void* arena;
|
void* arena;
|
||||||
|
|
||||||
osSyncPrintf("ハイラル確保 サイズ=%u バイト\n"); // "Hyrule reserved size = %u bytes"
|
osSyncPrintf("ハイラル確保 サイズ=%u バイト\n"); // "Hyrule reserved size = %u bytes"
|
||||||
arena = GameAlloc_MallocDebug(&gameState->alloc, size, "../game.c", 992);
|
arena = GameAlloc_MallocDebug(&gameState->alloc, size, __FILE__, __LINE__);
|
||||||
if (arena != NULL) {
|
if (arena != NULL) {
|
||||||
THA_Ct(&gameState->tha, arena, size);
|
THA_Ct(&gameState->tha, arena, size);
|
||||||
osSyncPrintf("ハイラル確保成功\n"); // "Successful Hyral"
|
osSyncPrintf("ハイラル確保成功\n"); // "Successful Hyral"
|
||||||
} else {
|
} else {
|
||||||
THA_Ct(&gameState->tha, NULL, 0);
|
THA_Ct(&gameState->tha, NULL, 0);
|
||||||
osSyncPrintf("ハイラル確保失敗\n"); // "Failure to secure Hyrule"
|
osSyncPrintf("ハイラル確保失敗\n"); // "Failure to secure Hyrule"
|
||||||
Fault_AddHungupAndCrash("../game.c", 999);
|
Fault_AddHungupAndCrash(__FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -470,7 +470,7 @@ void GameState_Realloc(GameState* gameState, size_t size) {
|
||||||
}
|
}
|
||||||
|
|
||||||
osSyncPrintf("ハイラル再確保 サイズ=%u バイト\n", size); // "Hyral reallocate size = %u bytes"
|
osSyncPrintf("ハイラル再確保 サイズ=%u バイト\n", size); // "Hyral reallocate size = %u bytes"
|
||||||
gameArena = GameAlloc_MallocDebug(alloc, size, "../game.c", 1033);
|
gameArena = GameAlloc_MallocDebug(alloc, size, __FILE__, __LINE__);
|
||||||
if (gameArena != NULL) {
|
if (gameArena != NULL) {
|
||||||
THA_Ct(&gameState->tha, gameArena, size);
|
THA_Ct(&gameState->tha, gameArena, size);
|
||||||
osSyncPrintf("ハイラル再確保成功\n"); // "Successful reacquisition of Hyrule"
|
osSyncPrintf("ハイラル再確保成功\n"); // "Successful reacquisition of Hyrule"
|
||||||
|
@ -478,7 +478,7 @@ void GameState_Realloc(GameState* gameState, size_t size) {
|
||||||
THA_Ct(&gameState->tha, NULL, 0);
|
THA_Ct(&gameState->tha, NULL, 0);
|
||||||
osSyncPrintf("ハイラル再確保失敗\n"); // "Failure to secure Hyral"
|
osSyncPrintf("ハイラル再確保失敗\n"); // "Failure to secure Hyral"
|
||||||
SystemArena_Display();
|
SystemArena_Display();
|
||||||
Fault_AddHungupAndCrash("../game.c", 1044);
|
Fault_AddHungupAndCrash(__FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -516,7 +516,7 @@ void GameState_Init(GameState* gameState, GameStateFunc init, GraphicsContext* g
|
||||||
osSyncPrintf("init 処理時間 %d us\n", OS_CYCLES_TO_USEC(endTime - startTime));
|
osSyncPrintf("init 処理時間 %d us\n", OS_CYCLES_TO_USEC(endTime - startTime));
|
||||||
|
|
||||||
startTime = endTime;
|
startTime = endTime;
|
||||||
LogUtils_CheckNullPointer("this->cleanup", gameState->destroy, "../game.c", 1088);
|
LogUtils_CheckNullPointer("this->cleanup", gameState->destroy, __FILE__, __LINE__);
|
||||||
func_800ACE70(&D_801664F0);
|
func_800ACE70(&D_801664F0);
|
||||||
func_800AD920(&D_80166500);
|
func_800AD920(&D_80166500);
|
||||||
VisMono_Init(&sMonoColors);
|
VisMono_Init(&sMonoColors);
|
||||||
|
@ -541,7 +541,7 @@ void GameState_Destroy(GameState* gameState) {
|
||||||
func_800C3C20();
|
func_800C3C20();
|
||||||
func_800F3054();
|
func_800F3054();
|
||||||
osRecvMesg(&gameState->gfxCtx->queue, NULL, OS_MESG_BLOCK);
|
osRecvMesg(&gameState->gfxCtx->queue, NULL, OS_MESG_BLOCK);
|
||||||
LogUtils_CheckNullPointer("this->cleanup", gameState->destroy, "../game.c", 1139);
|
LogUtils_CheckNullPointer("this->cleanup", gameState->destroy, __FILE__, __LINE__);
|
||||||
if (gameState->destroy != NULL) {
|
if (gameState->destroy != NULL) {
|
||||||
gameState->destroy(gameState);
|
gameState->destroy(gameState);
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,7 +134,7 @@ GameStateOverlay* Graph_GetNextGameState(GameState* gameState) {
|
||||||
return &gGameStateOverlayTable[5];
|
return &gGameStateOverlayTable[5];
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_ADDRESS("game_init_func", gameStateInitFunc, "../graph.c", 696);
|
LOG_ADDRESS("game_init_func", gameStateInitFunc, __FILE__, __LINE__);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -225,9 +225,9 @@ void Graph_TaskSet00(GraphicsContext* gfxCtx) {
|
||||||
task->output_buff_size = (u64*)((u8*)gGfxSPTaskOutputBuffer + sizeof(gGfxSPTaskOutputBuffer));
|
task->output_buff_size = (u64*)((u8*)gGfxSPTaskOutputBuffer + sizeof(gGfxSPTaskOutputBuffer));
|
||||||
task->data_ptr = (u64*)gfxCtx->workBuffer;
|
task->data_ptr = (u64*)gfxCtx->workBuffer;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../graph.c", 828);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
task->data_size = (uintptr_t)WORK_DISP - (uintptr_t)gfxCtx->workBuffer;
|
task->data_size = (uintptr_t)WORK_DISP - (uintptr_t)gfxCtx->workBuffer;
|
||||||
CLOSE_DISPS(gfxCtx, "../graph.c", 830);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
{ s32 pad2; } // Necessary to match stack usage
|
{ s32 pad2; } // Necessary to match stack usage
|
||||||
|
|
||||||
|
@ -272,29 +272,29 @@ void Graph_Update(GraphicsContext* gfxCtx, GameState* gameState) {
|
||||||
gameState->unk_A0 = 0;
|
gameState->unk_A0 = 0;
|
||||||
Graph_InitTHGA(gfxCtx);
|
Graph_InitTHGA(gfxCtx);
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../graph.c", 966);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPNoOpString(WORK_DISP++, "WORK_DISP 開始", 0);
|
gDPNoOpString(WORK_DISP++, "WORK_DISP 開始", 0);
|
||||||
gDPNoOpString(POLY_OPA_DISP++, "POLY_OPA_DISP 開始", 0);
|
gDPNoOpString(POLY_OPA_DISP++, "POLY_OPA_DISP 開始", 0);
|
||||||
gDPNoOpString(POLY_XLU_DISP++, "POLY_XLU_DISP 開始", 0);
|
gDPNoOpString(POLY_XLU_DISP++, "POLY_XLU_DISP 開始", 0);
|
||||||
gDPNoOpString(OVERLAY_DISP++, "OVERLAY_DISP 開始", 0);
|
gDPNoOpString(OVERLAY_DISP++, "OVERLAY_DISP 開始", 0);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../graph.c", 975);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
GameState_ReqPadData(gameState);
|
GameState_ReqPadData(gameState);
|
||||||
GameState_Update(gameState);
|
GameState_Update(gameState);
|
||||||
Debug_Draw();
|
Debug_Draw();
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../graph.c", 987);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPNoOpString(WORK_DISP++, "WORK_DISP 終了", 0);
|
gDPNoOpString(WORK_DISP++, "WORK_DISP 終了", 0);
|
||||||
gDPNoOpString(POLY_OPA_DISP++, "POLY_OPA_DISP 終了", 0);
|
gDPNoOpString(POLY_OPA_DISP++, "POLY_OPA_DISP 終了", 0);
|
||||||
gDPNoOpString(POLY_XLU_DISP++, "POLY_XLU_DISP 終了", 0);
|
gDPNoOpString(POLY_XLU_DISP++, "POLY_XLU_DISP 終了", 0);
|
||||||
gDPNoOpString(OVERLAY_DISP++, "OVERLAY_DISP 終了", 0);
|
gDPNoOpString(OVERLAY_DISP++, "OVERLAY_DISP 終了", 0);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../graph.c", 996);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../graph.c", 999);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPBranchList(WORK_DISP++, gfxCtx->polyOpaBuffer);
|
gSPBranchList(WORK_DISP++, gfxCtx->polyOpaBuffer);
|
||||||
gSPBranchList(POLY_OPA_DISP++, gfxCtx->polyXluBuffer);
|
gSPBranchList(POLY_OPA_DISP++, gfxCtx->polyXluBuffer);
|
||||||
|
@ -305,7 +305,7 @@ void Graph_Update(GraphicsContext* gfxCtx, GameState* gameState) {
|
||||||
gDPFullSync(OVERLAY_DISP++);
|
gDPFullSync(OVERLAY_DISP++);
|
||||||
gSPEndDisplayList(OVERLAY_DISP++);
|
gSPEndDisplayList(OVERLAY_DISP++);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../graph.c", 1028);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (HREG(80) == 10 && HREG(93) == 2) {
|
if (HREG(80) == 10 && HREG(93) == 2) {
|
||||||
HREG(80) = 7;
|
HREG(80) = 7;
|
||||||
|
@ -344,14 +344,14 @@ void Graph_Update(GraphicsContext* gfxCtx, GameState* gameState) {
|
||||||
osSyncPrintf("%c", 7);
|
osSyncPrintf("%c", 7);
|
||||||
// "Dynamic area head is destroyed"
|
// "Dynamic area head is destroyed"
|
||||||
osSyncPrintf(VT_COL(RED, WHITE) "ダイナミック領域先頭が破壊されています\n" VT_RST);
|
osSyncPrintf(VT_COL(RED, WHITE) "ダイナミック領域先頭が破壊されています\n" VT_RST);
|
||||||
Fault_AddHungupAndCrash("../graph.c", 1070);
|
Fault_AddHungupAndCrash(__FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
if (pool->tailMagic != GFXPOOL_TAIL_MAGIC) {
|
if (pool->tailMagic != GFXPOOL_TAIL_MAGIC) {
|
||||||
problem = true;
|
problem = true;
|
||||||
osSyncPrintf("%c", 7);
|
osSyncPrintf("%c", 7);
|
||||||
// "Dynamic region tail is destroyed"
|
// "Dynamic region tail is destroyed"
|
||||||
osSyncPrintf(VT_COL(RED, WHITE) "ダイナミック領域末尾が破壊されています\n" VT_RST);
|
osSyncPrintf(VT_COL(RED, WHITE) "ダイナミック領域末尾が破壊されています\n" VT_RST);
|
||||||
Fault_AddHungupAndCrash("../graph.c", 1076);
|
Fault_AddHungupAndCrash(__FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -458,7 +458,7 @@ static void RunFrame()
|
||||||
size = runFrameContext.ovl->instanceSize;
|
size = runFrameContext.ovl->instanceSize;
|
||||||
osSyncPrintf("クラスサイズ=%dバイト\n", size); // "Class size = %d bytes"
|
osSyncPrintf("クラスサイズ=%dバイト\n", size); // "Class size = %d bytes"
|
||||||
|
|
||||||
runFrameContext.gameState = SystemArena_MallocDebug(size, "../graph.c", 1196);
|
runFrameContext.gameState = SystemArena_MallocDebug(size, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (!runFrameContext.gameState)
|
if (!runFrameContext.gameState)
|
||||||
{
|
{
|
||||||
|
@ -499,7 +499,7 @@ static void RunFrame()
|
||||||
|
|
||||||
runFrameContext.nextOvl = Graph_GetNextGameState(runFrameContext.gameState);
|
runFrameContext.nextOvl = Graph_GetNextGameState(runFrameContext.gameState);
|
||||||
GameState_Destroy(runFrameContext.gameState);
|
GameState_Destroy(runFrameContext.gameState);
|
||||||
SystemArena_FreeDebug(runFrameContext.gameState, "../graph.c", 1227);
|
SystemArena_FreeDebug(runFrameContext.gameState, __FILE__, __LINE__);
|
||||||
Overlay_FreeGameState(runFrameContext.ovl);
|
Overlay_FreeGameState(runFrameContext.ovl);
|
||||||
}
|
}
|
||||||
Graph_Destroy(&runFrameContext.gfxCtx);
|
Graph_Destroy(&runFrameContext.gfxCtx);
|
||||||
|
|
|
@ -19,9 +19,9 @@ u32 sIrqMgrRetraceCount = 0;
|
||||||
void IrqMgr_AddClient(IrqMgr* this, IrqMgrClient* c, OSMesgQueue* msgQ) {
|
void IrqMgr_AddClient(IrqMgr* this, IrqMgrClient* c, OSMesgQueue* msgQ) {
|
||||||
OSIntMask prevInt;
|
OSIntMask prevInt;
|
||||||
|
|
||||||
LogUtils_CheckNullPointer("this", this, "../irqmgr.c", 96);
|
LogUtils_CheckNullPointer("this", this, __FILE__, __LINE__);
|
||||||
LogUtils_CheckNullPointer("c", c, "../irqmgr.c", 97);
|
LogUtils_CheckNullPointer("c", c, __FILE__, __LINE__);
|
||||||
LogUtils_CheckNullPointer("msgQ", msgQ, "../irqmgr.c", 98);
|
LogUtils_CheckNullPointer("msgQ", msgQ, __FILE__, __LINE__);
|
||||||
|
|
||||||
prevInt = osSetIntMask(1);
|
prevInt = osSetIntMask(1);
|
||||||
|
|
||||||
|
@ -45,8 +45,8 @@ void IrqMgr_RemoveClient(IrqMgr* this, IrqMgrClient* c) {
|
||||||
IrqMgrClient* lastIter = NULL;
|
IrqMgrClient* lastIter = NULL;
|
||||||
OSIntMask prevInt;
|
OSIntMask prevInt;
|
||||||
|
|
||||||
LogUtils_CheckNullPointer("this", this, "../irqmgr.c", 129);
|
LogUtils_CheckNullPointer("this", this, __FILE__, __LINE__);
|
||||||
LogUtils_CheckNullPointer("c", c, "../irqmgr.c", 130);
|
LogUtils_CheckNullPointer("c", c, __FILE__, __LINE__);
|
||||||
|
|
||||||
prevInt = osSetIntMask(1);
|
prevInt = osSetIntMask(1);
|
||||||
|
|
||||||
|
@ -214,8 +214,8 @@ void IrqMgr_ThreadEntry(void* arg0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void IrqMgr_Init(IrqMgr* this, void* stack, OSPri pri, u8 retraceCount) {
|
void IrqMgr_Init(IrqMgr* this, void* stack, OSPri pri, u8 retraceCount) {
|
||||||
LogUtils_CheckNullPointer("this", this, "../irqmgr.c", 346);
|
LogUtils_CheckNullPointer("this", this, __FILE__, __LINE__);
|
||||||
LogUtils_CheckNullPointer("stack", stack, "../irqmgr.c", 347);
|
LogUtils_CheckNullPointer("stack", stack, __FILE__, __LINE__);
|
||||||
|
|
||||||
this->clients = NULL;
|
this->clients = NULL;
|
||||||
this->retraceMsg.type = OS_SC_RETRACE_MSG;
|
this->retraceMsg.type = OS_SC_RETRACE_MSG;
|
||||||
|
|
|
@ -154,7 +154,7 @@ void PadMgr_RumbleControl(PadMgr* padMgr) {
|
||||||
} else if (var4 == 11) {
|
} else if (var4 == 11) {
|
||||||
padMgr->pakType[i] = 2;
|
padMgr->pakType[i] = 2;
|
||||||
} else if (var4 == 4) {
|
} else if (var4 == 4) {
|
||||||
LOG_NUM("++errcnt", ++errcnt, "../padmgr.c", 282);
|
LOG_NUM("++errcnt", ++errcnt, __FILE__, __LINE__);
|
||||||
osSyncPrintf(VT_FGCOL(YELLOW));
|
osSyncPrintf(VT_FGCOL(YELLOW));
|
||||||
// "Controller pack communication error"
|
// "Controller pack communication error"
|
||||||
osSyncPrintf("padmgr: %dコン: %s\n", i + 1, "コントローラパックの通信エラー");
|
osSyncPrintf("padmgr: %dコン: %s\n", i + 1, "コントローラパックの通信エラー");
|
||||||
|
@ -237,7 +237,7 @@ void PadMgr_ProcessInputs(PadMgr* padMgr) {
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
input->cur = input->prev;
|
input->cur = input->prev;
|
||||||
LOG_NUM("this->Key_switch[i]", padMgr->ctrlrIsConnected[i], "../padmgr.c", 380);
|
LOG_NUM("this->Key_switch[i]", padMgr->ctrlrIsConnected[i], __FILE__, __LINE__);
|
||||||
osSyncPrintf(VT_FGCOL(YELLOW));
|
osSyncPrintf(VT_FGCOL(YELLOW));
|
||||||
// "Overrun error occurred"
|
// "Overrun error occurred"
|
||||||
osSyncPrintf("padmgr: %dコン: %s\n", i + 1, "オーバーランエラーが発生");
|
osSyncPrintf("padmgr: %dコン: %s\n", i + 1, "オーバーランエラーが発生");
|
||||||
|
@ -259,8 +259,8 @@ void PadMgr_ProcessInputs(PadMgr* padMgr) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
LOG_HEX("padnow1->errno", padnow1->err_no, "../padmgr.c", 396);
|
LOG_HEX("padnow1->errno", padnow1->err_no, __FILE__, __LINE__);
|
||||||
Fault_AddHungupAndCrash("../padmgr.c", 397);
|
Fault_AddHungupAndCrash(__FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
buttonDiff = input->prev.button ^ input->cur.button;
|
buttonDiff = input->prev.button ^ input->cur.button;
|
||||||
|
@ -325,7 +325,7 @@ void PadMgr_HandleRetraceMsg(PadMgr* padMgr) {
|
||||||
if (padMgr->padStatus[i].type == CONT_TYPE_NORMAL) {
|
if (padMgr->padStatus[i].type == CONT_TYPE_NORMAL) {
|
||||||
mask |= 1 << i;
|
mask |= 1 << i;
|
||||||
} else {
|
} else {
|
||||||
//LOG_HEX("this->pad_status[i].type", padMgr->padStatus[i].type, "../padmgr.c", 458);
|
//LOG_HEX("this->pad_status[i].type", padMgr->padStatus[i].type, __FILE__, __LINE__);
|
||||||
// "An unknown type of controller is connected"
|
// "An unknown type of controller is connected"
|
||||||
//osSyncPrintf("知らない種類のコントローラが接続されています\n");
|
//osSyncPrintf("知らない種類のコントローラが接続されています\n");
|
||||||
}
|
}
|
||||||
|
@ -400,7 +400,7 @@ void PadMgr_ThreadEntry(PadMgr* padMgr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
osRecvMesg(&padMgr->interruptMsgQ, (OSMesg*)&mesg, OS_MESG_BLOCK);
|
osRecvMesg(&padMgr->interruptMsgQ, (OSMesg*)&mesg, OS_MESG_BLOCK);
|
||||||
//LogUtils_CheckNullPointer("msg", mesg, "../padmgr.c", 563);
|
//LogUtils_CheckNullPointer("msg", mesg, __FILE__, __LINE__);
|
||||||
|
|
||||||
PadMgr_HandleRetraceMsg(padMgr);
|
PadMgr_HandleRetraceMsg(padMgr);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -29,7 +29,7 @@ SpeedMeterTimeEntry sSpeedMeterTimeEntryArray[] = {
|
||||||
gDPPipeSync(gfx);
|
gDPPipeSync(gfx);
|
||||||
|
|
||||||
void SpeedMeter_InitImpl(SpeedMeter* this, u32 arg1, u32 y) {
|
void SpeedMeter_InitImpl(SpeedMeter* this, u32 arg1, u32 y) {
|
||||||
LogUtils_CheckNullPointer("this", this, "../speed_meter.c", 181);
|
LogUtils_CheckNullPointer("this", this, __FILE__, __LINE__);
|
||||||
this->unk_18 = arg1;
|
this->unk_18 = arg1;
|
||||||
this->y = y;
|
this->y = y;
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ void SpeedMeter_DrawTimeEntries(SpeedMeter* this, GraphicsContext* gfxCtx) {
|
||||||
uly = this->y;
|
uly = this->y;
|
||||||
lry = this->y + 2;
|
lry = this->y + 2;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../speed_meter.c", 225);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
/*! @bug if gIrqMgrRetraceTime is 0, CLOSE_DISPS will never be reached */
|
/*! @bug if gIrqMgrRetraceTime is 0, CLOSE_DISPS will never be reached */
|
||||||
if (gIrqMgrRetraceTime == 0) {
|
if (gIrqMgrRetraceTime == 0) {
|
||||||
|
@ -98,7 +98,7 @@ void SpeedMeter_DrawTimeEntries(SpeedMeter* this, GraphicsContext* gfxCtx) {
|
||||||
|
|
||||||
OVERLAY_DISP = gfx;
|
OVERLAY_DISP = gfx;
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../speed_meter.c", 276);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpeedMeter_InitAllocEntry(SpeedMeterAllocEntry* this, u32 maxval, u32 val, u16 backColor, u16 foreColor, u32 ulx,
|
void SpeedMeter_InitAllocEntry(SpeedMeterAllocEntry* this, u32 maxval, u32 val, u16 backColor, u16 foreColor, u32 ulx,
|
||||||
|
@ -120,10 +120,10 @@ void SpeedMeter_DrawAllocEntry(SpeedMeterAllocEntry* this, GraphicsContext* gfxC
|
||||||
|
|
||||||
if (this->maxval == 0) {
|
if (this->maxval == 0) {
|
||||||
osSyncPrintf(VT_FGCOL(RED));
|
osSyncPrintf(VT_FGCOL(RED));
|
||||||
LOG_NUM("this->maxval", this->maxval, "../speed_meter.c", 313);
|
LOG_NUM("this->maxval", this->maxval, __FILE__, __LINE__);
|
||||||
osSyncPrintf(VT_RST);
|
osSyncPrintf(VT_RST);
|
||||||
} else {
|
} else {
|
||||||
OPEN_DISPS(gfxCtx, "../speed_meter.c", 318);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
View_Init(&view, gfxCtx);
|
View_Init(&view, gfxCtx);
|
||||||
view.flags = 0xA;
|
view.flags = 0xA;
|
||||||
|
@ -146,7 +146,7 @@ void SpeedMeter_DrawAllocEntry(SpeedMeterAllocEntry* this, GraphicsContext* gfxC
|
||||||
gDPPipeSync(gfx++);
|
gDPPipeSync(gfx++);
|
||||||
|
|
||||||
OVERLAY_DISP = gfx;
|
OVERLAY_DISP = gfx;
|
||||||
CLOSE_DISPS(gfxCtx, "../speed_meter.c", 339);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@ void Overlay_FreeGameState(GameStateOverlay* overlayEntry) {
|
||||||
overlayEntry->unk_24 = NULL;
|
overlayEntry->unk_24 = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
SystemArena_FreeDebug(overlayEntry->loadedRamAddr, "../z_DLF.c", 149);
|
SystemArena_FreeDebug(overlayEntry->loadedRamAddr, __FILE__, __LINE__);
|
||||||
overlayEntry->loadedRamAddr = NULL;
|
overlayEntry->loadedRamAddr = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,7 +93,7 @@ void ActorShadow_Draw(Actor* actor, Lights* lights, GlobalContext* globalCtx, Gf
|
||||||
temp1 = actor->world.pos.y - actor->floorHeight;
|
temp1 = actor->world.pos.y - actor->floorHeight;
|
||||||
|
|
||||||
if (temp1 >= -50.0f && temp1 < 500.0f) {
|
if (temp1 >= -50.0f && temp1 < 500.0f) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 1553);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
POLY_OPA_DISP = Gfx_CallSetupDL(POLY_OPA_DISP, 0x2C);
|
POLY_OPA_DISP = Gfx_CallSetupDL(POLY_OPA_DISP, 0x2C);
|
||||||
|
|
||||||
|
@ -120,11 +120,11 @@ void ActorShadow_Draw(Actor* actor, Lights* lights, GlobalContext* globalCtx, Gf
|
||||||
temp2 = (1.0f - (temp1 * (1.0f / 350))) * actor->shape.shadowScale;
|
temp2 = (1.0f - (temp1 * (1.0f / 350))) * actor->shape.shadowScale;
|
||||||
Matrix_Scale(actor->scale.x * temp2, 1.0f, actor->scale.z * temp2, MTXMODE_APPLY);
|
Matrix_Scale(actor->scale.x * temp2, 1.0f, actor->scale.z * temp2, MTXMODE_APPLY);
|
||||||
|
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_actor.c", 1588),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, dlist);
|
gSPDisplayList(POLY_OPA_DISP++, dlist);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 1594);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -148,7 +148,7 @@ void ActorShadow_DrawFoot(GlobalContext* globalCtx, Light* light, MtxF* arg2, s3
|
||||||
f32 sp58;
|
f32 sp58;
|
||||||
s32 pad2[2];
|
s32 pad2[2];
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 1661);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 0, 0, 0,
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 0, 0, 0,
|
||||||
(u32)(((arg3 * 0.00005f) > 1.0f ? 1.0f : (arg3 * 0.00005f)) * arg4) & 0xFF);
|
(u32)(((arg3 * 0.00005f) > 1.0f ? 1.0f : (arg3 * 0.00005f)) * arg4) & 0xFF);
|
||||||
|
@ -160,11 +160,11 @@ void ActorShadow_DrawFoot(GlobalContext* globalCtx, Light* light, MtxF* arg2, s3
|
||||||
Matrix_RotateY(sp58, MTXMODE_APPLY);
|
Matrix_RotateY(sp58, MTXMODE_APPLY);
|
||||||
Matrix_Scale(arg5, 1.0f, arg5 * arg6, MTXMODE_APPLY);
|
Matrix_Scale(arg5, 1.0f, arg5 * arg6, MTXMODE_APPLY);
|
||||||
|
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_actor.c", 1687),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, gFootShadowDL);
|
gSPDisplayList(POLY_OPA_DISP++, gFootShadowDL);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 1693);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ActorShadow_DrawFeet(Actor* actor, Lights* lights, GlobalContext* globalCtx) {
|
void ActorShadow_DrawFeet(Actor* actor, Lights* lights, GlobalContext* globalCtx) {
|
||||||
|
@ -200,7 +200,7 @@ void ActorShadow_DrawFeet(Actor* actor, Lights* lights, GlobalContext* globalCtx
|
||||||
Vec3f* feetPosPtr = actor->shape.feetPos;
|
Vec3f* feetPosPtr = actor->shape.feetPos;
|
||||||
f32* floorHeightPtr = floorHeight;
|
f32* floorHeightPtr = floorHeight;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 1741);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
POLY_OPA_DISP = Gfx_CallSetupDL(POLY_OPA_DISP, 0x2C);
|
POLY_OPA_DISP = Gfx_CallSetupDL(POLY_OPA_DISP, 0x2C);
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ void ActorShadow_DrawFeet(Actor* actor, Lights* lights, GlobalContext* globalCtx
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 1831);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -416,7 +416,7 @@ void func_8002C0C0(TargetContext* targetCtx, Actor* actor, GlobalContext* global
|
||||||
void func_8002C124(TargetContext* targetCtx, GlobalContext* globalCtx) {
|
void func_8002C124(TargetContext* targetCtx, GlobalContext* globalCtx) {
|
||||||
Actor* actor = targetCtx->targetedActor;
|
Actor* actor = targetCtx->targetedActor;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 2029);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (targetCtx->unk_48 != 0) {
|
if (targetCtx->unk_48 != 0) {
|
||||||
TargetContextEntry* entry;
|
TargetContextEntry* entry;
|
||||||
|
@ -496,7 +496,7 @@ void func_8002C124(TargetContext* targetCtx, GlobalContext* globalCtx) {
|
||||||
Matrix_RotateZ(M_PI / 2, MTXMODE_APPLY);
|
Matrix_RotateZ(M_PI / 2, MTXMODE_APPLY);
|
||||||
Matrix_Push();
|
Matrix_Push();
|
||||||
Matrix_Translate(entry->unk_0C, entry->unk_0C, 0.0f, MTXMODE_APPLY);
|
Matrix_Translate(entry->unk_0C, entry->unk_0C, 0.0f, MTXMODE_APPLY);
|
||||||
gSPMatrix(OVERLAY_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_actor.c", 2116),
|
gSPMatrix(OVERLAY_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(OVERLAY_DISP++, gZTargetLockOnTriangleDL);
|
gSPDisplayList(OVERLAY_DISP++, gZTargetLockOnTriangleDL);
|
||||||
Matrix_Pop();
|
Matrix_Pop();
|
||||||
|
@ -525,13 +525,13 @@ void func_8002C124(TargetContext* targetCtx, GlobalContext* globalCtx) {
|
||||||
Matrix_Scale((iREG(27) + 35) / 1000.0f, (iREG(28) + 60) / 1000.0f, (iREG(29) + 50) / 1000.0f, MTXMODE_APPLY);
|
Matrix_Scale((iREG(27) + 35) / 1000.0f, (iREG(28) + 60) / 1000.0f, (iREG(29) + 50) / 1000.0f, MTXMODE_APPLY);
|
||||||
|
|
||||||
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0, naviColor->inner.r, naviColor->inner.g, naviColor->inner.b, 255);
|
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0, naviColor->inner.r, naviColor->inner.g, naviColor->inner.b, 255);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_actor.c", 2153),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, 2153),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, gZTargetArrowDL);
|
gSPDisplayList(POLY_XLU_DISP++, gZTargetArrowDL);
|
||||||
FrameInterpolation_RecordCloseChild();
|
FrameInterpolation_RecordCloseChild();
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 2158);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_8002C7BC(TargetContext* targetCtx, Player* player, Actor* actorArg, GlobalContext* globalCtx) {
|
void func_8002C7BC(TargetContext* targetCtx, Player* player, Actor* actorArg, GlobalContext* globalCtx) {
|
||||||
|
@ -1050,7 +1050,7 @@ void TitleCard_Draw(GlobalContext* globalCtx, TitleCardContext* titleCtx) {
|
||||||
titleY = (titleCtx->y * 4) - (height * 2);
|
titleY = (titleCtx->y * 4) - (height * 2);
|
||||||
doubleWidth = width * 2;
|
doubleWidth = width * 2;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 2824);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
height = (width * height > 0x1000) ? 0x1000 / width : height;
|
height = (width * height > 0x1000) ? 0x1000 / width : height;
|
||||||
titleSecondY = titleY + (height * 4);
|
titleSecondY = titleY + (height * 4);
|
||||||
|
@ -1098,7 +1098,7 @@ void TitleCard_Draw(GlobalContext* globalCtx, TitleCardContext* titleCtx) {
|
||||||
titleSecondY + (height * 4), G_TX_RENDERTILE, 0, 0, 1 << 10, 1 << 10);
|
titleSecondY + (height * 4), G_TX_RENDERTILE, 0, 0, 1 << 10, 1 << 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 2880);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1691,11 +1691,11 @@ Gfx* func_8002E830(Vec3f* object, Vec3f* eye, Vec3f* lightDir, GraphicsContext*
|
||||||
Hilite* func_8002EABC(Vec3f* object, Vec3f* eye, Vec3f* lightDir, GraphicsContext* gfxCtx) {
|
Hilite* func_8002EABC(Vec3f* object, Vec3f* eye, Vec3f* lightDir, GraphicsContext* gfxCtx) {
|
||||||
Hilite* hilite;
|
Hilite* hilite;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_actor.c", 4306);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
POLY_OPA_DISP = func_8002E830(object, eye, lightDir, gfxCtx, POLY_OPA_DISP, &hilite);
|
POLY_OPA_DISP = func_8002E830(object, eye, lightDir, gfxCtx, POLY_OPA_DISP, &hilite);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_actor.c", 4313);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
return hilite;
|
return hilite;
|
||||||
}
|
}
|
||||||
|
@ -1703,11 +1703,11 @@ Hilite* func_8002EABC(Vec3f* object, Vec3f* eye, Vec3f* lightDir, GraphicsContex
|
||||||
Hilite* func_8002EB44(Vec3f* object, Vec3f* eye, Vec3f* lightDir, GraphicsContext* gfxCtx) {
|
Hilite* func_8002EB44(Vec3f* object, Vec3f* eye, Vec3f* lightDir, GraphicsContext* gfxCtx) {
|
||||||
Hilite* hilite;
|
Hilite* hilite;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_actor.c", 4332);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
POLY_XLU_DISP = func_8002E830(object, eye, lightDir, gfxCtx, POLY_XLU_DISP, &hilite);
|
POLY_XLU_DISP = func_8002E830(object, eye, lightDir, gfxCtx, POLY_XLU_DISP, &hilite);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_actor.c", 4339);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
return hilite;
|
return hilite;
|
||||||
}
|
}
|
||||||
|
@ -1733,13 +1733,13 @@ void func_8002EBCC(Actor* actor, GlobalContext* globalCtx, s32 flag) {
|
||||||
displayList = Graph_Alloc(globalCtx->state.gfxCtx, 2 * sizeof(Gfx));
|
displayList = Graph_Alloc(globalCtx->state.gfxCtx, 2 * sizeof(Gfx));
|
||||||
displayListHead = displayList;
|
displayListHead = displayList;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 4384);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPSetHilite1Tile(displayListHead++, 1, hilite, 0x10, 0x10);
|
gDPSetHilite1Tile(displayListHead++, 1, hilite, 0x10, 0x10);
|
||||||
gSPEndDisplayList(displayListHead);
|
gSPEndDisplayList(displayListHead);
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x07, displayList);
|
gSPSegment(POLY_OPA_DISP++, 0x07, displayList);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 4394);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1759,13 +1759,13 @@ void func_8002ED80(Actor* actor, GlobalContext* globalCtx, s32 flag) {
|
||||||
displayList = Graph_Alloc(globalCtx->state.gfxCtx, 2 * sizeof(Gfx));
|
displayList = Graph_Alloc(globalCtx->state.gfxCtx, 2 * sizeof(Gfx));
|
||||||
displayListHead = displayList;
|
displayListHead = displayList;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 4429);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPSetHilite1Tile(displayListHead++, 1, hilite, 0x10, 0x10);
|
gDPSetHilite1Tile(displayListHead++, 1, hilite, 0x10, 0x10);
|
||||||
gSPEndDisplayList(displayListHead);
|
gSPEndDisplayList(displayListHead);
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x07, displayList);
|
gSPSegment(POLY_XLU_DISP++, 0x07, displayList);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 4439);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2156,7 +2156,7 @@ void Actor_DrawFaroresWindPointer(GlobalContext* globalCtx) {
|
||||||
s32 lightRadius = -1;
|
s32 lightRadius = -1;
|
||||||
s32 params;
|
s32 params;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 5308);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
params = gSaveContext.respawn[RESPAWN_MODE_TOP].data;
|
params = gSaveContext.respawn[RESPAWN_MODE_TOP].data;
|
||||||
|
|
||||||
|
@ -2276,14 +2276,14 @@ void Actor_DrawFaroresWindPointer(GlobalContext* globalCtx) {
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 100, 200, 0, 255);
|
gDPSetEnvColor(POLY_XLU_DISP++, 100, 200, 0, 255);
|
||||||
|
|
||||||
Matrix_RotateZ(((globalCtx->gameplayFrames * 1500) & 0xFFFF) * M_PI / 32768.0f, MTXMODE_APPLY);
|
Matrix_RotateZ(((globalCtx->gameplayFrames * 1500) & 0xFFFF) * M_PI / 32768.0f, MTXMODE_APPLY);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_actor.c", 5458),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD | G_MTX_NOPUSH);
|
G_MTX_MODELVIEW | G_MTX_LOAD | G_MTX_NOPUSH);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, gEffFlash1DL);
|
gSPDisplayList(POLY_XLU_DISP++, gEffFlash1DL);
|
||||||
|
|
||||||
Matrix_Pop();
|
Matrix_Pop();
|
||||||
Matrix_RotateZ(~((globalCtx->gameplayFrames * 1200) & 0xFFFF) * M_PI / 32768.0f, MTXMODE_APPLY);
|
Matrix_RotateZ(~((globalCtx->gameplayFrames * 1200) & 0xFFFF) * M_PI / 32768.0f, MTXMODE_APPLY);
|
||||||
|
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_actor.c", 5463),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD | G_MTX_NOPUSH);
|
G_MTX_MODELVIEW | G_MTX_LOAD | G_MTX_NOPUSH);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, gEffFlash1DL);
|
gSPDisplayList(POLY_XLU_DISP++, gEffFlash1DL);
|
||||||
}
|
}
|
||||||
|
@ -2293,7 +2293,7 @@ void Actor_DrawFaroresWindPointer(GlobalContext* globalCtx) {
|
||||||
((void)0, gSaveContext.respawn[RESPAWN_MODE_TOP].pos.z), 255, 255, 255, lightRadius);
|
((void)0, gSaveContext.respawn[RESPAWN_MODE_TOP].pos.z), 255, 255, 255, lightRadius);
|
||||||
|
|
||||||
}
|
}
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 5474);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80030488(GlobalContext* globalCtx) {
|
void func_80030488(GlobalContext* globalCtx) {
|
||||||
|
@ -2362,7 +2362,7 @@ void Actor_UpdateAll(GlobalContext* globalCtx, ActorContext* actorCtx) {
|
||||||
|
|
||||||
if (0) {
|
if (0) {
|
||||||
// This ASSERT is optimized out but it exists due to its presence in rodata
|
// This ASSERT is optimized out but it exists due to its presence in rodata
|
||||||
ASSERT(gMaxActorId == ACTOR_ID_MAX, "MaxProfile == ACTOR_DLF_MAX", "../z_actor.c", UNK_LINE);
|
ASSERT(gMaxActorId == ACTOR_ID_MAX, "MaxProfile == ACTOR_DLF_MAX", __FILE__, UNK_LINE);
|
||||||
}
|
}
|
||||||
|
|
||||||
sp74 = NULL;
|
sp74 = NULL;
|
||||||
|
@ -2519,7 +2519,7 @@ void Actor_Draw(GlobalContext* globalCtx, Actor* actor) {
|
||||||
Fault_AddClient(&faultClient, Actor_FaultPrint, actor, "Actor_draw");
|
Fault_AddClient(&faultClient, Actor_FaultPrint, actor, "Actor_draw");
|
||||||
|
|
||||||
FrameInterpolation_RecordOpenChild(actor, 0);
|
FrameInterpolation_RecordOpenChild(actor, 0);
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 6035);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
lights = LightContext_NewLights(&globalCtx->lightCtx, globalCtx->state.gfxCtx);
|
lights = LightContext_NewLights(&globalCtx->lightCtx, globalCtx->state.gfxCtx);
|
||||||
|
|
||||||
|
@ -2575,7 +2575,7 @@ void Actor_Draw(GlobalContext* globalCtx, Actor* actor) {
|
||||||
actor->shape.shadowDraw(actor, lights, globalCtx);
|
actor->shape.shadowDraw(actor, lights, globalCtx);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 6119);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
FrameInterpolation_RecordCloseChild();
|
FrameInterpolation_RecordCloseChild();
|
||||||
|
|
||||||
Fault_RemoveClient(&faultClient);
|
Fault_RemoveClient(&faultClient);
|
||||||
|
@ -2596,7 +2596,7 @@ void func_80030ED8(Actor* actor) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80030FA8(GraphicsContext* gfxCtx) {
|
void func_80030FA8(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_actor.c", 6161);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPLoadTextureBlock(POLY_XLU_DISP++, gLensOfTruthMaskTex, G_IM_FMT_I, G_IM_SIZ_8b, 64, 64, 0,
|
gDPLoadTextureBlock(POLY_XLU_DISP++, gLensOfTruthMaskTex, G_IM_FMT_I, G_IM_SIZ_8b, 64, 64, 0,
|
||||||
G_TX_MIRROR | G_TX_CLAMP, G_TX_MIRROR | G_TX_CLAMP, 6, 6, G_TX_NOLOD, G_TX_NOLOD);
|
G_TX_MIRROR | G_TX_CLAMP, G_TX_MIRROR | G_TX_CLAMP, 6, 6, G_TX_NOLOD, G_TX_NOLOD);
|
||||||
|
@ -2611,7 +2611,7 @@ void func_80030FA8(GraphicsContext* gfxCtx) {
|
||||||
gSPWideTextureRectangle(POLY_XLU_DISP++, x, 0, x + abs(x), 960, G_TX_RENDERTILE, 0, 0, 0, 0);
|
gSPWideTextureRectangle(POLY_XLU_DISP++, x, 0, x + abs(x), 960, G_TX_RENDERTILE, 0, 0, 0, 0);
|
||||||
gSPWideTextureRectangle(POLY_XLU_DISP++, 0, 0, w, 960, G_TX_RENDERTILE, 2240, 1600, 576, 597);
|
gSPWideTextureRectangle(POLY_XLU_DISP++, 0, 0, w, 960, G_TX_RENDERTILE, 2240, 1600, 576, 597);
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
CLOSE_DISPS(gfxCtx, "../z_actor.c", 6183);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_8003115C(GlobalContext* globalCtx, s32 numInvisibleActors, Actor** invisibleActors) {
|
void func_8003115C(GlobalContext* globalCtx, s32 numInvisibleActors, Actor** invisibleActors) {
|
||||||
|
@ -2621,7 +2621,7 @@ void func_8003115C(GlobalContext* globalCtx, s32 numInvisibleActors, Actor** inv
|
||||||
|
|
||||||
gfxCtx = globalCtx->state.gfxCtx;
|
gfxCtx = globalCtx->state.gfxCtx;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_actor.c", 6197);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPNoOpString(POLY_OPA_DISP++, "魔法のメガネ START", 0); // "Magic lens START"
|
gDPNoOpString(POLY_OPA_DISP++, "魔法のメガネ START", 0); // "Magic lens START"
|
||||||
|
|
||||||
|
@ -2682,7 +2682,7 @@ void func_8003115C(GlobalContext* globalCtx, s32 numInvisibleActors, Actor** inv
|
||||||
|
|
||||||
gDPNoOpString(POLY_OPA_DISP++, "魔法のメガネ END", 0); // "Magic lens END"
|
gDPNoOpString(POLY_OPA_DISP++, "魔法のメガネ END", 0); // "Magic lens END"
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_actor.c", 6284);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 func_800314B0(GlobalContext* globalCtx, Actor* actor) {
|
s32 func_800314B0(GlobalContext* globalCtx, Actor* actor) {
|
||||||
|
@ -2720,7 +2720,7 @@ void func_800315AC(GlobalContext* globalCtx, ActorContext* actorCtx) {
|
||||||
|
|
||||||
invisibleActorCounter = 0;
|
invisibleActorCounter = 0;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 6336);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
actorListEntry = &actorCtx->actorLists[0];
|
actorListEntry = &actorCtx->actorLists[0];
|
||||||
|
|
||||||
|
@ -2763,7 +2763,7 @@ void func_800315AC(GlobalContext* globalCtx, ActorContext* actorCtx) {
|
||||||
((globalCtx->roomCtx.curRoom.showInvisActors == 0) || (globalCtx->actorCtx.unk_03 != 0) ||
|
((globalCtx->roomCtx.curRoom.showInvisActors == 0) || (globalCtx->actorCtx.unk_03 != 0) ||
|
||||||
(actor->room != globalCtx->roomCtx.curRoom.num))) {
|
(actor->room != globalCtx->roomCtx.curRoom.num))) {
|
||||||
ASSERT(invisibleActorCounter < INVISIBLE_ACTOR_MAX,
|
ASSERT(invisibleActorCounter < INVISIBLE_ACTOR_MAX,
|
||||||
"invisible_actor_counter < INVISIBLE_ACTOR_MAX", "../z_actor.c", 6464);
|
"invisible_actor_counter < INVISIBLE_ACTOR_MAX", __FILE__, __LINE__);
|
||||||
invisibleActors[invisibleActorCounter] = actor;
|
invisibleActors[invisibleActorCounter] = actor;
|
||||||
invisibleActorCounter++;
|
invisibleActorCounter++;
|
||||||
} else {
|
} else {
|
||||||
|
@ -2810,7 +2810,7 @@ void func_800315AC(GlobalContext* globalCtx, ActorContext* actorCtx) {
|
||||||
CollisionCheck_DrawCollision(globalCtx, &globalCtx->colChkCtx);
|
CollisionCheck_DrawCollision(globalCtx, &globalCtx->colChkCtx);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 6563);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80031A28(GlobalContext* globalCtx, ActorContext* actorCtx) {
|
void func_80031A28(GlobalContext* globalCtx, ActorContext* actorCtx) {
|
||||||
|
@ -2889,7 +2889,7 @@ void func_80031C3C(ActorContext* actorCtx, GlobalContext* globalCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (actorCtx->absoluteSpace != NULL) {
|
if (actorCtx->absoluteSpace != NULL) {
|
||||||
ZeldaArena_FreeDebug(actorCtx->absoluteSpace, "../z_actor.c", 6731);
|
ZeldaArena_FreeDebug(actorCtx->absoluteSpace, __FILE__, __LINE__);
|
||||||
actorCtx->absoluteSpace = NULL;
|
actorCtx->absoluteSpace = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2980,7 +2980,7 @@ void Actor_FreeOverlay(ActorOverlay* actorOverlay) {
|
||||||
if (HREG(20) != 0) {
|
if (HREG(20) != 0) {
|
||||||
osSyncPrintf("オーバーレイ解放します\n"); // "Overlay deallocated"
|
osSyncPrintf("オーバーレイ解放します\n"); // "Overlay deallocated"
|
||||||
}
|
}
|
||||||
ZeldaArena_FreeDebug(actorOverlay->loadedRamAddr, "../z_actor.c", 6834);
|
ZeldaArena_FreeDebug(actorOverlay->loadedRamAddr, __FILE__, __LINE__);
|
||||||
actorOverlay->loadedRamAddr = NULL;
|
actorOverlay->loadedRamAddr = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3006,7 +3006,7 @@ Actor* Actor_Spawn(ActorContext* actorCtx, GlobalContext* globalCtx, s16 actorId
|
||||||
u32 overlaySize;
|
u32 overlaySize;
|
||||||
|
|
||||||
overlayEntry = &gActorOverlayTable[actorId];
|
overlayEntry = &gActorOverlayTable[actorId];
|
||||||
ASSERT(actorId < ACTOR_ID_MAX, "profile < ACTOR_DLF_MAX", "../z_actor.c", 6883);
|
ASSERT(actorId < ACTOR_ID_MAX, "profile < ACTOR_DLF_MAX", __FILE__, __LINE__);
|
||||||
|
|
||||||
name = overlayEntry->name != NULL ? overlayEntry->name : "";
|
name = overlayEntry->name != NULL ? overlayEntry->name : "";
|
||||||
overlaySize = (uintptr_t)overlayEntry->vramEnd - (uintptr_t)overlayEntry->vramStart;
|
overlaySize = (uintptr_t)overlayEntry->vramEnd - (uintptr_t)overlayEntry->vramStart;
|
||||||
|
@ -3035,7 +3035,7 @@ Actor* Actor_Spawn(ActorContext* actorCtx, GlobalContext* globalCtx, s16 actorId
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (overlayEntry->allocType & ALLOCTYPE_ABSOLUTE) {
|
if (overlayEntry->allocType & ALLOCTYPE_ABSOLUTE) {
|
||||||
ASSERT(overlaySize <= AM_FIELD_SIZE, "actor_segsize <= AM_FIELD_SIZE", "../z_actor.c", 6934);
|
ASSERT(overlaySize <= AM_FIELD_SIZE, "actor_segsize <= AM_FIELD_SIZE", __FILE__, __LINE__);
|
||||||
|
|
||||||
if (actorCtx->absoluteSpace == NULL) {
|
if (actorCtx->absoluteSpace == NULL) {
|
||||||
// "AMF: absolute magic field"
|
// "AMF: absolute magic field"
|
||||||
|
@ -3102,7 +3102,7 @@ Actor* Actor_Spawn(ActorContext* actorCtx, GlobalContext* globalCtx, s16 actorId
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(overlayEntry->numLoaded < 255, "actor_dlftbl->clients < 255", "../z_actor.c", 7031);
|
ASSERT(overlayEntry->numLoaded < 255, "actor_dlftbl->clients < 255", __FILE__, __LINE__);
|
||||||
|
|
||||||
overlayEntry->numLoaded++;
|
overlayEntry->numLoaded++;
|
||||||
|
|
||||||
|
@ -3236,15 +3236,15 @@ Actor* Actor_Delete(ActorContext* actorCtx, Actor* actor, GlobalContext* globalC
|
||||||
|
|
||||||
newHead = Actor_RemoveFromCategory(globalCtx, actorCtx, actor);
|
newHead = Actor_RemoveFromCategory(globalCtx, actorCtx, actor);
|
||||||
|
|
||||||
ZeldaArena_FreeDebug(actor, "../z_actor.c", 7242);
|
ZeldaArena_FreeDebug(actor, __FILE__, __LINE__);
|
||||||
|
|
||||||
/* if (overlayEntry->vramStart == 0) {
|
/* if (overlayEntry->vramStart == 0) {
|
||||||
if (HREG(20) != 0) {
|
if (HREG(20) != 0) {
|
||||||
osSyncPrintf("オーバーレイではありません\n"); // "Not an overlay"
|
osSyncPrintf("オーバーレイではありません\n"); // "Not an overlay"
|
||||||
}
|
}
|
||||||
} else { */
|
} else { */
|
||||||
//ASSERT(overlayEntry->loadedRamAddr != NULL, "actor_dlftbl->allocp != NULL", "../z_actor.c", 7251);
|
//ASSERT(overlayEntry->loadedRamAddr != NULL, "actor_dlftbl->allocp != NULL", __FILE__, __LINE__);
|
||||||
//ASSERT(overlayEntry->numLoaded > 0, "actor_dlftbl->clients > 0", "../z_actor.c", 7252);
|
//ASSERT(overlayEntry->numLoaded > 0, "actor_dlftbl->clients > 0", __FILE__, __LINE__);
|
||||||
overlayEntry->numLoaded--;
|
overlayEntry->numLoaded--;
|
||||||
Actor_FreeOverlay(overlayEntry);
|
Actor_FreeOverlay(overlayEntry);
|
||||||
//}
|
//}
|
||||||
|
@ -3414,15 +3414,15 @@ void BodyBreak_Alloc(BodyBreak* bodyBreak, s32 count, GlobalContext* globalCtx)
|
||||||
u32 objectIdsSize;
|
u32 objectIdsSize;
|
||||||
|
|
||||||
matricesSize = (count + 1) * sizeof(*bodyBreak->matrices);
|
matricesSize = (count + 1) * sizeof(*bodyBreak->matrices);
|
||||||
bodyBreak->matrices = ZeldaArena_MallocDebug(matricesSize, "../z_actor.c", 7540);
|
bodyBreak->matrices = ZeldaArena_MallocDebug(matricesSize, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (bodyBreak->matrices != NULL) {
|
if (bodyBreak->matrices != NULL) {
|
||||||
dListsSize = (count + 1) * sizeof(*bodyBreak->dLists);
|
dListsSize = (count + 1) * sizeof(*bodyBreak->dLists);
|
||||||
bodyBreak->dLists = ZeldaArena_MallocDebug(dListsSize, "../z_actor.c", 7543);
|
bodyBreak->dLists = ZeldaArena_MallocDebug(dListsSize, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (bodyBreak->dLists != NULL) {
|
if (bodyBreak->dLists != NULL) {
|
||||||
objectIdsSize = (count + 1) * sizeof(*bodyBreak->objectIds);
|
objectIdsSize = (count + 1) * sizeof(*bodyBreak->objectIds);
|
||||||
bodyBreak->objectIds = ZeldaArena_MallocDebug(objectIdsSize, "../z_actor.c", 7546);
|
bodyBreak->objectIds = ZeldaArena_MallocDebug(objectIdsSize, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (bodyBreak->objectIds != NULL) {
|
if (bodyBreak->objectIds != NULL) {
|
||||||
memset((u8*)bodyBreak->matrices,0, matricesSize);
|
memset((u8*)bodyBreak->matrices,0, matricesSize);
|
||||||
|
@ -3435,15 +3435,15 @@ void BodyBreak_Alloc(BodyBreak* bodyBreak, s32 count, GlobalContext* globalCtx)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bodyBreak->matrices != NULL) {
|
if (bodyBreak->matrices != NULL) {
|
||||||
ZeldaArena_FreeDebug(bodyBreak->matrices, "../z_actor.c", 7558);
|
ZeldaArena_FreeDebug(bodyBreak->matrices, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bodyBreak->dLists != NULL) {
|
if (bodyBreak->dLists != NULL) {
|
||||||
ZeldaArena_FreeDebug(bodyBreak->dLists, "../z_actor.c", 7561);
|
ZeldaArena_FreeDebug(bodyBreak->dLists, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bodyBreak->objectIds != NULL) {
|
if (bodyBreak->objectIds != NULL) {
|
||||||
ZeldaArena_FreeDebug(bodyBreak->objectIds, "../z_actor.c", 7564);
|
ZeldaArena_FreeDebug(bodyBreak->objectIds, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3510,9 +3510,9 @@ s32 BodyBreak_SpawnParts(Actor* actor, BodyBreak* bodyBreak, GlobalContext* glob
|
||||||
|
|
||||||
bodyBreak->val = BODYBREAK_STATUS_FINISHED;
|
bodyBreak->val = BODYBREAK_STATUS_FINISHED;
|
||||||
|
|
||||||
ZeldaArena_FreeDebug(bodyBreak->matrices, "../z_actor.c", 7678);
|
ZeldaArena_FreeDebug(bodyBreak->matrices, __FILE__, __LINE__);
|
||||||
ZeldaArena_FreeDebug(bodyBreak->dLists, "../z_actor.c", 7679);
|
ZeldaArena_FreeDebug(bodyBreak->dLists, __FILE__, __LINE__);
|
||||||
ZeldaArena_FreeDebug(bodyBreak->objectIds, "../z_actor.c", 7680);
|
ZeldaArena_FreeDebug(bodyBreak->objectIds, __FILE__, __LINE__);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -3820,7 +3820,7 @@ void func_80033C30(Vec3f* arg0, Vec3f* arg1, u8 alpha, GlobalContext* globalCtx)
|
||||||
Vec3f sp50;
|
Vec3f sp50;
|
||||||
CollisionPoly* sp4C;
|
CollisionPoly* sp4C;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 8120);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (0) {} // Necessary to match
|
if (0) {} // Necessary to match
|
||||||
|
|
||||||
|
@ -3843,11 +3843,11 @@ void func_80033C30(Vec3f* arg0, Vec3f* arg1, u8 alpha, GlobalContext* globalCtx)
|
||||||
|
|
||||||
Matrix_Scale(arg1->x, 1.0f, arg1->z, MTXMODE_APPLY);
|
Matrix_Scale(arg1->x, 1.0f, arg1->z, MTXMODE_APPLY);
|
||||||
|
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_actor.c", 8149),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, gCircleShadowDL);
|
gSPDisplayList(POLY_OPA_DISP++, gCircleShadowDL);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 8155);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80033DB8(GlobalContext* globalCtx, s16 arg1, s16 arg2) {
|
void func_80033DB8(GlobalContext* globalCtx, s16 arg1, s16 arg2) {
|
||||||
|
@ -3916,7 +3916,7 @@ void Actor_DrawDoorLock(GlobalContext* globalCtx, s32 frame, s32 type) {
|
||||||
entry = &sDoorLocksInfo[type];
|
entry = &sDoorLocksInfo[type];
|
||||||
chainRotZ = entry->chainsRotZInit;
|
chainRotZ = entry->chainsRotZInit;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 8265);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
Matrix_Translate(0.0f, entry->yShift, 500.0f, MTXMODE_APPLY);
|
Matrix_Translate(0.0f, entry->yShift, 500.0f, MTXMODE_APPLY);
|
||||||
Matrix_Get(&baseMtxF);
|
Matrix_Get(&baseMtxF);
|
||||||
|
@ -3933,7 +3933,7 @@ void Actor_DrawDoorLock(GlobalContext* globalCtx, s32 frame, s32 type) {
|
||||||
Matrix_Scale(entry->chainsScale, entry->chainsScale, entry->chainsScale, MTXMODE_APPLY);
|
Matrix_Scale(entry->chainsScale, entry->chainsScale, entry->chainsScale, MTXMODE_APPLY);
|
||||||
}
|
}
|
||||||
|
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_actor.c", 8299),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, entry->chainDL);
|
gSPDisplayList(POLY_OPA_DISP++, entry->chainDL);
|
||||||
|
|
||||||
|
@ -3949,11 +3949,11 @@ void Actor_DrawDoorLock(GlobalContext* globalCtx, s32 frame, s32 type) {
|
||||||
Matrix_Put(&baseMtxF);
|
Matrix_Put(&baseMtxF);
|
||||||
Matrix_Scale(frame * 0.1f, frame * 0.1f, frame * 0.1f, MTXMODE_APPLY);
|
Matrix_Scale(frame * 0.1f, frame * 0.1f, frame * 0.1f, MTXMODE_APPLY);
|
||||||
|
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_actor.c", 8314),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, entry->lockDL);
|
gSPDisplayList(POLY_OPA_DISP++, entry->lockDL);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 8319);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_8003424C(GlobalContext* globalCtx, Vec3f* arg1) {
|
void func_8003424C(GlobalContext* globalCtx, Vec3f* arg1) {
|
||||||
|
@ -4195,7 +4195,7 @@ Gfx* func_80034B54(GraphicsContext* gfxCtx) {
|
||||||
|
|
||||||
void func_80034BA0(GlobalContext* globalCtx, SkelAnime* skelAnime, OverrideLimbDraw overrideLimbDraw,
|
void func_80034BA0(GlobalContext* globalCtx, SkelAnime* skelAnime, OverrideLimbDraw overrideLimbDraw,
|
||||||
PostLimbDraw postLimbDraw, Actor* actor, s16 alpha) {
|
PostLimbDraw postLimbDraw, Actor* actor, s16 alpha) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 8831);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
|
|
||||||
|
@ -4207,12 +4207,12 @@ void func_80034BA0(GlobalContext* globalCtx, SkelAnime* skelAnime, OverrideLimbD
|
||||||
POLY_OPA_DISP = SkelAnime_DrawFlex(globalCtx, skelAnime->skeleton, skelAnime->jointTable, skelAnime->dListCount,
|
POLY_OPA_DISP = SkelAnime_DrawFlex(globalCtx, skelAnime->skeleton, skelAnime->jointTable, skelAnime->dListCount,
|
||||||
overrideLimbDraw, postLimbDraw, actor, POLY_OPA_DISP);
|
overrideLimbDraw, postLimbDraw, actor, POLY_OPA_DISP);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 8860);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80034CC4(GlobalContext* globalCtx, SkelAnime* skelAnime, OverrideLimbDraw overrideLimbDraw,
|
void func_80034CC4(GlobalContext* globalCtx, SkelAnime* skelAnime, OverrideLimbDraw overrideLimbDraw,
|
||||||
PostLimbDraw postLimbDraw, Actor* actor, s16 alpha) {
|
PostLimbDraw postLimbDraw, Actor* actor, s16 alpha) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 8876);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
|
|
||||||
|
@ -4223,7 +4223,7 @@ void func_80034CC4(GlobalContext* globalCtx, SkelAnime* skelAnime, OverrideLimbD
|
||||||
POLY_XLU_DISP = SkelAnime_DrawFlex(globalCtx, skelAnime->skeleton, skelAnime->jointTable, skelAnime->dListCount,
|
POLY_XLU_DISP = SkelAnime_DrawFlex(globalCtx, skelAnime->skeleton, skelAnime->jointTable, skelAnime->dListCount,
|
||||||
overrideLimbDraw, postLimbDraw, actor, POLY_XLU_DISP);
|
overrideLimbDraw, postLimbDraw, actor, POLY_XLU_DISP);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_actor.c", 8904);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
s16 func_80034DD4(Actor* actor, GlobalContext* globalCtx, s16 arg2, f32 arg3) {
|
s16 func_80034DD4(Actor* actor, GlobalContext* globalCtx, s16 arg2, f32 arg3) {
|
||||||
|
|
|
@ -87,7 +87,7 @@ void SSNodeList_SetSSListHead(SSNodeList* nodeList, SSList* ssList, s16* polyId)
|
||||||
void DynaSSNodeList_SetSSListHead(DynaSSNodeList* nodeList, SSList* ssList, s16* polyId) {
|
void DynaSSNodeList_SetSSListHead(DynaSSNodeList* nodeList, SSList* ssList, s16* polyId) {
|
||||||
u16 newNodeId = DynaSSNodeList_GetNextNodeIdx(nodeList);
|
u16 newNodeId = DynaSSNodeList_GetNextNodeIdx(nodeList);
|
||||||
|
|
||||||
ASSERT(newNodeId != SS_NULL, "new_node != SS_NULL", "../z_bgcheck.c", 1776);
|
ASSERT(newNodeId != SS_NULL, "new_node != SS_NULL", __FILE__, __LINE__);
|
||||||
SSNode_SetValue(&nodeList->tbl[newNodeId], polyId, ssList->head);
|
SSNode_SetValue(&nodeList->tbl[newNodeId], polyId, ssList->head);
|
||||||
ssList->head = newNodeId;
|
ssList->head = newNodeId;
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,7 @@ void DynaSSNodeList_Initialize(GlobalContext* globalCtx, DynaSSNodeList* nodeLis
|
||||||
void DynaSSNodeList_Alloc(GlobalContext* globalCtx, DynaSSNodeList* nodeList, s32 max) {
|
void DynaSSNodeList_Alloc(GlobalContext* globalCtx, DynaSSNodeList* nodeList, s32 max) {
|
||||||
nodeList->tbl = THA_AllocEndAlign(&globalCtx->state.tha, max * sizeof(SSNode), -2);
|
nodeList->tbl = THA_AllocEndAlign(&globalCtx->state.tha, max * sizeof(SSNode), -2);
|
||||||
|
|
||||||
ASSERT(nodeList->tbl != NULL, "psst->tbl != NULL", "../z_bgcheck.c", 1811);
|
ASSERT(nodeList->tbl != NULL, "psst->tbl != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
nodeList->max = max;
|
nodeList->max = max;
|
||||||
nodeList->count = 0;
|
nodeList->count = 0;
|
||||||
|
@ -700,7 +700,7 @@ s32 BgCheck_SphVsStaticWall(StaticLookup* lookup, CollisionContext* colCtx, u16
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(!IS_ZERO(normalXZ), "!IS_ZERO(ac_size)", "../z_bgcheck.c", 2854);
|
ASSERT(!IS_ZERO(normalXZ), "!IS_ZERO(ac_size)", __FILE__, __LINE__);
|
||||||
|
|
||||||
invNormalXZ = 1.0f / normalXZ;
|
invNormalXZ = 1.0f / normalXZ;
|
||||||
temp_f16 = fabsf(nz) * invNormalXZ;
|
temp_f16 = fabsf(nz) * invNormalXZ;
|
||||||
|
@ -781,7 +781,7 @@ s32 BgCheck_SphVsStaticWall(StaticLookup* lookup, CollisionContext* colCtx, u16
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(!IS_ZERO(normalXZ), "!IS_ZERO(ac_size)", "../z_bgcheck.c", 2964);
|
ASSERT(!IS_ZERO(normalXZ), "!IS_ZERO(ac_size)", __FILE__, __LINE__);
|
||||||
|
|
||||||
invNormalXZ = 1.0f / normalXZ;
|
invNormalXZ = 1.0f / normalXZ;
|
||||||
temp_f16 = fabsf(nx) * invNormalXZ;
|
temp_f16 = fabsf(nx) * invNormalXZ;
|
||||||
|
@ -1570,7 +1570,7 @@ void BgCheck_Allocate(CollisionContext* colCtx, GlobalContext* globalCtx, Collis
|
||||||
&globalCtx->state.tha,
|
&globalCtx->state.tha,
|
||||||
colCtx->subdivAmount.x * sizeof(StaticLookup) * colCtx->subdivAmount.y * colCtx->subdivAmount.z, ~1);
|
colCtx->subdivAmount.x * sizeof(StaticLookup) * colCtx->subdivAmount.y * colCtx->subdivAmount.z, ~1);
|
||||||
if (colCtx->lookupTbl == NULL) {
|
if (colCtx->lookupTbl == NULL) {
|
||||||
LogUtils_HungupThread("../z_bgcheck.c", 4176);
|
LogUtils_HungupThread(__FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
colCtx->minBounds.x = colCtx->colHeader->minBounds.x;
|
colCtx->minBounds.x = colCtx->colHeader->minBounds.x;
|
||||||
colCtx->minBounds.y = colCtx->colHeader->minBounds.y;
|
colCtx->minBounds.y = colCtx->colHeader->minBounds.y;
|
||||||
|
@ -1599,7 +1599,7 @@ void BgCheck_Allocate(CollisionContext* colCtx, GlobalContext* globalCtx, Collis
|
||||||
tblMax = customNodeListMax;
|
tblMax = customNodeListMax;
|
||||||
} else {
|
} else {
|
||||||
if (colCtx->memSize < memSize) {
|
if (colCtx->memSize < memSize) {
|
||||||
LogUtils_HungupThread("../z_bgcheck.c", 4230);
|
LogUtils_HungupThread(__FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
tblMax = (colCtx->memSize - memSize) / sizeof(SSNode);
|
tblMax = (colCtx->memSize - memSize) / sizeof(SSNode);
|
||||||
}
|
}
|
||||||
|
@ -1677,7 +1677,7 @@ f32 BgCheck_RaycastFloorImpl(GlobalContext* globalCtx, CollisionContext* colCtx,
|
||||||
if (checkPos.y < colCtx->minBounds.y) {
|
if (checkPos.y < colCtx->minBounds.y) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (BgCheck_PosErrorCheck(&checkPos, "../z_bgcheck.c", 4410)) {
|
if (BgCheck_PosErrorCheck(&checkPos, __FILE__, __LINE__)) {
|
||||||
if (actor != NULL) {
|
if (actor != NULL) {
|
||||||
osSyncPrintf("こいつ,pself_actor->name %d\n", actor->id);
|
osSyncPrintf("こいつ,pself_actor->name %d\n", actor->id);
|
||||||
}
|
}
|
||||||
|
@ -1892,8 +1892,8 @@ s32 BgCheck_CheckWallImpl(CollisionContext* colCtx, u16 xpFlags, Vec3f* posResul
|
||||||
dy = posNext->y - posPrev->y;
|
dy = posNext->y - posPrev->y;
|
||||||
dz = posNext->z - posPrev->z;
|
dz = posNext->z - posPrev->z;
|
||||||
|
|
||||||
if (BgCheck_PosErrorCheck(posNext, "../z_bgcheck.c", 4831) == true ||
|
if (BgCheck_PosErrorCheck(posNext, __FILE__, __LINE__) == true ||
|
||||||
BgCheck_PosErrorCheck(posPrev, "../z_bgcheck.c", 4832) == true) {
|
BgCheck_PosErrorCheck(posPrev, __FILE__, __LINE__) == true) {
|
||||||
if (actor != NULL) {
|
if (actor != NULL) {
|
||||||
osSyncPrintf("こいつ,pself_actor->name %d\n", actor->id);
|
osSyncPrintf("こいつ,pself_actor->name %d\n", actor->id);
|
||||||
}
|
}
|
||||||
|
@ -2081,7 +2081,7 @@ s32 BgCheck_CheckCeilingImpl(CollisionContext* colCtx, u16 xpFlags, f32* outY, V
|
||||||
|
|
||||||
*outBgId = BGCHECK_SCENE;
|
*outBgId = BGCHECK_SCENE;
|
||||||
*outY = pos->y;
|
*outY = pos->y;
|
||||||
if (BgCheck_PosErrorCheck(pos, "../z_bgcheck.c", 5206) == true) {
|
if (BgCheck_PosErrorCheck(pos, __FILE__, __LINE__) == true) {
|
||||||
if (actor != NULL) {
|
if (actor != NULL) {
|
||||||
osSyncPrintf("こいつ,pself_actor->name %d\n", actor->id);
|
osSyncPrintf("こいつ,pself_actor->name %d\n", actor->id);
|
||||||
}
|
}
|
||||||
|
@ -2155,8 +2155,8 @@ s32 BgCheck_CheckLineImpl(CollisionContext* colCtx, u16 xpFlags1, u16 xpFlags2,
|
||||||
s32 temp_lo;
|
s32 temp_lo;
|
||||||
|
|
||||||
*outBgId = BGCHECK_SCENE;
|
*outBgId = BGCHECK_SCENE;
|
||||||
if (BgCheck_PosErrorCheck(posA, "../z_bgcheck.c", 5334) == true ||
|
if (BgCheck_PosErrorCheck(posA, __FILE__, __LINE__) == true ||
|
||||||
BgCheck_PosErrorCheck(posB, "../z_bgcheck.c", 5335) == true) {
|
BgCheck_PosErrorCheck(posB, __FILE__, __LINE__) == true) {
|
||||||
if (actor != NULL) {
|
if (actor != NULL) {
|
||||||
osSyncPrintf("こいつ,pself_actor->name %d\n", actor->id);
|
osSyncPrintf("こいつ,pself_actor->name %d\n", actor->id);
|
||||||
} else {
|
} else {
|
||||||
|
@ -2369,7 +2369,7 @@ s32 BgCheck_SphVsFirstPolyImpl(CollisionContext* colCtx, u16 xpFlags, CollisionP
|
||||||
StaticLookup* lookup;
|
StaticLookup* lookup;
|
||||||
|
|
||||||
*outBgId = BGCHECK_SCENE;
|
*outBgId = BGCHECK_SCENE;
|
||||||
if (BgCheck_PosErrorCheck(center, "../z_bgcheck.c", 5852) == true) {
|
if (BgCheck_PosErrorCheck(center, __FILE__, __LINE__) == true) {
|
||||||
if (actor != NULL) {
|
if (actor != NULL) {
|
||||||
osSyncPrintf("こいつ,pself_actor->name %d\n", actor->id);
|
osSyncPrintf("こいつ,pself_actor->name %d\n", actor->id);
|
||||||
}
|
}
|
||||||
|
@ -2427,11 +2427,11 @@ void SSNodeList_Alloc(GlobalContext* globalCtx, SSNodeList* this, s32 tblMax, s3
|
||||||
this->count = 0;
|
this->count = 0;
|
||||||
this->tbl = THA_AllocEndAlign(&globalCtx->state.tha, tblMax * sizeof(SSNode), -2);
|
this->tbl = THA_AllocEndAlign(&globalCtx->state.tha, tblMax * sizeof(SSNode), -2);
|
||||||
|
|
||||||
ASSERT(this->tbl != NULL, "this->short_slist_node_tbl != NULL", "../z_bgcheck.c", 5975);
|
ASSERT(this->tbl != NULL, "this->short_slist_node_tbl != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
this->polyCheckTbl = GameState_Alloc(&globalCtx->state, numPolys, "../z_bgcheck.c", 5979);
|
this->polyCheckTbl = GameState_Alloc(&globalCtx->state, numPolys, __FILE__, __LINE__);
|
||||||
|
|
||||||
ASSERT(this->polyCheckTbl != NULL, "this->polygon_check != NULL", "../z_bgcheck.c", 5981);
|
ASSERT(this->polyCheckTbl != NULL, "this->polygon_check != NULL", __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2441,8 +2441,8 @@ SSNode* SSNodeList_GetNextNode(SSNodeList* this) {
|
||||||
SSNode* result = &this->tbl[this->count];
|
SSNode* result = &this->tbl[this->count];
|
||||||
|
|
||||||
this->count++;
|
this->count++;
|
||||||
ASSERT(this->count < this->max, "this->short_slist_node_last_index < this->short_slist_node_size", "../z_bgcheck.c",
|
ASSERT(this->count < this->max, "this->short_slist_node_last_index < this->short_slist_node_size", __FILE__,
|
||||||
5998);
|
__LINE__);
|
||||||
if (!(this->count < this->max)) {
|
if (!(this->count < this->max)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -2455,7 +2455,7 @@ SSNode* SSNodeList_GetNextNode(SSNodeList* this) {
|
||||||
u16 SSNodeList_GetNextNodeIdx(SSNodeList* this) {
|
u16 SSNodeList_GetNextNodeIdx(SSNodeList* this) {
|
||||||
u16 new_index = this->count++;
|
u16 new_index = this->count++;
|
||||||
|
|
||||||
ASSERT(new_index < this->max, "new_index < this->short_slist_node_size", "../z_bgcheck.c", 6021);
|
ASSERT(new_index < this->max, "new_index < this->short_slist_node_size", __FILE__, __LINE__);
|
||||||
return new_index;
|
return new_index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2561,7 +2561,7 @@ void DynaPoly_NullPolyList(CollisionPoly** polyList) {
|
||||||
*/
|
*/
|
||||||
void DynaPoly_AllocPolyList(GlobalContext* globalCtx, CollisionPoly** polyList, s32 numPolys) {
|
void DynaPoly_AllocPolyList(GlobalContext* globalCtx, CollisionPoly** polyList, s32 numPolys) {
|
||||||
*polyList = THA_AllocEndAlign(&globalCtx->state.tha, numPolys * sizeof(CollisionPoly), -2);
|
*polyList = THA_AllocEndAlign(&globalCtx->state.tha, numPolys * sizeof(CollisionPoly), -2);
|
||||||
ASSERT(*polyList != NULL, "ptbl->pbuf != NULL", "../z_bgcheck.c", 6247);
|
ASSERT(*polyList != NULL, "ptbl->pbuf != NULL", __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2576,7 +2576,7 @@ void DynaPoly_NullVtxList(Vec3s** vtxList) {
|
||||||
*/
|
*/
|
||||||
void DynaPoly_AllocVtxList(GlobalContext* globalCtx, Vec3s** vtxList, s32 numVtx) {
|
void DynaPoly_AllocVtxList(GlobalContext* globalCtx, Vec3s** vtxList, s32 numVtx) {
|
||||||
*vtxList = THA_AllocEndAlign(&globalCtx->state.tha, numVtx * sizeof(Vec3s), -2);
|
*vtxList = THA_AllocEndAlign(&globalCtx->state.tha, numVtx * sizeof(Vec3s), -2);
|
||||||
ASSERT(*vtxList != NULL, "ptbl->pbuf != NULL", "../z_bgcheck.c", 6277);
|
ASSERT(*vtxList != NULL, "ptbl->pbuf != NULL", __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2794,9 +2794,9 @@ void DynaPoly_ExpandSRT(GlobalContext* globalCtx, DynaCollisionContext* dyna, s3
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(dyna->polyListMax >= *polyStartIndex + pbgdata->numPolygons,
|
ASSERT(dyna->polyListMax >= *polyStartIndex + pbgdata->numPolygons,
|
||||||
"pdyna_poly_info->poly_num >= *pstart_poly_index + pbgdata->poly_num", "../z_bgcheck.c", 6687);
|
"pdyna_poly_info->poly_num >= *pstart_poly_index + pbgdata->poly_num", __FILE__, __LINE__);
|
||||||
ASSERT(dyna->vtxListMax >= *vtxStartIndex + pbgdata->numVertices,
|
ASSERT(dyna->vtxListMax >= *vtxStartIndex + pbgdata->numVertices,
|
||||||
"pdyna_poly_info->vert_num >= *pstart_vert_index + pbgdata->vtx_num", "../z_bgcheck.c", 6688);
|
"pdyna_poly_info->vert_num >= *pstart_vert_index + pbgdata->vtx_num", __FILE__, __LINE__);
|
||||||
|
|
||||||
if (!(dyna->bitFlag & DYNAPOLY_INVALIDATE_LOOKUP) &&
|
if (!(dyna->bitFlag & DYNAPOLY_INVALIDATE_LOOKUP) &&
|
||||||
(BgActor_IsTransformUnchanged(&dyna->bgActors[bgId]) == true)) {
|
(BgActor_IsTransformUnchanged(&dyna->bgActors[bgId]) == true)) {
|
||||||
|
@ -3229,7 +3229,7 @@ s32 BgCheck_SphVsDynaWallInBgActor(CollisionContext* colCtx, u16 xpFlags, DynaCo
|
||||||
poly = &dyna->polyList[polyId];
|
poly = &dyna->polyList[polyId];
|
||||||
CollisionPoly_GetNormalF(poly, &nx, &ny, &nz);
|
CollisionPoly_GetNormalF(poly, &nx, &ny, &nz);
|
||||||
normalXZ = sqrtf(SQ(nx) + SQ(nz));
|
normalXZ = sqrtf(SQ(nx) + SQ(nz));
|
||||||
ASSERT(!IS_ZERO(normalXZ), "!IS_ZERO(ac_size)", "../z_bgcheck.c", 7382);
|
ASSERT(!IS_ZERO(normalXZ), "!IS_ZERO(ac_size)", __FILE__, __LINE__);
|
||||||
|
|
||||||
planeDist = Math3D_DistPlaneToPos(nx, ny, nz, poly->dist, &resultPos);
|
planeDist = Math3D_DistPlaneToPos(nx, ny, nz, poly->dist, &resultPos);
|
||||||
if (radius < fabsf(planeDist) || COLPOLY_VIA_FLAG_TEST(poly->flags_vIA, xpFlags)) {
|
if (radius < fabsf(planeDist) || COLPOLY_VIA_FLAG_TEST(poly->flags_vIA, xpFlags)) {
|
||||||
|
@ -3302,7 +3302,7 @@ s32 BgCheck_SphVsDynaWallInBgActor(CollisionContext* colCtx, u16 xpFlags, DynaCo
|
||||||
poly = &dyna->polyList[polyId];
|
poly = &dyna->polyList[polyId];
|
||||||
CollisionPoly_GetNormalF(poly, &nx, &ny, &nz);
|
CollisionPoly_GetNormalF(poly, &nx, &ny, &nz);
|
||||||
normalXZ = sqrtf(SQ(nx) + SQ(nz));
|
normalXZ = sqrtf(SQ(nx) + SQ(nz));
|
||||||
ASSERT(!IS_ZERO(normalXZ), "!IS_ZERO(ac_size)", "../z_bgcheck.c", 7489);
|
ASSERT(!IS_ZERO(normalXZ), "!IS_ZERO(ac_size)", __FILE__, __LINE__);
|
||||||
|
|
||||||
planeDist = Math3D_DistPlaneToPos(nx, ny, nz, poly->dist, &resultPos);
|
planeDist = Math3D_DistPlaneToPos(nx, ny, nz, poly->dist, &resultPos);
|
||||||
if (radius < fabsf(planeDist) || COLPOLY_VIA_FLAG_TEST(poly->flags_vIA, xpFlags)) {
|
if (radius < fabsf(planeDist) || COLPOLY_VIA_FLAG_TEST(poly->flags_vIA, xpFlags)) {
|
||||||
|
|
|
@ -6762,7 +6762,7 @@ s32 Camera_Special9(Camera* camera) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Camera* Camera_Create(View* view, CollisionContext* colCtx, GlobalContext* globalCtx) {
|
Camera* Camera_Create(View* view, CollisionContext* colCtx, GlobalContext* globalCtx) {
|
||||||
Camera* newCamera = ZeldaArena_MallocDebug(sizeof(*newCamera), "../z_camera.c", 9370);
|
Camera* newCamera = ZeldaArena_MallocDebug(sizeof(*newCamera), __FILE__, __LINE__);
|
||||||
|
|
||||||
if (newCamera != NULL) {
|
if (newCamera != NULL) {
|
||||||
osSyncPrintf(VT_FGCOL(BLUE) "camera: create --- allocate %d byte" VT_RST "\n", sizeof(*newCamera) * 4);
|
osSyncPrintf(VT_FGCOL(BLUE) "camera: create --- allocate %d byte" VT_RST "\n", sizeof(*newCamera) * 4);
|
||||||
|
@ -6776,7 +6776,7 @@ Camera* Camera_Create(View* view, CollisionContext* colCtx, GlobalContext* globa
|
||||||
void Camera_Destroy(Camera* camera) {
|
void Camera_Destroy(Camera* camera) {
|
||||||
if (camera != NULL) {
|
if (camera != NULL) {
|
||||||
osSyncPrintf(VT_FGCOL(BLUE) "camera: destroy ---" VT_RST "\n");
|
osSyncPrintf(VT_FGCOL(BLUE) "camera: destroy ---" VT_RST "\n");
|
||||||
ZeldaArena_FreeDebug(camera, "../z_camera.c", 9391);
|
ZeldaArena_FreeDebug(camera, __FILE__, __LINE__);
|
||||||
} else {
|
} else {
|
||||||
osSyncPrintf(VT_COL(YELLOW, BLACK) "camera: destroy: already cleared\n" VT_RST);
|
osSyncPrintf(VT_COL(YELLOW, BLACK) "camera: destroy: already cleared\n" VT_RST);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,23 +1,23 @@
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
|
||||||
void Gfx_DrawDListOpa(GlobalContext* globalCtx, Gfx* dlist) {
|
void Gfx_DrawDListOpa(GlobalContext* globalCtx, Gfx* dlist) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_cheap_proc.c", 214);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_cheap_proc.c", 216),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, dlist);
|
gSPDisplayList(POLY_OPA_DISP++, dlist);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_cheap_proc.c", 219);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Gfx_DrawDListXlu(GlobalContext* globalCtx, Gfx* dlist) {
|
void Gfx_DrawDListXlu(GlobalContext* globalCtx, Gfx* dlist) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_cheap_proc.c", 228);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_cheap_proc.c", 230),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, dlist);
|
gSPDisplayList(POLY_XLU_DISP++, dlist);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_cheap_proc.c", 233);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@ void Collider_DrawPoly(GraphicsContext* gfxCtx, Vec3f* vA, Vec3f* vB, Vec3f* vC,
|
||||||
f32 nz;
|
f32 nz;
|
||||||
f32 originDist;
|
f32 originDist;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_collision_check.c", 713);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPMatrix(POLY_OPA_DISP++, &gMtxClear, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
gSPMatrix(POLY_OPA_DISP++, &gMtxClear, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0x00, 0xFF, r, g, b, 50);
|
gDPSetPrimColor(POLY_OPA_DISP++, 0x00, 0xFF, r, g, b, 50);
|
||||||
|
@ -70,7 +70,7 @@ void Collider_DrawPoly(GraphicsContext* gfxCtx, Vec3f* vA, Vec3f* vB, Vec3f* vC,
|
||||||
gDPPipeSync(POLY_OPA_DISP++);
|
gDPPipeSync(POLY_OPA_DISP++);
|
||||||
|
|
||||||
vtxTbl = Graph_Alloc(gfxCtx, 3 * sizeof(Vtx));
|
vtxTbl = Graph_Alloc(gfxCtx, 3 * sizeof(Vtx));
|
||||||
ASSERT(vtxTbl != NULL, "vtx_tbl != NULL", "../z_collision_check.c", 726);
|
ASSERT(vtxTbl != NULL, "vtx_tbl != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
vtxTbl[0].n.ob[0] = vA->x;
|
vtxTbl[0].n.ob[0] = vA->x;
|
||||||
vtxTbl[0].n.ob[1] = vA->y;
|
vtxTbl[0].n.ob[1] = vA->y;
|
||||||
|
@ -97,7 +97,7 @@ void Collider_DrawPoly(GraphicsContext* gfxCtx, Vec3f* vA, Vec3f* vB, Vec3f* vC,
|
||||||
gSPVertex(POLY_OPA_DISP++, vtxTbl, 3, 0);
|
gSPVertex(POLY_OPA_DISP++, vtxTbl, 3, 0);
|
||||||
gSP1Triangle(POLY_OPA_DISP++, 0, 1, 2, 0);
|
gSP1Triangle(POLY_OPA_DISP++, 0, 1, 2, 0);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_collision_check.c", 757);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 Collider_InitBase(GlobalContext* globalCtx, Collider* collider) {
|
s32 Collider_InitBase(GlobalContext* globalCtx, Collider* collider) {
|
||||||
|
@ -336,7 +336,7 @@ s32 Collider_FreeJntSph(GlobalContext* globalCtx, ColliderJntSph* collider) {
|
||||||
|
|
||||||
collider->count = 0;
|
collider->count = 0;
|
||||||
if (collider->elements != NULL) {
|
if (collider->elements != NULL) {
|
||||||
ZeldaArena_FreeDebug(collider->elements, "../z_collision_check.c", 1393);
|
ZeldaArena_FreeDebug(collider->elements, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
collider->elements = NULL;
|
collider->elements = NULL;
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -367,7 +367,7 @@ s32 Collider_SetJntSphToActor(GlobalContext* globalCtx, ColliderJntSph* dest, Co
|
||||||
|
|
||||||
Collider_SetBaseToActor(globalCtx, &dest->base, &src->base);
|
Collider_SetBaseToActor(globalCtx, &dest->base, &src->base);
|
||||||
dest->count = src->count;
|
dest->count = src->count;
|
||||||
dest->elements = ZeldaArena_MallocDebug(src->count * sizeof(ColliderJntSphElement), "../z_collision_check.c", 1443);
|
dest->elements = ZeldaArena_MallocDebug(src->count * sizeof(ColliderJntSphElement), __FILE__, __LINE__);
|
||||||
|
|
||||||
if (dest->elements == NULL) {
|
if (dest->elements == NULL) {
|
||||||
dest->count = 0;
|
dest->count = 0;
|
||||||
|
@ -396,7 +396,7 @@ s32 Collider_SetJntSphAllocType1(GlobalContext* globalCtx, ColliderJntSph* dest,
|
||||||
|
|
||||||
Collider_SetBaseType1(globalCtx, &dest->base, actor, &src->base);
|
Collider_SetBaseType1(globalCtx, &dest->base, actor, &src->base);
|
||||||
dest->count = src->count;
|
dest->count = src->count;
|
||||||
dest->elements = ZeldaArena_MallocDebug(src->count * sizeof(ColliderJntSphElement), "../z_collision_check.c", 1490);
|
dest->elements = ZeldaArena_MallocDebug(src->count * sizeof(ColliderJntSphElement), __FILE__, __LINE__);
|
||||||
|
|
||||||
if (dest->elements == NULL) {
|
if (dest->elements == NULL) {
|
||||||
dest->count = 0;
|
dest->count = 0;
|
||||||
|
@ -424,7 +424,7 @@ s32 Collider_SetJntSphAlloc(GlobalContext* globalCtx, ColliderJntSph* dest, Acto
|
||||||
|
|
||||||
Collider_SetBase(globalCtx, &dest->base, actor, &src->base);
|
Collider_SetBase(globalCtx, &dest->base, actor, &src->base);
|
||||||
dest->count = src->count;
|
dest->count = src->count;
|
||||||
dest->elements = ZeldaArena_MallocDebug(src->count * sizeof(ColliderJntSphElement), "../z_collision_check.c", 1551);
|
dest->elements = ZeldaArena_MallocDebug(src->count * sizeof(ColliderJntSphElement), __FILE__, __LINE__);
|
||||||
|
|
||||||
if (dest->elements == NULL) {
|
if (dest->elements == NULL) {
|
||||||
dest->count = 0;
|
dest->count = 0;
|
||||||
|
@ -452,7 +452,7 @@ s32 Collider_SetJntSph(GlobalContext* globalCtx, ColliderJntSph* dest, Actor* ac
|
||||||
Collider_SetBase(globalCtx, &dest->base, actor, &src->base);
|
Collider_SetBase(globalCtx, &dest->base, actor, &src->base);
|
||||||
dest->count = src->count;
|
dest->count = src->count;
|
||||||
dest->elements = elements;
|
dest->elements = elements;
|
||||||
ASSERT(dest->elements != NULL, "pclobj_jntsph->elem_tbl != NULL", "../z_collision_check.c", 1603);
|
ASSERT(dest->elements != NULL, "pclobj_jntsph->elem_tbl != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
for (destElem = dest->elements, srcElem = src->elements; destElem < dest->elements + dest->count;
|
for (destElem = dest->elements, srcElem = src->elements; destElem < dest->elements + dest->count;
|
||||||
destElem++, srcElem++) {
|
destElem++, srcElem++) {
|
||||||
|
@ -702,7 +702,7 @@ s32 Collider_FreeTris(GlobalContext* globalCtx, ColliderTris* tris) {
|
||||||
|
|
||||||
tris->count = 0;
|
tris->count = 0;
|
||||||
if (tris->elements != NULL) {
|
if (tris->elements != NULL) {
|
||||||
ZeldaArena_FreeDebug(tris->elements, "../z_collision_check.c", 2099);
|
ZeldaArena_FreeDebug(tris->elements, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
tris->elements = NULL;
|
tris->elements = NULL;
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -734,7 +734,7 @@ s32 Collider_SetTrisAllocType1(GlobalContext* globalCtx, ColliderTris* dest, Act
|
||||||
|
|
||||||
Collider_SetBaseType1(globalCtx, &dest->base, actor, &src->base);
|
Collider_SetBaseType1(globalCtx, &dest->base, actor, &src->base);
|
||||||
dest->count = src->count;
|
dest->count = src->count;
|
||||||
dest->elements = ZeldaArena_MallocDebug(dest->count * sizeof(ColliderTrisElement), "../z_collision_check.c", 2156);
|
dest->elements = ZeldaArena_MallocDebug(dest->count * sizeof(ColliderTrisElement), __FILE__, __LINE__);
|
||||||
if (dest->elements == NULL) {
|
if (dest->elements == NULL) {
|
||||||
dest->count = 0;
|
dest->count = 0;
|
||||||
osSyncPrintf(VT_FGCOL(RED));
|
osSyncPrintf(VT_FGCOL(RED));
|
||||||
|
@ -760,7 +760,7 @@ s32 Collider_SetTrisAlloc(GlobalContext* globalCtx, ColliderTris* dest, Actor* a
|
||||||
|
|
||||||
Collider_SetBase(globalCtx, &dest->base, actor, &src->base);
|
Collider_SetBase(globalCtx, &dest->base, actor, &src->base);
|
||||||
dest->count = src->count;
|
dest->count = src->count;
|
||||||
dest->elements = ZeldaArena_MallocDebug(dest->count * sizeof(ColliderTrisElement), "../z_collision_check.c", 2207);
|
dest->elements = ZeldaArena_MallocDebug(dest->count * sizeof(ColliderTrisElement), __FILE__, __LINE__);
|
||||||
|
|
||||||
if (dest->elements == NULL) {
|
if (dest->elements == NULL) {
|
||||||
osSyncPrintf(VT_FGCOL(RED));
|
osSyncPrintf(VT_FGCOL(RED));
|
||||||
|
@ -789,7 +789,7 @@ s32 Collider_SetTris(GlobalContext* globalCtx, ColliderTris* dest, Actor* actor,
|
||||||
Collider_SetBase(globalCtx, &dest->base, actor, &src->base);
|
Collider_SetBase(globalCtx, &dest->base, actor, &src->base);
|
||||||
dest->count = src->count;
|
dest->count = src->count;
|
||||||
dest->elements = elements;
|
dest->elements = elements;
|
||||||
ASSERT(dest->elements != NULL, "pclobj_tris->elem_tbl != NULL", "../z_collision_check.c", 2258);
|
ASSERT(dest->elements != NULL, "pclobj_tris->elem_tbl != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
for (destElem = dest->elements, srcElem = src->elements; destElem < dest->elements + dest->count;
|
for (destElem = dest->elements, srcElem = src->elements; destElem < dest->elements + dest->count;
|
||||||
destElem++, srcElem++) {
|
destElem++, srcElem++) {
|
||||||
|
@ -1180,7 +1180,7 @@ s32 CollisionCheck_SetAT(GlobalContext* globalCtx, CollisionCheckContext* colChk
|
||||||
if (FrameAdvance_IsEnabled(globalCtx) == true) {
|
if (FrameAdvance_IsEnabled(globalCtx) == true) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
ASSERT(collider->shape <= COLSHAPE_QUAD, "pcl_obj->data_type <= CL_DATA_LBL_SWRD", "../z_collision_check.c", 2997);
|
ASSERT(collider->shape <= COLSHAPE_QUAD, "pcl_obj->data_type <= CL_DATA_LBL_SWRD", __FILE__, __LINE__);
|
||||||
sATResetFuncs[collider->shape](globalCtx, collider);
|
sATResetFuncs[collider->shape](globalCtx, collider);
|
||||||
if (collider->actor != NULL && collider->actor->update == NULL) {
|
if (collider->actor != NULL && collider->actor->update == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -1205,7 +1205,7 @@ s32 CollisionCheck_SetAT(GlobalContext* globalCtx, CollisionCheckContext* colChk
|
||||||
*/
|
*/
|
||||||
s32 CollisionCheck_SetAT_SAC(GlobalContext* globalCtx, CollisionCheckContext* colChkCtx, Collider* collider,
|
s32 CollisionCheck_SetAT_SAC(GlobalContext* globalCtx, CollisionCheckContext* colChkCtx, Collider* collider,
|
||||||
s32 index) {
|
s32 index) {
|
||||||
ASSERT(collider->shape <= COLSHAPE_QUAD, "pcl_obj->data_type <= CL_DATA_LBL_SWRD", "../z_collision_check.c", 3037);
|
ASSERT(collider->shape <= COLSHAPE_QUAD, "pcl_obj->data_type <= CL_DATA_LBL_SWRD", __FILE__, __LINE__);
|
||||||
if (FrameAdvance_IsEnabled(globalCtx) == true) {
|
if (FrameAdvance_IsEnabled(globalCtx) == true) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -1249,7 +1249,7 @@ s32 CollisionCheck_SetAC(GlobalContext* globalCtx, CollisionCheckContext* colChk
|
||||||
if (FrameAdvance_IsEnabled(globalCtx) == true) {
|
if (FrameAdvance_IsEnabled(globalCtx) == true) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
ASSERT(collider->shape <= COLSHAPE_QUAD, "pcl_obj->data_type <= CL_DATA_LBL_SWRD", "../z_collision_check.c", 3114);
|
ASSERT(collider->shape <= COLSHAPE_QUAD, "pcl_obj->data_type <= CL_DATA_LBL_SWRD", __FILE__, __LINE__);
|
||||||
sACResetFuncs[collider->shape](globalCtx, collider);
|
sACResetFuncs[collider->shape](globalCtx, collider);
|
||||||
if (collider->actor != NULL && collider->actor->update == NULL) {
|
if (collider->actor != NULL && collider->actor->update == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -1274,7 +1274,7 @@ s32 CollisionCheck_SetAC(GlobalContext* globalCtx, CollisionCheckContext* colChk
|
||||||
*/
|
*/
|
||||||
s32 CollisionCheck_SetAC_SAC(GlobalContext* globalCtx, CollisionCheckContext* colChkCtx, Collider* collider,
|
s32 CollisionCheck_SetAC_SAC(GlobalContext* globalCtx, CollisionCheckContext* colChkCtx, Collider* collider,
|
||||||
s32 index) {
|
s32 index) {
|
||||||
ASSERT(collider->shape <= COLSHAPE_QUAD, "pcl_obj->data_type <= CL_DATA_LBL_SWRD", "../z_collision_check.c", 3153);
|
ASSERT(collider->shape <= COLSHAPE_QUAD, "pcl_obj->data_type <= CL_DATA_LBL_SWRD", __FILE__, __LINE__);
|
||||||
if (FrameAdvance_IsEnabled(globalCtx) == true) {
|
if (FrameAdvance_IsEnabled(globalCtx) == true) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -1319,7 +1319,7 @@ s32 CollisionCheck_SetOC(GlobalContext* globalCtx, CollisionCheckContext* colChk
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(collider->shape <= COLSHAPE_QUAD, "pcl_obj->data_type <= CL_DATA_LBL_SWRD", "../z_collision_check.c", 3229);
|
ASSERT(collider->shape <= COLSHAPE_QUAD, "pcl_obj->data_type <= CL_DATA_LBL_SWRD", __FILE__, __LINE__);
|
||||||
|
|
||||||
sOCResetFuncs[collider->shape](globalCtx, collider);
|
sOCResetFuncs[collider->shape](globalCtx, collider);
|
||||||
if (collider->actor != NULL && collider->actor->update == NULL) {
|
if (collider->actor != NULL && collider->actor->update == NULL) {
|
||||||
|
@ -1348,7 +1348,7 @@ s32 CollisionCheck_SetOC_SAC(GlobalContext* globalCtx, CollisionCheckContext* co
|
||||||
if (FrameAdvance_IsEnabled(globalCtx) == true) {
|
if (FrameAdvance_IsEnabled(globalCtx) == true) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
ASSERT(collider->shape <= COLSHAPE_QUAD, "pcl_obj->data_type <= CL_DATA_LBL_SWRD", "../z_collision_check.c", 3274);
|
ASSERT(collider->shape <= COLSHAPE_QUAD, "pcl_obj->data_type <= CL_DATA_LBL_SWRD", __FILE__, __LINE__);
|
||||||
sOCResetFuncs[collider->shape](globalCtx, collider);
|
sOCResetFuncs[collider->shape](globalCtx, collider);
|
||||||
if (collider->actor != NULL && collider->actor->update == NULL) {
|
if (collider->actor != NULL && collider->actor->update == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -2987,7 +2987,7 @@ void CollisionCheck_ApplyDamage(GlobalContext* globalCtx, CollisionCheckContext*
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(info->acHitInfo != NULL, "pclobj_elem->ac_hit_elem != NULL", "../z_collision_check.c", 6493);
|
ASSERT(info->acHitInfo != NULL, "pclobj_elem->ac_hit_elem != NULL", __FILE__, __LINE__);
|
||||||
tbl = collider->actor->colChkInfo.damageTable;
|
tbl = collider->actor->colChkInfo.damageTable;
|
||||||
if (tbl == NULL) {
|
if (tbl == NULL) {
|
||||||
damage = (f32)info->acHitInfo->toucher.damage - info->bumper.defense;
|
damage = (f32)info->acHitInfo->toucher.damage - info->bumper.defense;
|
||||||
|
|
|
@ -34,20 +34,20 @@ void func_801109B0(GlobalContext* globalCtx) {
|
||||||
// "Permanent PARAMETER Segment = %x"
|
// "Permanent PARAMETER Segment = %x"
|
||||||
osSyncPrintf("常駐PARAMETERセグメント=%x\n", parameterSize);
|
osSyncPrintf("常駐PARAMETERセグメント=%x\n", parameterSize);
|
||||||
|
|
||||||
interfaceCtx->parameterSegment = GameState_Alloc(&globalCtx->state, parameterSize, "../z_construct.c", 159);
|
interfaceCtx->parameterSegment = GameState_Alloc(&globalCtx->state, parameterSize, __FILE__, __LINE__);
|
||||||
|
|
||||||
osSyncPrintf("parameter->parameterSegment=%x\n", interfaceCtx->parameterSegment);
|
osSyncPrintf("parameter->parameterSegment=%x\n", interfaceCtx->parameterSegment);
|
||||||
|
|
||||||
ASSERT(interfaceCtx->parameterSegment != NULL, "parameter->parameterSegment != NULL", "../z_construct.c", 161);
|
ASSERT(interfaceCtx->parameterSegment != NULL, "parameter->parameterSegment != NULL", __FILE__, __LINE__);
|
||||||
DmaMgr_SendRequest1(interfaceCtx->parameterSegment, (uintptr_t)_parameter_staticSegmentRomStart, parameterSize,
|
DmaMgr_SendRequest1(interfaceCtx->parameterSegment, (uintptr_t)_parameter_staticSegmentRomStart, parameterSize,
|
||||||
"../z_construct.c", 162);
|
__FILE__, 162);
|
||||||
|
|
||||||
interfaceCtx->doActionSegment = GameState_Alloc(&globalCtx->state, 0x480, "../z_construct.c", 166);
|
interfaceCtx->doActionSegment = GameState_Alloc(&globalCtx->state, 0x480, __FILE__, __LINE__);
|
||||||
|
|
||||||
osSyncPrintf("DOアクション テクスチャ初期=%x\n", 0x480); // "DO Action Texture Initialization"
|
osSyncPrintf("DOアクション テクスチャ初期=%x\n", 0x480); // "DO Action Texture Initialization"
|
||||||
osSyncPrintf("parameter->do_actionSegment=%x\n", interfaceCtx->doActionSegment);
|
osSyncPrintf("parameter->do_actionSegment=%x\n", interfaceCtx->doActionSegment);
|
||||||
|
|
||||||
ASSERT(interfaceCtx->doActionSegment != NULL, "parameter->do_actionSegment != NULL", "../z_construct.c", 169);
|
ASSERT(interfaceCtx->doActionSegment != NULL, "parameter->do_actionSegment != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
if (gSaveContext.language == LANGUAGE_ENG) {
|
if (gSaveContext.language == LANGUAGE_ENG) {
|
||||||
doActionOffset = 0;
|
doActionOffset = 0;
|
||||||
|
@ -60,7 +60,7 @@ void func_801109B0(GlobalContext* globalCtx) {
|
||||||
memcpy(interfaceCtx->doActionSegment, ResourceMgr_LoadTexByName(gAttackDoActionENGTex), 0x180);
|
memcpy(interfaceCtx->doActionSegment, ResourceMgr_LoadTexByName(gAttackDoActionENGTex), 0x180);
|
||||||
memcpy(interfaceCtx->doActionSegment + 0x180, ResourceMgr_LoadTexByName(gCheckDoActionENGTex), 0x180);
|
memcpy(interfaceCtx->doActionSegment + 0x180, ResourceMgr_LoadTexByName(gCheckDoActionENGTex), 0x180);
|
||||||
//DmaMgr_SendRequest1(interfaceCtx->doActionSegment, (uintptr_t)_do_action_staticSegmentRomStart + doActionOffset, 0x300,
|
//DmaMgr_SendRequest1(interfaceCtx->doActionSegment, (uintptr_t)_do_action_staticSegmentRomStart + doActionOffset, 0x300,
|
||||||
//"../z_construct.c", 174);
|
//__FILE__, __LINE__);
|
||||||
|
|
||||||
if (gSaveContext.language == LANGUAGE_ENG) {
|
if (gSaveContext.language == LANGUAGE_ENG) {
|
||||||
doActionOffset = 0x480;
|
doActionOffset = 0x480;
|
||||||
|
@ -72,16 +72,16 @@ void func_801109B0(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
memcpy(interfaceCtx->doActionSegment + 0x300, ResourceMgr_LoadTexByName(gReturnDoActionENGTex), 0x180);
|
memcpy(interfaceCtx->doActionSegment + 0x300, ResourceMgr_LoadTexByName(gReturnDoActionENGTex), 0x180);
|
||||||
//DmaMgr_SendRequest1(interfaceCtx->doActionSegment + 0x300, (uintptr_t)_do_action_staticSegmentRomStart + doActionOffset,
|
//DmaMgr_SendRequest1(interfaceCtx->doActionSegment + 0x300, (uintptr_t)_do_action_staticSegmentRomStart + doActionOffset,
|
||||||
//0x180, "../z_construct.c", 178);
|
//0x180, __FILE__, __LINE__);
|
||||||
|
|
||||||
interfaceCtx->iconItemSegment = GameState_Alloc(
|
interfaceCtx->iconItemSegment = GameState_Alloc(
|
||||||
&globalCtx->state, 0x1000 * ARRAY_COUNT(gSaveContext.equips.buttonItems), "../z_construct.c", 190);
|
&globalCtx->state, 0x1000 * ARRAY_COUNT(gSaveContext.equips.buttonItems), __FILE__, __LINE__);
|
||||||
|
|
||||||
// "Icon Item Texture Initialization = %x"
|
// "Icon Item Texture Initialization = %x"
|
||||||
osSyncPrintf("アイコンアイテム テクスチャ初期=%x\n", 0x4000);
|
osSyncPrintf("アイコンアイテム テクスチャ初期=%x\n", 0x4000);
|
||||||
osSyncPrintf("parameter->icon_itemSegment=%x\n", interfaceCtx->iconItemSegment);
|
osSyncPrintf("parameter->icon_itemSegment=%x\n", interfaceCtx->iconItemSegment);
|
||||||
|
|
||||||
ASSERT(interfaceCtx->iconItemSegment != NULL, "parameter->icon_itemSegment != NULL", "../z_construct.c", 193);
|
ASSERT(interfaceCtx->iconItemSegment != NULL, "parameter->icon_itemSegment != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
osSyncPrintf("Register_Item[%x, %x, %x, %x]\n", gSaveContext.equips.buttonItems[0],
|
osSyncPrintf("Register_Item[%x, %x, %x, %x]\n", gSaveContext.equips.buttonItems[0],
|
||||||
gSaveContext.equips.buttonItems[1], gSaveContext.equips.buttonItems[2],
|
gSaveContext.equips.buttonItems[1], gSaveContext.equips.buttonItems[2],
|
||||||
|
@ -92,12 +92,12 @@ void func_801109B0(GlobalContext* globalCtx) {
|
||||||
DmaMgr_SendRequest1(interfaceCtx->iconItemSegment + 0x1000 * buttonIndex,
|
DmaMgr_SendRequest1(interfaceCtx->iconItemSegment + 0x1000 * buttonIndex,
|
||||||
_icon_item_staticSegmentRomStart +
|
_icon_item_staticSegmentRomStart +
|
||||||
gSaveContext.equips.buttonItems[buttonIndex] * 0x1000,
|
gSaveContext.equips.buttonItems[buttonIndex] * 0x1000,
|
||||||
0x1000, "../z_construct.c", 198);
|
0x1000, __FILE__, __LINE__);
|
||||||
} else if (buttonIndex == 0 && gSaveContext.equips.buttonItems[buttonIndex] != 0xFF) {
|
} else if (buttonIndex == 0 && gSaveContext.equips.buttonItems[buttonIndex] != 0xFF) {
|
||||||
DmaMgr_SendRequest1(interfaceCtx->iconItemSegment + 0x1000 * buttonIndex,
|
DmaMgr_SendRequest1(interfaceCtx->iconItemSegment + 0x1000 * buttonIndex,
|
||||||
_icon_item_staticSegmentRomStart +
|
_icon_item_staticSegmentRomStart +
|
||||||
gSaveContext.equips.buttonItems[buttonIndex] * 0x1000,
|
gSaveContext.equips.buttonItems[buttonIndex] * 0x1000,
|
||||||
0x1000, "../z_construct.c", 203);
|
0x1000, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -171,12 +171,12 @@ void Message_Init(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
View_Init(&msgCtx->view, globalCtx->state.gfxCtx);
|
View_Init(&msgCtx->view, globalCtx->state.gfxCtx);
|
||||||
|
|
||||||
msgCtx->textboxSegment = GameState_Alloc(&globalCtx->state, 0x2200, "../z_construct.c", 349);
|
msgCtx->textboxSegment = GameState_Alloc(&globalCtx->state, 0x2200, __FILE__, __LINE__);
|
||||||
|
|
||||||
osSyncPrintf("message->fukidashiSegment=%x\n", msgCtx->textboxSegment);
|
osSyncPrintf("message->fukidashiSegment=%x\n", msgCtx->textboxSegment);
|
||||||
|
|
||||||
osSyncPrintf("吹き出しgame_alloc=%x\n", 0x2200); // "Textbox game_alloc=%x"
|
osSyncPrintf("吹き出しgame_alloc=%x\n", 0x2200); // "Textbox game_alloc=%x"
|
||||||
ASSERT(msgCtx->textboxSegment != NULL, "message->fukidashiSegment != NULL", "../z_construct.c", 352);
|
ASSERT(msgCtx->textboxSegment != NULL, "message->fukidashiSegment != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
Font_LoadOrderedFont(&globalCtx->msgCtx.font);
|
Font_LoadOrderedFont(&globalCtx->msgCtx.font);
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ char regChar[] = " SOPQMYDUIZCNKXcsiWAVHGmnBdkb";
|
||||||
void func_800636C0(void) {
|
void func_800636C0(void) {
|
||||||
s32 i;
|
s32 i;
|
||||||
|
|
||||||
gGameInfo = (GameInfo*)SystemArena_MallocDebug(sizeof(GameInfo), "../z_debug.c", 260);
|
gGameInfo = (GameInfo*)SystemArena_MallocDebug(sizeof(GameInfo), __FILE__, __LINE__);
|
||||||
gGameInfo->regPage = 0;
|
gGameInfo->regPage = 0;
|
||||||
gGameInfo->regGroup = 0;
|
gGameInfo->regGroup = 0;
|
||||||
gGameInfo->regCur = 0;
|
gGameInfo->regCur = 0;
|
||||||
|
@ -222,7 +222,7 @@ void func_80063D7C(GraphicsContext* gfxCtx) {
|
||||||
if (!CVar_GetS32("gDebugEnabled", 0))
|
if (!CVar_GetS32("gDebugEnabled", 0))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_debug.c", 628);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
GfxPrint_Init(&printer);
|
GfxPrint_Init(&printer);
|
||||||
sp78 = POLY_OPA_DISP;
|
sp78 = POLY_OPA_DISP;
|
||||||
|
@ -246,7 +246,7 @@ void func_80063D7C(GraphicsContext* gfxCtx) {
|
||||||
|
|
||||||
if (1) {}
|
if (1) {}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_debug.c", 664);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
GfxPrint_Destroy(&printer);
|
GfxPrint_Destroy(&printer);
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,7 @@ void DebugDisplay_DrawObjects(GlobalContext* globalCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void DebugDisplay_DrawSpriteI8(DebugDispObject* dispObj, void* texture, GlobalContext* globalCtx) {
|
void DebugDisplay_DrawSpriteI8(DebugDispObject* dispObj, void* texture, GlobalContext* globalCtx) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_debug_display.c", 169);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80094678(globalCtx->state.gfxCtx);
|
func_80094678(globalCtx->state.gfxCtx);
|
||||||
|
|
||||||
|
@ -81,15 +81,15 @@ void DebugDisplay_DrawSpriteI8(DebugDispObject* dispObj, void* texture, GlobalCo
|
||||||
gDPLoadTextureBlock(POLY_XLU_DISP++, texture, G_IM_FMT_I, G_IM_SIZ_8b, 16, 16, 0, G_TX_NOMIRROR | G_TX_WRAP,
|
gDPLoadTextureBlock(POLY_XLU_DISP++, texture, G_IM_FMT_I, G_IM_SIZ_8b, 16, 16, 0, G_TX_NOMIRROR | G_TX_WRAP,
|
||||||
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
||||||
|
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_debug_display.c", 189),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, gDebugSpriteDL);
|
gSPDisplayList(POLY_XLU_DISP++, gDebugSpriteDL);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_debug_display.c", 192);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DebugDisplay_DrawPolygon(DebugDispObject* dispObj, void* dlist, GlobalContext* globalCtx) {
|
void DebugDisplay_DrawPolygon(DebugDispObject* dispObj, void* dlist, GlobalContext* globalCtx) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_debug_display.c", 211);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_8009435C(globalCtx->state.gfxCtx);
|
func_8009435C(globalCtx->state.gfxCtx);
|
||||||
|
|
||||||
|
@ -100,9 +100,9 @@ void DebugDisplay_DrawPolygon(DebugDispObject* dispObj, void* dlist, GlobalConte
|
||||||
Matrix_SetTranslateRotateYXZ(dispObj->pos.x, dispObj->pos.y, dispObj->pos.z, &dispObj->rot);
|
Matrix_SetTranslateRotateYXZ(dispObj->pos.x, dispObj->pos.y, dispObj->pos.z, &dispObj->rot);
|
||||||
Matrix_Scale(dispObj->scale.x, dispObj->scale.y, dispObj->scale.z, MTXMODE_APPLY);
|
Matrix_Scale(dispObj->scale.x, dispObj->scale.y, dispObj->scale.z, MTXMODE_APPLY);
|
||||||
|
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_debug_display.c", 228),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, dlist);
|
gSPDisplayList(POLY_XLU_DISP++, dlist);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_debug_display.c", 231);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1916,7 +1916,7 @@ void func_80068C3C(GlobalContext* globalCtx, CutsceneContext* csCtx) {
|
||||||
if (0) {} // Also necessary to match
|
if (0) {} // Also necessary to match
|
||||||
|
|
||||||
if (BREG(0) != 0) {
|
if (BREG(0) != 0) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_demo.c", 4101);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
prevDisplayList = POLY_OPA_DISP;
|
prevDisplayList = POLY_OPA_DISP;
|
||||||
displayList = Graph_GfxPlusOne(POLY_OPA_DISP);
|
displayList = Graph_GfxPlusOne(POLY_OPA_DISP);
|
||||||
|
@ -1926,7 +1926,7 @@ void func_80068C3C(GlobalContext* globalCtx, CutsceneContext* csCtx) {
|
||||||
Graph_BranchDlist(prevDisplayList, displayList);
|
Graph_BranchDlist(prevDisplayList, displayList);
|
||||||
POLY_OPA_DISP = displayList;
|
POLY_OPA_DISP = displayList;
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_demo.c", 4108);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
csCtx->frames++;
|
csCtx->frames++;
|
||||||
|
|
|
@ -382,36 +382,36 @@ void GetItem_Draw(GlobalContext* globalCtx, s16 drawId) {
|
||||||
void GetItem_DrawMaskOrBombchu(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawMaskOrBombchu(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 556);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093BA8(globalCtx->state.gfxCtx);
|
func_80093BA8(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 560),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 565);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawSoldOut(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawSoldOut(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 572);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
POLY_XLU_DISP = Gfx_CallSetupDL(POLY_XLU_DISP, 5);
|
POLY_XLU_DISP = Gfx_CallSetupDL(POLY_XLU_DISP, 5);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 576),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 581);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawBlueFire(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawBlueFire(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 588);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 592),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
|
@ -423,26 +423,26 @@ void GetItem_DrawBlueFire(GlobalContext* globalCtx, s16 drawId) {
|
||||||
Matrix_Push();
|
Matrix_Push();
|
||||||
Matrix_Translate(-8.0f, -2.0f, 0.0f, MTXMODE_APPLY);
|
Matrix_Translate(-8.0f, -2.0f, 0.0f, MTXMODE_APPLY);
|
||||||
Matrix_ReplaceRotation(&globalCtx->billboardMtxF);
|
Matrix_ReplaceRotation(&globalCtx->billboardMtxF);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 615),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
Matrix_Pop();
|
Matrix_Pop();
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 621);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawPoes(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawPoes(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 628);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 632),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 641),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
|
@ -451,27 +451,27 @@ void GetItem_DrawPoes(GlobalContext* globalCtx, s16 drawId) {
|
||||||
1 * -(globalCtx->state.frames * 6), 16, 32));
|
1 * -(globalCtx->state.frames * 6), 16, 32));
|
||||||
Matrix_Push();
|
Matrix_Push();
|
||||||
Matrix_ReplaceRotation(&globalCtx->billboardMtxF);
|
Matrix_ReplaceRotation(&globalCtx->billboardMtxF);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 656),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[3]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[3]);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
||||||
Matrix_Pop();
|
Matrix_Pop();
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 663);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawFairy(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawFairy(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 670);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 674),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 683),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
|
@ -480,18 +480,18 @@ void GetItem_DrawFairy(GlobalContext* globalCtx, s16 drawId) {
|
||||||
1 * -(globalCtx->state.frames * 6), 32, 32));
|
1 * -(globalCtx->state.frames * 6), 32, 32));
|
||||||
Matrix_Push();
|
Matrix_Push();
|
||||||
Matrix_ReplaceRotation(&globalCtx->billboardMtxF);
|
Matrix_ReplaceRotation(&globalCtx->billboardMtxF);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 698),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
||||||
Matrix_Pop();
|
Matrix_Pop();
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 704);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawMirrorShield(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawMirrorShield(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 712);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08,
|
gSPSegment(POLY_OPA_DISP++, 0x08,
|
||||||
|
@ -499,25 +499,25 @@ void GetItem_DrawMirrorShield(GlobalContext* globalCtx, s16 drawId) {
|
||||||
1 * (globalCtx->state.frames * 2) % 256, 64, 64, 1,
|
1 * (globalCtx->state.frames * 2) % 256, 64, 64, 1,
|
||||||
0 * (globalCtx->state.frames * 0) % 128, 1 * (globalCtx->state.frames * 1) % 128, 32,
|
0 * (globalCtx->state.frames * 0) % 128, 1 * (globalCtx->state.frames * 1) % 128, 32,
|
||||||
32));
|
32));
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 723),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 730),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 735);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawSkullToken(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawSkullToken(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 742);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 746),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
|
@ -526,56 +526,56 @@ void GetItem_DrawSkullToken(GlobalContext* globalCtx, s16 drawId) {
|
||||||
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 0 * (globalCtx->state.frames * 0),
|
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 0 * (globalCtx->state.frames * 0),
|
||||||
1 * -(globalCtx->state.frames * 5), 32, 32, 1, 0 * (globalCtx->state.frames * 0),
|
1 * -(globalCtx->state.frames * 5), 32, 32, 1, 0 * (globalCtx->state.frames * 0),
|
||||||
0 * (globalCtx->state.frames * 0), 32, 64));
|
0 * (globalCtx->state.frames * 0), 32, 64));
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 760),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 765);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawEggOrMedallion(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawEggOrMedallion(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 772);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093BA8(globalCtx->state.gfxCtx);
|
func_80093BA8(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 776),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 783);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawCompass(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawCompass(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 811);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 815),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
POLY_XLU_DISP = Gfx_CallSetupDL(POLY_XLU_DISP, 5);
|
POLY_XLU_DISP = Gfx_CallSetupDL(POLY_XLU_DISP, 5);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 822),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 827);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawPotion(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawPotion(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 834);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08,
|
gSPSegment(POLY_OPA_DISP++, 0x08,
|
||||||
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, -1 * (globalCtx->state.frames * 1),
|
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, -1 * (globalCtx->state.frames * 1),
|
||||||
1 * (globalCtx->state.frames * 1), 32, 32, 1, -1 * (globalCtx->state.frames * 1),
|
1 * (globalCtx->state.frames * 1), 32, 32, 1, -1 * (globalCtx->state.frames * 1),
|
||||||
1 * (globalCtx->state.frames * 1), 32, 32));
|
1 * (globalCtx->state.frames * 1), 32, 32));
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 845),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
@ -583,290 +583,290 @@ void GetItem_DrawPotion(GlobalContext* globalCtx, s16 drawId) {
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[3]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[3]);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 855),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[4]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[4]);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[5]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[5]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 861);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawGoronSword(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawGoronSword(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 868);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08,
|
gSPSegment(POLY_OPA_DISP++, 0x08,
|
||||||
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 1 * (globalCtx->state.frames * 1),
|
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 1 * (globalCtx->state.frames * 1),
|
||||||
0 * (globalCtx->state.frames * 1), 32, 32, 1, 0 * (globalCtx->state.frames * 1),
|
0 * (globalCtx->state.frames * 1), 32, 32, 1, 0 * (globalCtx->state.frames * 1),
|
||||||
0 * (globalCtx->state.frames * 1), 32, 32));
|
0 * (globalCtx->state.frames * 1), 32, 32));
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 878),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 883);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawDekuNuts(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawDekuNuts(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 890);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08,
|
gSPSegment(POLY_OPA_DISP++, 0x08,
|
||||||
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 1 * (globalCtx->state.frames * 6),
|
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 1 * (globalCtx->state.frames * 6),
|
||||||
1 * (globalCtx->state.frames * 6), 32, 32, 1, 1 * (globalCtx->state.frames * 6),
|
1 * (globalCtx->state.frames * 6), 32, 32, 1, 1 * (globalCtx->state.frames * 6),
|
||||||
1 * (globalCtx->state.frames * 6), 32, 32));
|
1 * (globalCtx->state.frames * 6), 32, 32));
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 901),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 906);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawRecoveryHeart(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawRecoveryHeart(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 913);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 0 * (globalCtx->state.frames * 1),
|
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 0 * (globalCtx->state.frames * 1),
|
||||||
1 * -(globalCtx->state.frames * 3), 32, 32, 1, 0 * (globalCtx->state.frames * 1),
|
1 * -(globalCtx->state.frames * 3), 32, 32, 1, 0 * (globalCtx->state.frames * 1),
|
||||||
1 * -(globalCtx->state.frames * 2), 32, 32));
|
1 * -(globalCtx->state.frames * 2), 32, 32));
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 924),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 929);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawFish(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawFish(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 936);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 0 * (globalCtx->state.frames * 0),
|
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 0 * (globalCtx->state.frames * 0),
|
||||||
1 * (globalCtx->state.frames * 1), 32, 32, 1, 0 * (globalCtx->state.frames * 0),
|
1 * (globalCtx->state.frames * 1), 32, 32, 1, 0 * (globalCtx->state.frames * 0),
|
||||||
1 * (globalCtx->state.frames * 1), 32, 32));
|
1 * (globalCtx->state.frames * 1), 32, 32));
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 947),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 952);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawOpa0(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawOpa0(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 959);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 963),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 968);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawOpa0Xlu1(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawOpa0Xlu1(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 975);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 979),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 986),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 991);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawXlu01(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawXlu01(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 998);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 1002),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1008);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawOpa10Xlu2(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawOpa10Xlu2(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1015);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 1019),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 1027),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1032);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawMagicArrow(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawMagicArrow(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1039);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 1043),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 1050),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1056);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawMagicSpell(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawMagicSpell(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1063);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 1 * (globalCtx->state.frames * 2),
|
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 1 * (globalCtx->state.frames * 2),
|
||||||
1 * -(globalCtx->state.frames * 6), 32, 32, 1, 1 * (globalCtx->state.frames * 1),
|
1 * -(globalCtx->state.frames * 6), 32, 32, 1, 1 * (globalCtx->state.frames * 1),
|
||||||
-1 * (globalCtx->state.frames * 2), 32, 32));
|
-1 * (globalCtx->state.frames * 2), 32, 32));
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 1074),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1081);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawOpa1023(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawOpa1023(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1088);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 1092),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[2]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[2]);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[3]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[3]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1100);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawOpa10Xlu32(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawOpa10Xlu32(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1108);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 1112),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 1120),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[3]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[3]);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1126);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawSmallRupee(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawSmallRupee(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1133);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
Matrix_Scale(0.7f, 0.7f, 0.7f, MTXMODE_APPLY);
|
Matrix_Scale(0.7f, 0.7f, 0.7f, MTXMODE_APPLY);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 1140),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 1148),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[3]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[3]);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1154);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawScale(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawScale(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1162);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 1 * (globalCtx->state.frames * 2),
|
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 1 * (globalCtx->state.frames * 2),
|
||||||
-1 * (globalCtx->state.frames * 2), 64, 64, 1, 1 * (globalCtx->state.frames * 4),
|
-1 * (globalCtx->state.frames * 2), 64, 64, 1, 1 * (globalCtx->state.frames * 4),
|
||||||
1 * -(globalCtx->state.frames * 4), 32, 32));
|
1 * -(globalCtx->state.frames * 4), 32, 32));
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 1173),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[3]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[3]);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1181);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawBulletBag(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawBulletBag(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1188);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 1192),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 1200),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[2]);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[3]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[3]);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[4]);
|
gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[4]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1207);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetItem_DrawWallet(GlobalContext* globalCtx, s16 drawId) {
|
void GetItem_DrawWallet(GlobalContext* globalCtx, s16 drawId) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1214);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_draw.c", 1218),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[1]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[1]);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[0]);
|
||||||
|
@ -877,5 +877,5 @@ void GetItem_DrawWallet(GlobalContext* globalCtx, s16 drawId) {
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[6]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[6]);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[7]);
|
gSPDisplayList(POLY_OPA_DISP++, sDrawItemTable[drawId].dlists[7]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_draw.c", 1230);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
|
@ -382,11 +382,11 @@ void EffectBlure_GetComputedValues(EffectBlure* this, s32 index, f32 ratio, Vec3
|
||||||
}
|
}
|
||||||
|
|
||||||
void EffectBlure_SetupSmooth(EffectBlure* this, GraphicsContext* gfxCtx) {
|
void EffectBlure_SetupSmooth(EffectBlure* this, GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_eff_blure.c", 809);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
POLY_XLU_DISP = Gfx_CallSetupDL(POLY_XLU_DISP, 0x26);
|
POLY_XLU_DISP = Gfx_CallSetupDL(POLY_XLU_DISP, 0x26);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_eff_blure.c", 813);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// original name: "SQ_NoInterpolate_disp"
|
// original name: "SQ_NoInterpolate_disp"
|
||||||
|
@ -403,7 +403,7 @@ void EffectBlure_DrawElemNoInterpolation(EffectBlure* this, EffectBlureElement*
|
||||||
Vec3f sp60;
|
Vec3f sp60;
|
||||||
Vec3f sp54;
|
Vec3f sp54;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_eff_blure.c", 838);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
Math_Vec3s_ToVec3f(&sp6C, &this->elements[0].p2);
|
Math_Vec3s_ToVec3f(&sp6C, &this->elements[0].p2);
|
||||||
|
|
||||||
|
@ -483,7 +483,7 @@ void EffectBlure_DrawElemNoInterpolation(EffectBlure* this, EffectBlureElement*
|
||||||
gSP2Triangles(POLY_XLU_DISP++, 0, 1, 2, 0, 0, 2, 3, 0);
|
gSP2Triangles(POLY_XLU_DISP++, 0, 1, 2, 0, 0, 2, 3, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_eff_blure.c", 932);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EffectBlure_DrawElemHermiteInterpolation(EffectBlure* this, EffectBlureElement* elem, s32 index,
|
void EffectBlure_DrawElemHermiteInterpolation(EffectBlure* this, EffectBlureElement* elem, s32 index,
|
||||||
|
@ -514,7 +514,7 @@ void EffectBlure_DrawElemHermiteInterpolation(EffectBlure* this, EffectBlureElem
|
||||||
Color_RGBA8 sp144;
|
Color_RGBA8 sp144;
|
||||||
Vec3f sp138;
|
Vec3f sp138;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_eff_blure.c", 971);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
Math_Vec3s_ToVec3f(&sp138, &this->elements[0].p2);
|
Math_Vec3s_ToVec3f(&sp138, &this->elements[0].p2);
|
||||||
|
|
||||||
|
@ -535,7 +535,7 @@ void EffectBlure_DrawElemHermiteInterpolation(EffectBlure* this, EffectBlureElem
|
||||||
Vec3f sp118;
|
Vec3f sp118;
|
||||||
Vec3f sp10C;
|
Vec3f sp10C;
|
||||||
|
|
||||||
ASSERT(index - 1 >= 0, "index - 1 >= 0", "../z_eff_blure.c", 1005);
|
ASSERT(index - 1 >= 0, "index - 1 >= 0", __FILE__, __LINE__);
|
||||||
|
|
||||||
ratio = (f32)(elem - 1)->timer / (f32)this->elemDuration;
|
ratio = (f32)(elem - 1)->timer / (f32)this->elemDuration;
|
||||||
EffectBlure_GetComputedValues(this, index - 1, ratio, &sp1EC, &sp1E4, &sp1DC, &sp1D8);
|
EffectBlure_GetComputedValues(this, index - 1, ratio, &sp1EC, &sp1E4, &sp1DC, &sp1D8);
|
||||||
|
@ -555,7 +555,7 @@ void EffectBlure_DrawElemHermiteInterpolation(EffectBlure* this, EffectBlureElem
|
||||||
Vec3f sp100;
|
Vec3f sp100;
|
||||||
Vec3f spF4;
|
Vec3f spF4;
|
||||||
|
|
||||||
ASSERT(index + 2 < this->numElements, "index + 2 < this2->now_edge_num", "../z_eff_blure.c", 1032);
|
ASSERT(index + 2 < this->numElements, "index + 2 < this2->now_edge_num", __FILE__, __LINE__);
|
||||||
|
|
||||||
ratio = (f32)(elem + 2)->timer / (f32)this->elemDuration;
|
ratio = (f32)(elem + 2)->timer / (f32)this->elemDuration;
|
||||||
EffectBlure_GetComputedValues(this, index + 2, ratio, &sp1EC, &sp1E4, &sp1DC, &sp1D8);
|
EffectBlure_GetComputedValues(this, index + 2, ratio, &sp1EC, &sp1E4, &sp1DC, &sp1D8);
|
||||||
|
@ -656,7 +656,7 @@ void EffectBlure_DrawElemHermiteInterpolation(EffectBlure* this, EffectBlureElem
|
||||||
gSP2Triangles(POLY_XLU_DISP++, 12, 13, 15, 0, 12, 15, 14, 0);
|
gSP2Triangles(POLY_XLU_DISP++, 12, 13, 15, 0, 12, 15, 14, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_eff_blure.c", 1184);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EffectBlure_DrawSmooth(EffectBlure* this2, GraphicsContext* gfxCtx) {
|
void EffectBlure_DrawSmooth(EffectBlure* this2, GraphicsContext* gfxCtx) {
|
||||||
|
@ -668,7 +668,7 @@ void EffectBlure_DrawSmooth(EffectBlure* this2, GraphicsContext* gfxCtx) {
|
||||||
MtxF sp5C;
|
MtxF sp5C;
|
||||||
Mtx* mtx;
|
Mtx* mtx;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_eff_blure.c", 1201);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (this->numElements < 2) {
|
if (this->numElements < 2) {
|
||||||
return;
|
return;
|
||||||
|
@ -710,19 +710,19 @@ void EffectBlure_DrawSmooth(EffectBlure* this2, GraphicsContext* gfxCtx) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_eff_blure.c", 1263);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EffectBlure_SetupSimple(GraphicsContext* gfxCtx, EffectBlure* this, Vtx* vtx) {
|
void EffectBlure_SetupSimple(GraphicsContext* gfxCtx, EffectBlure* this, Vtx* vtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_eff_blure.c", 1280);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
POLY_XLU_DISP = Gfx_CallSetupDL(POLY_XLU_DISP, 0x26);
|
POLY_XLU_DISP = Gfx_CallSetupDL(POLY_XLU_DISP, 0x26);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_eff_blure.c", 1285);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EffectBlure_SetupSimpleAlt(GraphicsContext* gfxCtx, EffectBlure* this, Vtx* vtx) {
|
void EffectBlure_SetupSimpleAlt(GraphicsContext* gfxCtx, EffectBlure* this, Vtx* vtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_eff_blure.c", 1294);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
POLY_XLU_DISP = Gfx_CallSetupDL(POLY_XLU_DISP, 0x26);
|
POLY_XLU_DISP = Gfx_CallSetupDL(POLY_XLU_DISP, 0x26);
|
||||||
|
@ -743,7 +743,7 @@ void EffectBlure_SetupSimpleAlt(GraphicsContext* gfxCtx, EffectBlure* this, Vtx*
|
||||||
|
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, this->altEnvColor.r, this->altEnvColor.g, this->altEnvColor.b, this->altEnvColor.a);
|
gDPSetEnvColor(POLY_XLU_DISP++, this->altEnvColor.r, this->altEnvColor.g, this->altEnvColor.b, this->altEnvColor.a);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_eff_blure.c", 1329);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void (*sSetupHandlers[])(GraphicsContext* gfxCtx, EffectBlure* this, Vtx* vtx) = {
|
void (*sSetupHandlers[])(GraphicsContext* gfxCtx, EffectBlure* this, Vtx* vtx) = {
|
||||||
|
@ -757,7 +757,7 @@ s32 D_80115788 = 0; // unused
|
||||||
void EffectBlure_DrawSimpleVertices(GraphicsContext* gfxCtx, EffectBlure* this, Vtx* vtx) {
|
void EffectBlure_DrawSimpleVertices(GraphicsContext* gfxCtx, EffectBlure* this, Vtx* vtx) {
|
||||||
Mtx* mtx;
|
Mtx* mtx;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_eff_blure.c", 1356);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
sSetupHandlers[this->drawMode](gfxCtx, this, vtx);
|
sSetupHandlers[this->drawMode](gfxCtx, this, vtx);
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
|
@ -829,7 +829,7 @@ void EffectBlure_DrawSimpleVertices(GraphicsContext* gfxCtx, EffectBlure* this,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_eff_blure.c", 1452);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
Vtx_t D_8011578C[] = {
|
Vtx_t D_8011578C[] = {
|
||||||
|
@ -949,7 +949,7 @@ void EffectBlure_Draw(void* thisx, GraphicsContext* gfxCtx) {
|
||||||
s32 phi_t2;
|
s32 phi_t2;
|
||||||
|
|
||||||
FrameInterpolation_RecordOpenChild(this, 0);
|
FrameInterpolation_RecordOpenChild(this, 0);
|
||||||
OPEN_DISPS(gfxCtx, "../z_eff_blure.c", 1596);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPMatrix(POLY_XLU_DISP++, &gMtxClear, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
gSPMatrix(POLY_XLU_DISP++, &gMtxClear, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
|
|
||||||
|
@ -1061,6 +1061,6 @@ void EffectBlure_Draw(void* thisx, GraphicsContext* gfxCtx) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_eff_blure.c", 1823);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
FrameInterpolation_RecordCloseChild();
|
FrameInterpolation_RecordCloseChild();
|
||||||
}
|
}
|
||||||
|
|
|
@ -157,7 +157,7 @@ void EffectShieldParticle_Draw(void* thisx, GraphicsContext* gfxCtx) {
|
||||||
Color_RGBA8 envColor;
|
Color_RGBA8 envColor;
|
||||||
|
|
||||||
FrameInterpolation_RecordOpenChild(this, 0);
|
FrameInterpolation_RecordOpenChild(this, 0);
|
||||||
OPEN_DISPS(gfxCtx, "../z_eff_shield_particle.c", 272);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (this != NULL) {
|
if (this != NULL) {
|
||||||
POLY_XLU_DISP = Gfx_CallSetupDL(POLY_XLU_DISP, 0x26);
|
POLY_XLU_DISP = Gfx_CallSetupDL(POLY_XLU_DISP, 0x26);
|
||||||
|
@ -215,6 +215,6 @@ void EffectShieldParticle_Draw(void* thisx, GraphicsContext* gfxCtx) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_eff_shield_particle.c", 359);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
FrameInterpolation_RecordCloseChild();
|
FrameInterpolation_RecordCloseChild();
|
||||||
}
|
}
|
||||||
|
|
|
@ -155,7 +155,7 @@ void EffectSpark_Draw(void* thisx, GraphicsContext* gfxCtx) {
|
||||||
f32 ratio;
|
f32 ratio;
|
||||||
|
|
||||||
FrameInterpolation_RecordOpenChild(this, 0);
|
FrameInterpolation_RecordOpenChild(this, 0);
|
||||||
OPEN_DISPS(gfxCtx, "../z_eff_spark.c", 293);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (this != NULL) {
|
if (this != NULL) {
|
||||||
gSPMatrix(POLY_XLU_DISP++, &gMtxClear, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
gSPMatrix(POLY_XLU_DISP++, &gMtxClear, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
|
@ -276,6 +276,6 @@ void EffectSpark_Draw(void* thisx, GraphicsContext* gfxCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
end:
|
end:
|
||||||
CLOSE_DISPS(gfxCtx, "../z_eff_spark.c", 498);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
FrameInterpolation_RecordCloseChild();
|
FrameInterpolation_RecordCloseChild();
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ void func_80026230(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 a
|
||||||
Gfx* displayListHead;
|
Gfx* displayListHead;
|
||||||
f32 absCos;
|
f32 absCos;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 113);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
displayListHead = POLY_OPA_DISP;
|
displayListHead = POLY_OPA_DISP;
|
||||||
cos = Math_CosS((0x8000 / arg3) * arg2);
|
cos = Math_CosS((0x8000 / arg3) * arg2);
|
||||||
|
@ -25,7 +25,7 @@ void func_80026230(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 a
|
||||||
|
|
||||||
if (1) {} // Necessary to match
|
if (1) {} // Necessary to match
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 129);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80026400(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 arg3) {
|
void func_80026400(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 arg3) {
|
||||||
|
@ -33,7 +33,7 @@ void func_80026400(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 a
|
||||||
f32 cos;
|
f32 cos;
|
||||||
|
|
||||||
if (arg3 != 0) {
|
if (arg3 != 0) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 141);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
cos = Math_CosS((0x4000 / arg3) * arg2);
|
cos = Math_CosS((0x4000 / arg3) * arg2);
|
||||||
displayListHead = POLY_OPA_DISP;
|
displayListHead = POLY_OPA_DISP;
|
||||||
|
@ -46,19 +46,19 @@ void func_80026400(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 a
|
||||||
|
|
||||||
if (1) {} // Necessary to match
|
if (1) {} // Necessary to match
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 153);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80026608(GlobalContext* globalCtx) {
|
void func_80026608(GlobalContext* globalCtx) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 159);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPPipeSync(POLY_OPA_DISP++);
|
gDPPipeSync(POLY_OPA_DISP++);
|
||||||
POLY_OPA_DISP = Gameplay_SetFog(globalCtx, POLY_OPA_DISP);
|
POLY_OPA_DISP = Gameplay_SetFog(globalCtx, POLY_OPA_DISP);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 164);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80026690(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 arg3) {
|
void func_80026690(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 arg3) {
|
||||||
|
@ -66,7 +66,7 @@ void func_80026690(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 a
|
||||||
Gfx* displayListHead;
|
Gfx* displayListHead;
|
||||||
f32 absCos;
|
f32 absCos;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 178);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
displayListHead = POLY_XLU_DISP;
|
displayListHead = POLY_XLU_DISP;
|
||||||
cos = Math_CosS((0x8000 / arg3) * arg2);
|
cos = Math_CosS((0x8000 / arg3) * arg2);
|
||||||
|
@ -86,14 +86,14 @@ void func_80026690(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 a
|
||||||
|
|
||||||
if (1) {} // Necessary to match
|
if (1) {} // Necessary to match
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 194);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80026860(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 arg3) {
|
void func_80026860(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 arg3) {
|
||||||
f32 cos;
|
f32 cos;
|
||||||
Gfx* displayListHead;
|
Gfx* displayListHead;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 201);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
displayListHead = POLY_XLU_DISP;
|
displayListHead = POLY_XLU_DISP;
|
||||||
cos = Math_CosS((0x4000 / arg3) * arg2);
|
cos = Math_CosS((0x4000 / arg3) * arg2);
|
||||||
|
@ -106,16 +106,16 @@ void func_80026860(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 a
|
||||||
|
|
||||||
if (1) {} // Necessary to match
|
if (1) {} // Necessary to match
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 212);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80026A6C(GlobalContext* globalCtx) {
|
void func_80026A6C(GlobalContext* globalCtx) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 217);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
POLY_XLU_DISP = Gameplay_SetFog(globalCtx, POLY_XLU_DISP);
|
POLY_XLU_DISP = Gameplay_SetFog(globalCtx, POLY_XLU_DISP);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 222);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,8 +17,8 @@ void EffectSs_InitInfo(GlobalContext* globalCtx, s32 tableSize) {
|
||||||
}
|
}
|
||||||
|
|
||||||
sEffectSsInfo.table =
|
sEffectSsInfo.table =
|
||||||
GameState_Alloc(&globalCtx->state, tableSize * sizeof(EffectSs), "../z_effect_soft_sprite.c", 289);
|
GameState_Alloc(&globalCtx->state, tableSize * sizeof(EffectSs), __FILE__, __LINE__);
|
||||||
ASSERT(sEffectSsInfo.table != NULL, "EffectSS2Info.data_table != NULL", "../z_effect_soft_sprite.c", 290);
|
ASSERT(sEffectSsInfo.table != NULL, "EffectSS2Info.data_table != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
sEffectSsInfo.searchStartIndex = 0;
|
sEffectSsInfo.searchStartIndex = 0;
|
||||||
sEffectSsInfo.tableSize = tableSize;
|
sEffectSsInfo.tableSize = tableSize;
|
||||||
|
@ -54,7 +54,7 @@ void EffectSs_ClearAll(GlobalContext* globalCtx) {
|
||||||
addr = overlay->loadedRamAddr;
|
addr = overlay->loadedRamAddr;
|
||||||
|
|
||||||
if (addr != NULL) {
|
if (addr != NULL) {
|
||||||
ZeldaArena_FreeDebug(addr, "../z_effect_soft_sprite.c", 337);
|
ZeldaArena_FreeDebug(addr, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
overlay->loadedRamAddr = NULL;
|
overlay->loadedRamAddr = NULL;
|
||||||
|
@ -175,7 +175,7 @@ void EffectSs_Spawn(GlobalContext* globalCtx, s32 type, s32 priority, void* init
|
||||||
|
|
||||||
overlayEntry = &gEffectSsOverlayTable[type];
|
overlayEntry = &gEffectSsOverlayTable[type];
|
||||||
|
|
||||||
ASSERT(type < EFFECT_SS_TYPE_MAX, "type < EFFECT_SS2_TYPE_LAST_LABEL", "../z_effect_soft_sprite.c", 556);
|
ASSERT(type < EFFECT_SS_TYPE_MAX, "type < EFFECT_SS2_TYPE_LAST_LABEL", __FILE__, __LINE__);
|
||||||
|
|
||||||
if (EffectSs_FindSlot(priority, &index) != 0) {
|
if (EffectSs_FindSlot(priority, &index) != 0) {
|
||||||
// Abort because we couldn't find a suitable slot to add this effect in
|
// Abort because we couldn't find a suitable slot to add this effect in
|
||||||
|
@ -191,7 +191,7 @@ void EffectSs_Spawn(GlobalContext* globalCtx, s32 type, s32 priority, void* init
|
||||||
initInfo = overlayEntry->initInfo;
|
initInfo = overlayEntry->initInfo;
|
||||||
} else {
|
} else {
|
||||||
if (overlayEntry->loadedRamAddr == NULL) {
|
if (overlayEntry->loadedRamAddr == NULL) {
|
||||||
overlayEntry->loadedRamAddr = ZeldaArena_MallocRDebug(overlaySize, "../z_effect_soft_sprite.c", 585);
|
overlayEntry->loadedRamAddr = ZeldaArena_MallocRDebug(overlaySize, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (overlayEntry->loadedRamAddr == NULL) {
|
if (overlayEntry->loadedRamAddr == NULL) {
|
||||||
osSyncPrintf(VT_FGCOL(RED));
|
osSyncPrintf(VT_FGCOL(RED));
|
||||||
|
|
|
@ -51,7 +51,7 @@ void EffectSs_DrawGEffect(GlobalContext* globalCtx, EffectSs* this, void* textur
|
||||||
Mtx* mtx;
|
Mtx* mtx;
|
||||||
void* object = globalCtx->objectCtx.status[this->rgObjBankIdx].segment;
|
void* object = globalCtx->objectCtx.status[this->rgObjBankIdx].segment;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_effect_soft_sprite_old_init.c", 196);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
scale = this->rgScale * 0.0025f;
|
scale = this->rgScale * 0.0025f;
|
||||||
SkinMatrix_SetTranslate(&mfTrans, this->pos.x, this->pos.y, this->pos.z);
|
SkinMatrix_SetTranslate(&mfTrans, this->pos.x, this->pos.y, this->pos.z);
|
||||||
|
@ -73,7 +73,7 @@ void EffectSs_DrawGEffect(GlobalContext* globalCtx, EffectSs* this, void* textur
|
||||||
gSPDisplayList(POLY_XLU_DISP++, this->gfx);
|
gSPDisplayList(POLY_XLU_DISP++, this->gfx);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_effect_soft_sprite_old_init.c", 243);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// EffectSsDust Spawn Functions
|
// EffectSsDust Spawn Functions
|
||||||
|
|
|
@ -58,8 +58,8 @@ u32 ElfMessage_CheckCondition(ElfMessage* msg) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_STRING("企画外 条件", "../z_elf_message.c", 156); // "Unplanned conditions"
|
LOG_STRING("企画外 条件", __FILE__, __LINE__); // "Unplanned conditions"
|
||||||
ASSERT(0, "0", "../z_elf_message.c", 157);
|
ASSERT(0, "0", __FILE__, __LINE__);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -141,8 +141,8 @@ u16 ElfMessage_GetTextFromMsgs(ElfMessage* msg) {
|
||||||
case (ELF_MSG_TYPE_END << 5):
|
case (ELF_MSG_TYPE_END << 5):
|
||||||
return msg->byte2 | 0x100;
|
return msg->byte2 | 0x100;
|
||||||
default:
|
default:
|
||||||
LOG_STRING("企画外 条件", "../z_elf_message.c", 281); // "Unplanned conditions"
|
LOG_STRING("企画外 条件", __FILE__, __LINE__); // "Unplanned conditions"
|
||||||
ASSERT(0, "0", "../z_elf_message.c", 282);
|
ASSERT(0, "0", __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
msg++;
|
msg++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -348,7 +348,7 @@ void EnAObj_Update(Actor* thisx, GlobalContext* globalCtx) {
|
||||||
void EnAObj_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
void EnAObj_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
||||||
s32 type = thisx->params;
|
s32 type = thisx->params;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_en_a_keep.c", 701);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
|
|
||||||
|
@ -360,9 +360,9 @@ void EnAObj_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 1, 60, 60, 60, 50);
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 1, 60, 60, 60, 50);
|
||||||
}
|
}
|
||||||
|
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_en_a_keep.c", 712),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDLists[type]);
|
gSPDisplayList(POLY_OPA_DISP++, sDLists[type]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_en_a_keep.c", 715);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1244,7 +1244,7 @@ void EnItem00_DrawRupee(EnItem00* this, GlobalContext* globalCtx) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
s32 texIndex;
|
s32 texIndex;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_en_item00.c", 1546);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
func_8002EBCC(&this->actor, globalCtx, 0);
|
func_8002EBCC(&this->actor, globalCtx, 0);
|
||||||
|
@ -1255,14 +1255,14 @@ void EnItem00_DrawRupee(EnItem00* this, GlobalContext* globalCtx) {
|
||||||
texIndex = this->actor.params - 0x10;
|
texIndex = this->actor.params - 0x10;
|
||||||
}
|
}
|
||||||
|
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_en_item00.c", 1562),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
|
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sRupeeTex[texIndex]));
|
gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sRupeeTex[texIndex]));
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, gRupeeDL);
|
gSPDisplayList(POLY_OPA_DISP++, gRupeeDL);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_en_item00.c", 1568);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1271,7 +1271,7 @@ void EnItem00_DrawRupee(EnItem00* this, GlobalContext* globalCtx) {
|
||||||
void EnItem00_DrawCollectible(EnItem00* this, GlobalContext* globalCtx) {
|
void EnItem00_DrawCollectible(EnItem00* this, GlobalContext* globalCtx) {
|
||||||
s32 texIndex = this->actor.params - 3;
|
s32 texIndex = this->actor.params - 3;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_en_item00.c", 1594);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
POLY_OPA_DISP = Gameplay_SetFog(globalCtx, POLY_OPA_DISP);
|
POLY_OPA_DISP = Gameplay_SetFog(globalCtx, POLY_OPA_DISP);
|
||||||
|
|
||||||
|
@ -1285,11 +1285,11 @@ void EnItem00_DrawCollectible(EnItem00* this, GlobalContext* globalCtx) {
|
||||||
|
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sItemDropTex[texIndex]));
|
gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sItemDropTex[texIndex]));
|
||||||
|
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_en_item00.c", 1607),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, gItemDropDL);
|
gSPDisplayList(POLY_OPA_DISP++, gItemDropDL);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_en_item00.c", 1611);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1298,21 +1298,21 @@ void EnItem00_DrawCollectible(EnItem00* this, GlobalContext* globalCtx) {
|
||||||
void EnItem00_DrawHeartContainer(EnItem00* this, GlobalContext* globalCtx) {
|
void EnItem00_DrawHeartContainer(EnItem00* this, GlobalContext* globalCtx) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_en_item00.c", 1623);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D18(globalCtx->state.gfxCtx);
|
func_80093D18(globalCtx->state.gfxCtx);
|
||||||
func_8002EBCC(&this->actor, globalCtx, 0);
|
func_8002EBCC(&this->actor, globalCtx, 0);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_en_item00.c", 1634),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, gHeartPieceExteriorDL);
|
gSPDisplayList(POLY_OPA_DISP++, gHeartPieceExteriorDL);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
func_8002ED80(&this->actor, globalCtx, 0);
|
func_8002ED80(&this->actor, globalCtx, 0);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_en_item00.c", 1644),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, gHeartContainerInteriorDL);
|
gSPDisplayList(POLY_XLU_DISP++, gHeartContainerInteriorDL);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_en_item00.c", 1647);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1321,15 +1321,15 @@ void EnItem00_DrawHeartContainer(EnItem00* this, GlobalContext* globalCtx) {
|
||||||
void EnItem00_DrawHeartPiece(EnItem00* this, GlobalContext* globalCtx) {
|
void EnItem00_DrawHeartPiece(EnItem00* this, GlobalContext* globalCtx) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_en_item00.c", 1658);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
func_8002ED80(&this->actor, globalCtx, 0);
|
func_8002ED80(&this->actor, globalCtx, 0);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_en_item00.c", 1670),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, gHeartPieceInteriorDL);
|
gSPDisplayList(POLY_XLU_DISP++, gHeartPieceInteriorDL);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_en_item00.c", 1673);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -89,9 +89,9 @@ void TransitionUnk_InitGraphics(TransitionUnk* this) {
|
||||||
gDPPipeSync(gfx++);
|
gDPPipeSync(gfx++);
|
||||||
gSPEndDisplayList(gfx++);
|
gSPEndDisplayList(gfx++);
|
||||||
|
|
||||||
LOG_NUM("this->col * (1 + this->row * (1 + 7 + 1)) + 1 + 1", this->col * (1 + this->row * 9) + 2, "../z_fbdemo.c",
|
LOG_NUM("this->col * (1 + this->row * (1 + 7 + 1)) + 1 + 1", this->col * (1 + this->row * 9) + 2, __FILE__,
|
||||||
144);
|
__LINE__);
|
||||||
LOG_NUM("gp - this->gfxtbl", gfx - this->gfx, "../z_fbdemo.c", 145);
|
LOG_NUM("gp - this->gfxtbl", gfx - this->gfx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TransitionUnk_InitData(TransitionUnk* this) {
|
void TransitionUnk_InitData(TransitionUnk* this) {
|
||||||
|
@ -112,19 +112,19 @@ void TransitionUnk_Destroy(TransitionUnk* this) {
|
||||||
Sleep_Msec(100);
|
Sleep_Msec(100);
|
||||||
|
|
||||||
if (this->unk_0C != NULL) {
|
if (this->unk_0C != NULL) {
|
||||||
SystemArena_FreeDebug(this->unk_0C, "../z_fbdemo.c", 180);
|
SystemArena_FreeDebug(this->unk_0C, __FILE__, __LINE__);
|
||||||
this->unk_0C = NULL;
|
this->unk_0C = NULL;
|
||||||
}
|
}
|
||||||
if (this->vtxFrame1 != NULL) {
|
if (this->vtxFrame1 != NULL) {
|
||||||
SystemArena_FreeDebug(this->vtxFrame1, "../z_fbdemo.c", 181);
|
SystemArena_FreeDebug(this->vtxFrame1, __FILE__, __LINE__);
|
||||||
this->vtxFrame1 = NULL;
|
this->vtxFrame1 = NULL;
|
||||||
}
|
}
|
||||||
if (this->vtxFrame2 != NULL) {
|
if (this->vtxFrame2 != NULL) {
|
||||||
SystemArena_FreeDebug(this->vtxFrame2, "../z_fbdemo.c", 182);
|
SystemArena_FreeDebug(this->vtxFrame2, __FILE__, __LINE__);
|
||||||
this->vtxFrame2 = NULL;
|
this->vtxFrame2 = NULL;
|
||||||
}
|
}
|
||||||
if (this->gfx != NULL) {
|
if (this->gfx != NULL) {
|
||||||
SystemArena_FreeDebug(this->gfx, "../z_fbdemo.c", 183);
|
SystemArena_FreeDebug(this->gfx, __FILE__, __LINE__);
|
||||||
this->gfx = NULL;
|
this->gfx = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -135,27 +135,27 @@ TransitionUnk* TransitionUnk_Init(TransitionUnk* this, s32 row, s32 col) {
|
||||||
this->frame = 0;
|
this->frame = 0;
|
||||||
this->row = row;
|
this->row = row;
|
||||||
this->col = col;
|
this->col = col;
|
||||||
this->unk_0C = SystemArena_MallocDebug((row + 1) * sizeof(TransitionUnkData) * (col + 1), "../z_fbdemo.c", 195);
|
this->unk_0C = SystemArena_MallocDebug((row + 1) * sizeof(TransitionUnkData) * (col + 1), __FILE__, __LINE__);
|
||||||
this->vtxFrame1 = SystemArena_MallocDebug((row + 1) * sizeof(Vtx) * (col + 1), "../z_fbdemo.c", 196);
|
this->vtxFrame1 = SystemArena_MallocDebug((row + 1) * sizeof(Vtx) * (col + 1), __FILE__, __LINE__);
|
||||||
this->vtxFrame2 = SystemArena_MallocDebug((row + 1) * sizeof(Vtx) * (col + 1), "../z_fbdemo.c", 197);
|
this->vtxFrame2 = SystemArena_MallocDebug((row + 1) * sizeof(Vtx) * (col + 1), __FILE__, __LINE__);
|
||||||
this->gfx = SystemArena_MallocDebug((this->col * (1 + this->row * 9) + 2) * sizeof(Gfx), "../z_fbdemo.c", 198);
|
this->gfx = SystemArena_MallocDebug((this->col * (1 + this->row * 9) + 2) * sizeof(Gfx), __FILE__, __LINE__);
|
||||||
|
|
||||||
if (this->unk_0C == NULL || this->vtxFrame1 == NULL || this->vtxFrame2 == NULL || this->gfx == NULL) {
|
if (this->unk_0C == NULL || this->vtxFrame1 == NULL || this->vtxFrame2 == NULL || this->gfx == NULL) {
|
||||||
osSyncPrintf("fbdemo_init allocation error\n");
|
osSyncPrintf("fbdemo_init allocation error\n");
|
||||||
if (this->unk_0C != NULL) {
|
if (this->unk_0C != NULL) {
|
||||||
SystemArena_FreeDebug(this->unk_0C, "../z_fbdemo.c", 202);
|
SystemArena_FreeDebug(this->unk_0C, __FILE__, __LINE__);
|
||||||
this->unk_0C = NULL;
|
this->unk_0C = NULL;
|
||||||
}
|
}
|
||||||
if (this->vtxFrame1 != NULL) {
|
if (this->vtxFrame1 != NULL) {
|
||||||
SystemArena_FreeDebug(this->vtxFrame1, "../z_fbdemo.c", 203);
|
SystemArena_FreeDebug(this->vtxFrame1, __FILE__, __LINE__);
|
||||||
this->vtxFrame1 = NULL;
|
this->vtxFrame1 = NULL;
|
||||||
}
|
}
|
||||||
if (this->vtxFrame2 != NULL) {
|
if (this->vtxFrame2 != NULL) {
|
||||||
SystemArena_FreeDebug(this->vtxFrame2, "../z_fbdemo.c", 204);
|
SystemArena_FreeDebug(this->vtxFrame2, __FILE__, __LINE__);
|
||||||
this->vtxFrame2 = NULL;
|
this->vtxFrame2 = NULL;
|
||||||
}
|
}
|
||||||
if (this->gfx != NULL) {
|
if (this->gfx != NULL) {
|
||||||
SystemArena_FreeDebug(this->gfx, "../z_fbdemo.c", 205);
|
SystemArena_FreeDebug(this->gfx, __FILE__, __LINE__);
|
||||||
this->gfx = NULL;
|
this->gfx = NULL;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
@ -24,15 +24,15 @@ s32 SkelCurve_Init(GlobalContext* globalCtx, SkelAnimeCurve* skelCurve, SkelCurv
|
||||||
skelCurve->limbList = SEGMENTED_TO_VIRTUAL(limbList->limbs);
|
skelCurve->limbList = SEGMENTED_TO_VIRTUAL(limbList->limbs);
|
||||||
|
|
||||||
skelCurve->transforms = ZeldaArena_MallocDebug(sizeof(*skelCurve->transforms) * skelCurve->limbCount,
|
skelCurve->transforms = ZeldaArena_MallocDebug(sizeof(*skelCurve->transforms) * skelCurve->limbCount,
|
||||||
"../z_fcurve_data_skelanime.c", 125);
|
__FILE__, __LINE__);
|
||||||
ASSERT(skelCurve->transforms != NULL, "this->now_joint != NULL", "../z_fcurve_data_skelanime.c", 127);
|
ASSERT(skelCurve->transforms != NULL, "this->now_joint != NULL", __FILE__, __LINE__);
|
||||||
skelCurve->animCurFrame = 0.0f;
|
skelCurve->animCurFrame = 0.0f;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SkelCurve_Destroy(GlobalContext* globalCtx, SkelAnimeCurve* skelCurve) {
|
void SkelCurve_Destroy(GlobalContext* globalCtx, SkelAnimeCurve* skelCurve) {
|
||||||
if (skelCurve->transforms != NULL) {
|
if (skelCurve->transforms != NULL) {
|
||||||
ZeldaArena_FreeDebug(skelCurve->transforms, "../z_fcurve_data_skelanime.c", 146);
|
ZeldaArena_FreeDebug(skelCurve->transforms, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ void SkelCurve_DrawLimb(GlobalContext* globalCtx, s32 limbIndex, SkelAnimeCurve*
|
||||||
OverrideCurveLimbDraw overrideLimbDraw, PostCurveLimbDraw postLimbDraw, s32 lod, void* data) {
|
OverrideCurveLimbDraw overrideLimbDraw, PostCurveLimbDraw postLimbDraw, s32 lod, void* data) {
|
||||||
SkelCurveLimb* limb = SEGMENTED_TO_VIRTUAL(skelCurve->limbList[limbIndex]);
|
SkelCurveLimb* limb = SEGMENTED_TO_VIRTUAL(skelCurve->limbList[limbIndex]);
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_fcurve_data_skelanime.c", 279);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
Matrix_Push();
|
Matrix_Push();
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ void SkelCurve_DrawLimb(GlobalContext* globalCtx, s32 limbIndex, SkelAnimeCurve*
|
||||||
|
|
||||||
dList = limb->dList[0];
|
dList = limb->dList[0];
|
||||||
if (dList != NULL) {
|
if (dList != NULL) {
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_fcurve_data_skelanime.c", 321),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_LOAD | G_MTX_NOPUSH | G_MTX_MODELVIEW);
|
G_MTX_LOAD | G_MTX_NOPUSH | G_MTX_MODELVIEW);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, dList);
|
gSPDisplayList(POLY_OPA_DISP++, dList);
|
||||||
}
|
}
|
||||||
|
@ -145,13 +145,13 @@ void SkelCurve_DrawLimb(GlobalContext* globalCtx, s32 limbIndex, SkelAnimeCurve*
|
||||||
|
|
||||||
dList = limb->dList[0];
|
dList = limb->dList[0];
|
||||||
if (dList != NULL) {
|
if (dList != NULL) {
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_fcurve_data_skelanime.c", 332),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_LOAD | G_MTX_NOPUSH | G_MTX_MODELVIEW);
|
G_MTX_LOAD | G_MTX_NOPUSH | G_MTX_MODELVIEW);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, dList);
|
gSPDisplayList(POLY_OPA_DISP++, dList);
|
||||||
}
|
}
|
||||||
dList = limb->dList[1];
|
dList = limb->dList[1];
|
||||||
if (dList != NULL) {
|
if (dList != NULL) {
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_fcurve_data_skelanime.c", 338),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_LOAD | G_MTX_NOPUSH | G_MTX_MODELVIEW);
|
G_MTX_LOAD | G_MTX_NOPUSH | G_MTX_MODELVIEW);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, dList);
|
gSPDisplayList(POLY_XLU_DISP++, dList);
|
||||||
}
|
}
|
||||||
|
@ -175,7 +175,7 @@ void SkelCurve_DrawLimb(GlobalContext* globalCtx, s32 limbIndex, SkelAnimeCurve*
|
||||||
SkelCurve_DrawLimb(globalCtx, limb->nextLimbIdx, skelCurve, overrideLimbDraw, postLimbDraw, lod, data);
|
SkelCurve_DrawLimb(globalCtx, limb->nextLimbIdx, skelCurve, overrideLimbDraw, postLimbDraw, lod, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_fcurve_data_skelanime.c", 371);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SkelCurve_Draw(Actor* actor, GlobalContext* globalCtx, SkelAnimeCurve* skelCurve,
|
void SkelCurve_Draw(Actor* actor, GlobalContext* globalCtx, SkelAnimeCurve* skelCurve,
|
||||||
|
|
|
@ -52,7 +52,7 @@ void func_8006D0EC(GlobalContext* globalCtx, Player* player) {
|
||||||
player->actor.world.pos.y, player->actor.world.pos.z, player->actor.shape.rot.x,
|
player->actor.world.pos.y, player->actor.world.pos.z, player->actor.shape.rot.x,
|
||||||
player->actor.shape.rot.y, player->actor.shape.rot.z, 9);
|
player->actor.shape.rot.y, player->actor.shape.rot.z, 9);
|
||||||
|
|
||||||
ASSERT(player->rideActor != NULL, "player->ride.actor != NULL", "../z_horse.c", 343);
|
ASSERT(player->rideActor != NULL, "player->ride.actor != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
Actor_MountHorse(globalCtx, player, player->rideActor);
|
Actor_MountHorse(globalCtx, player, player->rideActor);
|
||||||
func_8002DE74(globalCtx, player);
|
func_8002DE74(globalCtx, player);
|
||||||
|
@ -70,7 +70,7 @@ void func_8006D0EC(GlobalContext* globalCtx, Player* player) {
|
||||||
} else if ((gSaveContext.entranceIndex == 1230) && (gSaveContext.eventChkInf[1] & 0x100)) {
|
} else if ((gSaveContext.entranceIndex == 1230) && (gSaveContext.eventChkInf[1] & 0x100)) {
|
||||||
Actor* horseActor =
|
Actor* horseActor =
|
||||||
Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE, -25.0f, 0.0f, -1600.0f, 0, -0x4000, 0, 1);
|
Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE, -25.0f, 0.0f, -1600.0f, 0, -0x4000, 0, 1);
|
||||||
ASSERT(horseActor != NULL, "horse_actor != NULL", "../z_horse.c", 389);
|
ASSERT(horseActor != NULL, "horse_actor != NULL", __FILE__, __LINE__);
|
||||||
} else if ((globalCtx->sceneNum == gSaveContext.horseData.scene) &&
|
} else if ((globalCtx->sceneNum == gSaveContext.horseData.scene) &&
|
||||||
(Flags_GetEventChkInf(0x18) != 0 || DREG(1) != 0)) {
|
(Flags_GetEventChkInf(0x18) != 0 || DREG(1) != 0)) {
|
||||||
// "Set by existence of horse %d %d %d"
|
// "Set by existence of horse %d %d %d"
|
||||||
|
@ -81,7 +81,7 @@ void func_8006D0EC(GlobalContext* globalCtx, Player* player) {
|
||||||
Actor* horseActor = Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE,
|
Actor* horseActor = Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE,
|
||||||
gSaveContext.horseData.pos.x, gSaveContext.horseData.pos.y,
|
gSaveContext.horseData.pos.x, gSaveContext.horseData.pos.y,
|
||||||
gSaveContext.horseData.pos.z, 0, gSaveContext.horseData.angle, 0, 1);
|
gSaveContext.horseData.pos.z, 0, gSaveContext.horseData.angle, 0, 1);
|
||||||
ASSERT(horseActor != NULL, "horse_actor != NULL", "../z_horse.c", 414);
|
ASSERT(horseActor != NULL, "horse_actor != NULL", __FILE__, __LINE__);
|
||||||
if (globalCtx->sceneNum == SCENE_SPOT12) {
|
if (globalCtx->sceneNum == SCENE_SPOT12) {
|
||||||
horseActor->room = -1;
|
horseActor->room = -1;
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ void func_8006D0EC(GlobalContext* globalCtx, Player* player) {
|
||||||
} else if ((globalCtx->sceneNum == SCENE_SPOT20) && !Flags_GetEventChkInf(0x18) && (DREG(1) == 0)) {
|
} else if ((globalCtx->sceneNum == SCENE_SPOT20) && !Flags_GetEventChkInf(0x18) && (DREG(1) == 0)) {
|
||||||
Actor* horseActor =
|
Actor* horseActor =
|
||||||
Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE, 0.0f, 0.0f, -500.0f, 0, 0, 0, 1);
|
Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE, 0.0f, 0.0f, -500.0f, 0, 0, 0, 1);
|
||||||
ASSERT(horseActor != NULL, "horse_actor != NULL", "../z_horse.c", 443);
|
ASSERT(horseActor != NULL, "horse_actor != NULL", __FILE__, __LINE__);
|
||||||
} else if (Flags_GetEventChkInf(0x18) || (DREG(1) != 0)) {
|
} else if (Flags_GetEventChkInf(0x18) || (DREG(1) != 0)) {
|
||||||
for (i = 0; i < ARRAY_COUNT(horseSpawns); i++) {
|
for (i = 0; i < ARRAY_COUNT(horseSpawns); i++) {
|
||||||
HorseSpawn* horseSpawn = &horseSpawns[i];
|
HorseSpawn* horseSpawn = &horseSpawns[i];
|
||||||
|
@ -103,7 +103,7 @@ void func_8006D0EC(GlobalContext* globalCtx, Player* player) {
|
||||||
Actor* horseActor =
|
Actor* horseActor =
|
||||||
Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE, horseSpawn->pos.x, horseSpawn->pos.y,
|
Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE, horseSpawn->pos.x, horseSpawn->pos.y,
|
||||||
horseSpawn->pos.z, 0, horseSpawn->angle, 0, horseSpawn->type);
|
horseSpawn->pos.z, 0, horseSpawn->angle, 0, horseSpawn->type);
|
||||||
ASSERT(horseActor != NULL, "horse_actor != NULL", "../z_horse.c", 466);
|
ASSERT(horseActor != NULL, "horse_actor != NULL", __FILE__, __LINE__);
|
||||||
if (globalCtx->sceneNum == SCENE_SPOT12) {
|
if (globalCtx->sceneNum == SCENE_SPOT12) {
|
||||||
horseActor->room = -1;
|
horseActor->room = -1;
|
||||||
}
|
}
|
||||||
|
@ -153,7 +153,7 @@ void func_8006D684(GlobalContext* globalCtx, Player* player) {
|
||||||
|
|
||||||
player->rideActor = Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE, spawnPos.x, spawnPos.y,
|
player->rideActor = Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE, spawnPos.x, spawnPos.y,
|
||||||
spawnPos.z, 0, player->actor.world.rot.y, 0, 7);
|
spawnPos.z, 0, player->actor.world.rot.y, 0, 7);
|
||||||
ASSERT(player->rideActor != NULL, "player->ride.actor != NULL", "../z_horse.c", 561);
|
ASSERT(player->rideActor != NULL, "player->ride.actor != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
Actor_MountHorse(globalCtx, player, player->rideActor);
|
Actor_MountHorse(globalCtx, player, player->rideActor);
|
||||||
func_8002DE74(globalCtx, player);
|
func_8002DE74(globalCtx, player);
|
||||||
|
@ -162,7 +162,7 @@ void func_8006D684(GlobalContext* globalCtx, Player* player) {
|
||||||
(Flags_GetEventChkInf(0x18) == 0) && (DREG(1) == 0)) {
|
(Flags_GetEventChkInf(0x18) == 0) && (DREG(1) == 0)) {
|
||||||
player->rideActor =
|
player->rideActor =
|
||||||
Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE, 894.0f, 0.0f, -2084.0f, 0, -0x7FFF, 0, 5);
|
Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE, 894.0f, 0.0f, -2084.0f, 0, -0x7FFF, 0, 5);
|
||||||
ASSERT(player->rideActor != NULL, "player->ride.actor != NULL", "../z_horse.c", 582);
|
ASSERT(player->rideActor != NULL, "player->ride.actor != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
Actor_MountHorse(globalCtx, player, player->rideActor);
|
Actor_MountHorse(globalCtx, player, player->rideActor);
|
||||||
func_8002DE74(globalCtx, player);
|
func_8002DE74(globalCtx, player);
|
||||||
|
@ -192,7 +192,7 @@ void func_8006D684(GlobalContext* globalCtx, Player* player) {
|
||||||
player->rideActor = Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE,
|
player->rideActor = Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE,
|
||||||
D_8011F9B8[i].pos.x, D_8011F9B8[i].pos.y, D_8011F9B8[i].pos.z, 0,
|
D_8011F9B8[i].pos.x, D_8011F9B8[i].pos.y, D_8011F9B8[i].pos.z, 0,
|
||||||
player->actor.world.rot.y, 0, D_8011F9B8[i].type);
|
player->actor.world.rot.y, 0, D_8011F9B8[i].type);
|
||||||
ASSERT(player->rideActor != NULL, "player->ride.actor != NULL", "../z_horse.c", 628);
|
ASSERT(player->rideActor != NULL, "player->ride.actor != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
Actor_MountHorse(globalCtx, player, player->rideActor);
|
Actor_MountHorse(globalCtx, player, player->rideActor);
|
||||||
func_8002DE74(globalCtx, player);
|
func_8002DE74(globalCtx, player);
|
||||||
|
@ -207,7 +207,7 @@ void func_8006D684(GlobalContext* globalCtx, Player* player) {
|
||||||
player->rideActor = Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE,
|
player->rideActor = Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE,
|
||||||
D_8011F9B8[i].pos.x, D_8011F9B8[i].pos.y, D_8011F9B8[i].pos.z, 0,
|
D_8011F9B8[i].pos.x, D_8011F9B8[i].pos.y, D_8011F9B8[i].pos.z, 0,
|
||||||
D_8011F9B8[i].angle, 0, D_8011F9B8[i].type | temp);
|
D_8011F9B8[i].angle, 0, D_8011F9B8[i].type | temp);
|
||||||
ASSERT(player->rideActor != NULL, "player->ride.actor != NULL", "../z_horse.c", 667);
|
ASSERT(player->rideActor != NULL, "player->ride.actor != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
player->actor.world.pos.x = D_8011F9B8[i].pos.x;
|
player->actor.world.pos.x = D_8011F9B8[i].pos.x;
|
||||||
player->actor.world.pos.y = D_8011F9B8[i].pos.y;
|
player->actor.world.pos.y = D_8011F9B8[i].pos.y;
|
||||||
|
|
|
@ -250,8 +250,8 @@ s32 Jpeg_Decode(void* data, void* zbuffer, void* work, u32 workSize) {
|
||||||
|
|
||||||
time = osGetTime();
|
time = osGetTime();
|
||||||
// (?) I guess MB_SIZE=0x180, PROC_OF_MBS=5 which means data is not a part of JpegWork
|
// (?) I guess MB_SIZE=0x180, PROC_OF_MBS=5 which means data is not a part of JpegWork
|
||||||
ASSERT(workSize >= sizeof(JpegWork), "worksize >= sizeof(JPEGWork) + MB_SIZE * (PROC_OF_MBS - 1)", "../z_jpeg.c",
|
ASSERT(workSize >= sizeof(JpegWork), "worksize >= sizeof(JPEGWork) + MB_SIZE * (PROC_OF_MBS - 1)", __FILE__,
|
||||||
527);
|
__LINE__);
|
||||||
|
|
||||||
osCreateMesgQueue(&ctx.mq, &ctx.msg, 1);
|
osCreateMesgQueue(&ctx.mq, &ctx.msg, 1);
|
||||||
MsgEvent_SendNullTask();
|
MsgEvent_SendNullTask();
|
||||||
|
|
|
@ -22,7 +22,7 @@ KaleidoMgrOverlay* gKaleidoMgrCurOvl = NULL;
|
||||||
u8 gBossMarkState = 0;
|
u8 gBossMarkState = 0;
|
||||||
|
|
||||||
void KaleidoManager_LoadOvl(KaleidoMgrOverlay* ovl) {
|
void KaleidoManager_LoadOvl(KaleidoMgrOverlay* ovl) {
|
||||||
//LogUtils_CheckNullPointer("KaleidoArea_allocp", sKaleidoAreaPtr, "../z_kaleido_manager.c", 99);
|
//LogUtils_CheckNullPointer("KaleidoArea_allocp", sKaleidoAreaPtr, __FILE__, __LINE__);
|
||||||
|
|
||||||
ovl->loadedRamAddr = sKaleidoAreaPtr;
|
ovl->loadedRamAddr = sKaleidoAreaPtr;
|
||||||
Overlay_Load(ovl->vromStart, ovl->vromEnd, ovl->vramStart, ovl->vramEnd, ovl->loadedRamAddr);
|
Overlay_Load(ovl->vromStart, ovl->vromEnd, ovl->vramStart, ovl->vramEnd, ovl->loadedRamAddr);
|
||||||
|
@ -62,8 +62,8 @@ void KaleidoManager_Init(GlobalContext* globalCtx) {
|
||||||
osSyncPrintf("KaleidoArea の最大サイズは %d バイトを確保します\n", largestSize);
|
osSyncPrintf("KaleidoArea の最大サイズは %d バイトを確保します\n", largestSize);
|
||||||
osSyncPrintf(VT_RST);
|
osSyncPrintf(VT_RST);
|
||||||
|
|
||||||
sKaleidoAreaPtr = GameState_Alloc(&globalCtx->state, largestSize, "../z_kaleido_manager.c", 150);
|
sKaleidoAreaPtr = GameState_Alloc(&globalCtx->state, largestSize, __FILE__, __LINE__);
|
||||||
LogUtils_CheckNullPointer("KaleidoArea_allocp", sKaleidoAreaPtr, "../z_kaleido_manager.c", 151);
|
LogUtils_CheckNullPointer("KaleidoArea_allocp", sKaleidoAreaPtr, __FILE__, __LINE__);
|
||||||
|
|
||||||
osSyncPrintf(VT_FGCOL(GREEN));
|
osSyncPrintf(VT_FGCOL(GREEN));
|
||||||
osSyncPrintf("KaleidoArea %08x - %08x\n", sKaleidoAreaPtr, (uintptr_t)sKaleidoAreaPtr + largestSize);
|
osSyncPrintf("KaleidoArea %08x - %08x\n", sKaleidoAreaPtr, (uintptr_t)sKaleidoAreaPtr + largestSize);
|
||||||
|
|
|
@ -37,10 +37,10 @@ void KaleidoScopeCall_Init(GlobalContext* globalCtx) {
|
||||||
sKaleidoScopeUpdateFunc = KaleidoManager_GetRamAddr(KaleidoScope_Update);
|
sKaleidoScopeUpdateFunc = KaleidoManager_GetRamAddr(KaleidoScope_Update);
|
||||||
sKaleidoScopeDrawFunc = KaleidoManager_GetRamAddr(KaleidoScope_Draw);
|
sKaleidoScopeDrawFunc = KaleidoManager_GetRamAddr(KaleidoScope_Draw);
|
||||||
|
|
||||||
LOG_ADDRESS("kaleido_scope_move", KaleidoScope_Update, "../z_kaleido_scope_call.c", 98);
|
LOG_ADDRESS("kaleido_scope_move", KaleidoScope_Update, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("kaleido_scope_move_func", sKaleidoScopeUpdateFunc, "../z_kaleido_scope_call.c", 99);
|
LOG_ADDRESS("kaleido_scope_move_func", sKaleidoScopeUpdateFunc, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("kaleido_scope_draw", KaleidoScope_Draw, "../z_kaleido_scope_call.c", 100);
|
LOG_ADDRESS("kaleido_scope_draw", KaleidoScope_Draw, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("kaleido_scope_draw_func", sKaleidoScopeDrawFunc, "../z_kaleido_scope_call.c", 101);
|
LOG_ADDRESS("kaleido_scope_draw_func", sKaleidoScopeDrawFunc, __FILE__, __LINE__);
|
||||||
|
|
||||||
KaleidoSetup_Init(globalCtx);
|
KaleidoSetup_Init(globalCtx);
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,7 +171,7 @@ void func_8006EE50(Font* font, u16 arg1, u16 arg2) {
|
||||||
void Font_LoadChar(Font* font, u8 character, u16 codePointIndex) {
|
void Font_LoadChar(Font* font, u8 character, u16 codePointIndex) {
|
||||||
//DmaMgr_SendRequest1(&font->charTexBuf[codePointIndex],
|
//DmaMgr_SendRequest1(&font->charTexBuf[codePointIndex],
|
||||||
//&_nes_font_staticSegmentRomStart[character * FONT_CHAR_TEX_SIZE], FONT_CHAR_TEX_SIZE,
|
//&_nes_font_staticSegmentRomStart[character * FONT_CHAR_TEX_SIZE], FONT_CHAR_TEX_SIZE,
|
||||||
//"../z_kanfont.c", 93);
|
//__FILE__, __LINE__);
|
||||||
|
|
||||||
if (character < 0x8B)
|
if (character < 0x8B)
|
||||||
memcpy(&font->charTexBuf[codePointIndex], ResourceMgr_LoadTexByName(fntTbl[character]), FONT_CHAR_TEX_SIZE);
|
memcpy(&font->charTexBuf[codePointIndex], ResourceMgr_LoadTexByName(fntTbl[character]), FONT_CHAR_TEX_SIZE);
|
||||||
|
@ -219,7 +219,7 @@ void Font_LoadOrderedFont(Font* font) {
|
||||||
|
|
||||||
offset = (font->msgBuf[codePointIndex] - '\x20') * FONT_CHAR_TEX_SIZE;
|
offset = (font->msgBuf[codePointIndex] - '\x20') * FONT_CHAR_TEX_SIZE;
|
||||||
memcpy(fontBuf, ResourceMgr_LoadTexByName(fntTbl[offset / FONT_CHAR_TEX_SIZE]), FONT_CHAR_TEX_SIZE);
|
memcpy(fontBuf, ResourceMgr_LoadTexByName(fntTbl[offset / FONT_CHAR_TEX_SIZE]), FONT_CHAR_TEX_SIZE);
|
||||||
//DmaMgr_SendRequest1(fontBuf, fontStatic + offset, FONT_CHAR_TEX_SIZE, "../z_kanfont.c", 134);
|
//DmaMgr_SendRequest1(fontBuf, fontStatic + offset, FONT_CHAR_TEX_SIZE, __FILE__, __LINE__);
|
||||||
fontBufIndex += FONT_CHAR_TEX_SIZE / 8;
|
fontBufIndex += FONT_CHAR_TEX_SIZE / 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -691,7 +691,7 @@ void Environment_UpdateSkybox(GlobalContext* globalCtx, u8 skyboxId, Environment
|
||||||
//osCreateMesgQueue(&envCtx->loadQueue, &envCtx->loadMsg, 1);
|
//osCreateMesgQueue(&envCtx->loadQueue, &envCtx->loadMsg, 1);
|
||||||
//DmaMgr_SendRequest2(&envCtx->dmaRequest, (uintptr_t)skyboxCtx->staticSegments[0],
|
//DmaMgr_SendRequest2(&envCtx->dmaRequest, (uintptr_t)skyboxCtx->staticSegments[0],
|
||||||
//gSkyboxFiles[newSkybox1Index].file.vromStart, size, 0, &envCtx->loadQueue, NULL,
|
//gSkyboxFiles[newSkybox1Index].file.vromStart, size, 0, &envCtx->loadQueue, NULL,
|
||||||
//"../z_kankyo.c", 1264);
|
//__FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((envCtx->skybox2Index != newSkybox2Index) && (envCtx->skyboxDmaState == SKYBOX_DMA_INACTIVE)) {
|
if ((envCtx->skybox2Index != newSkybox2Index) && (envCtx->skyboxDmaState == SKYBOX_DMA_INACTIVE)) {
|
||||||
|
@ -710,7 +710,7 @@ void Environment_UpdateSkybox(GlobalContext* globalCtx, u8 skyboxId, Environment
|
||||||
//osCreateMesgQueue(&envCtx->loadQueue, &envCtx->loadMsg, 1);
|
//osCreateMesgQueue(&envCtx->loadQueue, &envCtx->loadMsg, 1);
|
||||||
//DmaMgr_SendRequest2(&envCtx->dmaRequest, (uintptr_t)skyboxCtx->staticSegments[1],
|
//DmaMgr_SendRequest2(&envCtx->dmaRequest, (uintptr_t)skyboxCtx->staticSegments[1],
|
||||||
//gSkyboxFiles[newSkybox2Index].file.vromStart, size, 0, &envCtx->loadQueue, NULL,
|
//gSkyboxFiles[newSkybox2Index].file.vromStart, size, 0, &envCtx->loadQueue, NULL,
|
||||||
//"../z_kankyo.c", 1281);
|
//__FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (envCtx->skyboxDmaState == SKYBOX_DMA_FILE1_DONE) {
|
if (envCtx->skyboxDmaState == SKYBOX_DMA_FILE1_DONE) {
|
||||||
|
@ -725,7 +725,7 @@ void Environment_UpdateSkybox(GlobalContext* globalCtx, u8 skyboxId, Environment
|
||||||
//osCreateMesgQueue(&envCtx->loadQueue, &envCtx->loadMsg, 1);
|
//osCreateMesgQueue(&envCtx->loadQueue, &envCtx->loadMsg, 1);
|
||||||
//DmaMgr_SendRequest2(&envCtx->dmaRequest, (uintptr_t)skyboxCtx->palettes,
|
//DmaMgr_SendRequest2(&envCtx->dmaRequest, (uintptr_t)skyboxCtx->palettes,
|
||||||
//gSkyboxFiles[newSkybox1Index].palette.vromStart, size, 0, &envCtx->loadQueue, NULL,
|
//gSkyboxFiles[newSkybox1Index].palette.vromStart, size, 0, &envCtx->loadQueue, NULL,
|
||||||
//"../z_kankyo.c", 1307);
|
//__FILE__, __LINE__);
|
||||||
} else {
|
} else {
|
||||||
SkyboxTableEntry entryA = sSkyboxTable[newSkybox1Index];
|
SkyboxTableEntry entryA = sSkyboxTable[newSkybox1Index];
|
||||||
LoadSkyboxPalette(skyboxCtx, 1, entryA.palettes[0], 16, 8);
|
LoadSkyboxPalette(skyboxCtx, 1, entryA.palettes[0], 16, 8);
|
||||||
|
@ -734,7 +734,7 @@ void Environment_UpdateSkybox(GlobalContext* globalCtx, u8 skyboxId, Environment
|
||||||
//osCreateMesgQueue(&envCtx->loadQueue, &envCtx->loadMsg, 1);
|
//osCreateMesgQueue(&envCtx->loadQueue, &envCtx->loadMsg, 1);
|
||||||
//DmaMgr_SendRequest2(&envCtx->dmaRequest, (uintptr_t)skyboxCtx->palettes + size,
|
//DmaMgr_SendRequest2(&envCtx->dmaRequest, (uintptr_t)skyboxCtx->palettes + size,
|
||||||
//gSkyboxFiles[newSkybox1Index].palette.vromStart, size, 0, &envCtx->loadQueue, NULL,
|
//gSkyboxFiles[newSkybox1Index].palette.vromStart, size, 0, &envCtx->loadQueue, NULL,
|
||||||
//"../z_kankyo.c", 1320);
|
//__FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
Skybox_Update(skyboxCtx);
|
Skybox_Update(skyboxCtx);
|
||||||
|
@ -752,7 +752,7 @@ void Environment_UpdateSkybox(GlobalContext* globalCtx, u8 skyboxId, Environment
|
||||||
osCreateMesgQueue(&envCtx->loadQueue, &envCtx->loadMsg, 1);
|
osCreateMesgQueue(&envCtx->loadQueue, &envCtx->loadMsg, 1);
|
||||||
DmaMgr_SendRequest2(&envCtx->dmaRequest, (uintptr_t)skyboxCtx->palettes,
|
DmaMgr_SendRequest2(&envCtx->dmaRequest, (uintptr_t)skyboxCtx->palettes,
|
||||||
gSkyboxFiles[newSkybox2Index].palette.vromStart, size, 0, &envCtx->loadQueue, NULL,
|
gSkyboxFiles[newSkybox2Index].palette.vromStart, size, 0, &envCtx->loadQueue, NULL,
|
||||||
"../z_kankyo.c", 1342);*/
|
__FILE__, __LINE__);*/
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
SkyboxTableEntry entryA = sSkyboxTable[newSkybox2Index];
|
SkyboxTableEntry entryA = sSkyboxTable[newSkybox2Index];
|
||||||
|
@ -762,7 +762,7 @@ void Environment_UpdateSkybox(GlobalContext* globalCtx, u8 skyboxId, Environment
|
||||||
osCreateMesgQueue(&envCtx->loadQueue, &envCtx->loadMsg, 1);
|
osCreateMesgQueue(&envCtx->loadQueue, &envCtx->loadMsg, 1);
|
||||||
DmaMgr_SendRequest2(&envCtx->dmaRequest, (uintptr_t)skyboxCtx->palettes + size,
|
DmaMgr_SendRequest2(&envCtx->dmaRequest, (uintptr_t)skyboxCtx->palettes + size,
|
||||||
gSkyboxFiles[newSkybox2Index].palette.vromStart, size, 0, &envCtx->loadQueue, NULL,
|
gSkyboxFiles[newSkybox2Index].palette.vromStart, size, 0, &envCtx->loadQueue, NULL,
|
||||||
"../z_kankyo.c", 1355);*/
|
__FILE__, __LINE__);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
Skybox_Update(skyboxCtx);
|
Skybox_Update(skyboxCtx);
|
||||||
|
@ -949,7 +949,7 @@ void Environment_Update(GlobalContext* globalCtx, EnvironmentContext* envCtx, Li
|
||||||
Gfx* displayList;
|
Gfx* displayList;
|
||||||
Gfx* prevDisplayList;
|
Gfx* prevDisplayList;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_kankyo.c", 1682);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
prevDisplayList = POLY_OPA_DISP;
|
prevDisplayList = POLY_OPA_DISP;
|
||||||
displayList = Graph_GfxPlusOne(POLY_OPA_DISP);
|
displayList = Graph_GfxPlusOne(POLY_OPA_DISP);
|
||||||
|
@ -959,7 +959,7 @@ void Environment_Update(GlobalContext* globalCtx, EnvironmentContext* envCtx, Li
|
||||||
Graph_BranchDlist(prevDisplayList, displayList);
|
Graph_BranchDlist(prevDisplayList, displayList);
|
||||||
POLY_OPA_DISP = displayList;
|
POLY_OPA_DISP = displayList;
|
||||||
if (1) {}
|
if (1) {}
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_kankyo.c", 1690);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((envCtx->unk_BF != 0xFF) && (envCtx->unk_DC != 2) && (envCtx->unk_BD != envCtx->unk_BF) &&
|
if ((envCtx->unk_BF != 0xFF) && (envCtx->unk_DC != 2) && (envCtx->unk_BD != envCtx->unk_BF) &&
|
||||||
|
@ -1302,7 +1302,7 @@ void Environment_DrawSunAndMoon(GlobalContext* globalCtx) {
|
||||||
f32 scale;
|
f32 scale;
|
||||||
f32 temp;
|
f32 temp;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_kankyo.c", 2266);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (globalCtx->csCtx.state != 0) {
|
if (globalCtx->csCtx.state != 0) {
|
||||||
Math_SmoothStepToF(&globalCtx->envCtx.sunPos.x,
|
Math_SmoothStepToF(&globalCtx->envCtx.sunPos.x,
|
||||||
|
@ -1350,7 +1350,7 @@ void Environment_DrawSunAndMoon(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
scale = (color * 2.0f) + 10.0f;
|
scale = (color * 2.0f) + 10.0f;
|
||||||
Matrix_Scale(scale, scale, scale, MTXMODE_APPLY);
|
Matrix_Scale(scale, scale, scale, MTXMODE_APPLY);
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_kankyo.c", 2364), G_MTX_LOAD);
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__), G_MTX_LOAD);
|
||||||
func_80093AD0(globalCtx->state.gfxCtx);
|
func_80093AD0(globalCtx->state.gfxCtx);
|
||||||
|
|
||||||
static Vtx vertices[] = {
|
static Vtx vertices[] = {
|
||||||
|
@ -1388,7 +1388,7 @@ void Environment_DrawSunAndMoon(GlobalContext* globalCtx) {
|
||||||
alpha = temp * 255.0f;
|
alpha = temp * 255.0f;
|
||||||
|
|
||||||
if (alpha > 0.0f) {
|
if (alpha > 0.0f) {
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_kankyo.c", 2406), G_MTX_LOAD);
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__), G_MTX_LOAD);
|
||||||
func_8009398C(globalCtx->state.gfxCtx);
|
func_8009398C(globalCtx->state.gfxCtx);
|
||||||
gDPPipeSync(POLY_OPA_DISP++);
|
gDPPipeSync(POLY_OPA_DISP++);
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 240, 255, 180, alpha);
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 240, 255, 180, alpha);
|
||||||
|
@ -1397,7 +1397,7 @@ void Environment_DrawSunAndMoon(GlobalContext* globalCtx) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_kankyo.c", 2429);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Environment_DrawSunLensFlare(GlobalContext* globalCtx, EnvironmentContext* envCtx, View* view,
|
void Environment_DrawSunLensFlare(GlobalContext* globalCtx, EnvironmentContext* envCtx, View* view,
|
||||||
|
@ -1461,7 +1461,7 @@ void Environment_DrawLensFlare(GlobalContext* globalCtx, EnvironmentContext* env
|
||||||
LENS_FLARE_CIRCLE1, LENS_FLARE_CIRCLE1, LENS_FLARE_CIRCLE1, LENS_FLARE_CIRCLE1, LENS_FLARE_CIRCLE1,
|
LENS_FLARE_CIRCLE1, LENS_FLARE_CIRCLE1, LENS_FLARE_CIRCLE1, LENS_FLARE_CIRCLE1, LENS_FLARE_CIRCLE1,
|
||||||
};
|
};
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_kankyo.c", 2516);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
dist = Math3D_Vec3f_DistXYZ(&pos, &view->eye) / 12.0f;
|
dist = Math3D_Vec3f_DistXYZ(&pos, &view->eye) / 12.0f;
|
||||||
|
|
||||||
|
@ -1558,7 +1558,7 @@ void Environment_DrawLensFlare(GlobalContext* globalCtx, EnvironmentContext* env
|
||||||
POLY_XLU_DISP = func_800947AC(POLY_XLU_DISP++);
|
POLY_XLU_DISP = func_800947AC(POLY_XLU_DISP++);
|
||||||
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0, lensFlareColors[i].r, lensFlareColors[i].g, lensFlareColors[i].b,
|
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0, lensFlareColors[i].r, lensFlareColors[i].g, lensFlareColors[i].b,
|
||||||
alpha * envCtx->unk_88);
|
alpha * envCtx->unk_88);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(gfxCtx, "../z_kankyo.c", 2662),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
gDPSetCombineLERP(POLY_XLU_DISP++, 0, 0, 0, PRIMITIVE, TEXEL0, 0, PRIMITIVE, 0, 0, 0, 0, PRIMITIVE, TEXEL0,
|
gDPSetCombineLERP(POLY_XLU_DISP++, 0, 0, 0, PRIMITIVE, TEXEL0, 0, PRIMITIVE, 0, 0, 0, 0, PRIMITIVE, TEXEL0,
|
||||||
0, PRIMITIVE, 0);
|
0, PRIMITIVE, 0);
|
||||||
|
@ -1615,7 +1615,7 @@ void Environment_DrawLensFlare(GlobalContext* globalCtx, EnvironmentContext* env
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_kankyo.c", 2750);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
f32 func_800746DC(void) {
|
f32 func_800746DC(void) {
|
||||||
|
@ -1642,7 +1642,7 @@ void Environment_DrawRain(GlobalContext* globalCtx, View* view, GraphicsContext*
|
||||||
Player* player = GET_PLAYER(globalCtx);
|
Player* player = GET_PLAYER(globalCtx);
|
||||||
|
|
||||||
if (!(globalCtx->cameraPtrs[0]->unk_14C & 0x100) && (globalCtx->envCtx.unk_EE[2] == 0)) {
|
if (!(globalCtx->cameraPtrs[0]->unk_14C & 0x100) && (globalCtx->envCtx.unk_EE[2] == 0)) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_kankyo.c", 2799);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
vec.x = view->lookAt.x - view->eye.x;
|
vec.x = view->lookAt.x - view->eye.x;
|
||||||
vec.y = view->lookAt.y - view->eye.y;
|
vec.y = view->lookAt.y - view->eye.y;
|
||||||
|
@ -1691,7 +1691,7 @@ void Environment_DrawRain(GlobalContext* globalCtx, View* view, GraphicsContext*
|
||||||
Matrix_RotateY(-rotY, MTXMODE_APPLY);
|
Matrix_RotateY(-rotY, MTXMODE_APPLY);
|
||||||
Matrix_RotateX(M_PI / 2 - rotX, MTXMODE_APPLY);
|
Matrix_RotateX(M_PI / 2 - rotX, MTXMODE_APPLY);
|
||||||
Matrix_Scale(0.4f, 1.2f, 0.4f, MTXMODE_APPLY);
|
Matrix_Scale(0.4f, 1.2f, 0.4f, MTXMODE_APPLY);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(gfxCtx, "../z_kankyo.c", 2887),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, gRaindropDL);
|
gSPDisplayList(POLY_XLU_DISP++, gRaindropDL);
|
||||||
}
|
}
|
||||||
|
@ -1718,13 +1718,13 @@ void Environment_DrawRain(GlobalContext* globalCtx, View* view, GraphicsContext*
|
||||||
Matrix_Scale(0.1f, 0.1f, 0.1f, MTXMODE_APPLY);
|
Matrix_Scale(0.1f, 0.1f, 0.1f, MTXMODE_APPLY);
|
||||||
}
|
}
|
||||||
|
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(gfxCtx, "../z_kankyo.c", 2940),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, gEffShockwaveDL);
|
gSPDisplayList(POLY_XLU_DISP++, gEffShockwaveDL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_kankyo.c", 2946);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1758,7 +1758,7 @@ void Environment_DrawSkyboxFilters(GlobalContext* globalCtx) {
|
||||||
(globalCtx->skyboxId == SKYBOX_UNSET_1D)) {
|
(globalCtx->skyboxId == SKYBOX_UNSET_1D)) {
|
||||||
f32 alpha;
|
f32 alpha;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_kankyo.c", 3032);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_800938B4(globalCtx->state.gfxCtx);
|
func_800938B4(globalCtx->state.gfxCtx);
|
||||||
|
|
||||||
|
@ -1776,11 +1776,11 @@ void Environment_DrawSkyboxFilters(GlobalContext* globalCtx) {
|
||||||
globalCtx->lightCtx.fogColor[2], 255.0f * alpha);
|
globalCtx->lightCtx.fogColor[2], 255.0f * alpha);
|
||||||
gDPFillRectangle(POLY_OPA_DISP++, 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1);
|
gDPFillRectangle(POLY_OPA_DISP++, 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_kankyo.c", 3043);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (globalCtx->envCtx.customSkyboxFilter) {
|
if (globalCtx->envCtx.customSkyboxFilter) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_kankyo.c", 3048);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_800938B4(globalCtx->state.gfxCtx);
|
func_800938B4(globalCtx->state.gfxCtx);
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, globalCtx->envCtx.skyboxFilterColor[0],
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, globalCtx->envCtx.skyboxFilterColor[0],
|
||||||
|
@ -1788,18 +1788,18 @@ void Environment_DrawSkyboxFilters(GlobalContext* globalCtx) {
|
||||||
globalCtx->envCtx.skyboxFilterColor[3]);
|
globalCtx->envCtx.skyboxFilterColor[3]);
|
||||||
gDPFillRectangle(POLY_OPA_DISP++, 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1);
|
gDPFillRectangle(POLY_OPA_DISP++, 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_kankyo.c", 3056);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Environment_DrawLightningFlash(GlobalContext* globalCtx, u8 red, u8 green, u8 blue, u8 alpha) {
|
void Environment_DrawLightningFlash(GlobalContext* globalCtx, u8 red, u8 green, u8 blue, u8 alpha) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_kankyo.c", 3069);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_800938B4(globalCtx->state.gfxCtx);
|
func_800938B4(globalCtx->state.gfxCtx);
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, red, green, blue, alpha);
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, red, green, blue, alpha);
|
||||||
gDPFillRectangle(POLY_OPA_DISP++, 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1);
|
gDPFillRectangle(POLY_OPA_DISP++, 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_kankyo.c", 3079);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Environment_UpdateLightningStrike(GlobalContext* globalCtx) {
|
void Environment_UpdateLightningStrike(GlobalContext* globalCtx) {
|
||||||
|
@ -1914,7 +1914,7 @@ void Environment_DrawLightning(GlobalContext* globalCtx, s32 unused) {
|
||||||
Vec3f unused1 = { 0.0f, 0.0f, 0.0f };
|
Vec3f unused1 = { 0.0f, 0.0f, 0.0f };
|
||||||
Vec3f unused2 = { 0.0f, 0.0f, 0.0f };
|
Vec3f unused2 = { 0.0f, 0.0f, 0.0f };
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_kankyo.c", 3253);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_COUNT(sLightningBolts); i++) {
|
for (i = 0; i < ARRAY_COUNT(sLightningBolts); i++) {
|
||||||
switch (sLightningBolts[i].state) {
|
switch (sLightningBolts[i].state) {
|
||||||
|
@ -1964,7 +1964,7 @@ void Environment_DrawLightning(GlobalContext* globalCtx, s32 unused) {
|
||||||
Matrix_Scale(22.0f, 100.0f, 22.0f, MTXMODE_APPLY);
|
Matrix_Scale(22.0f, 100.0f, 22.0f, MTXMODE_APPLY);
|
||||||
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0, 255, 255, 255, 128);
|
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0, 255, 255, 255, 128);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 0, 255, 255, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 0, 255, 255, 128);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_kankyo.c", 3333),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(lightningTextures[sLightningBolts[i].textureIndex]));
|
gSPSegment(POLY_XLU_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(lightningTextures[sLightningBolts[i].textureIndex]));
|
||||||
func_80094C50(globalCtx->state.gfxCtx);
|
func_80094C50(globalCtx->state.gfxCtx);
|
||||||
|
@ -1973,7 +1973,7 @@ void Environment_DrawLightning(GlobalContext* globalCtx, s32 unused) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_kankyo.c", 3353);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Environment_PlaySceneSequence(GlobalContext* globalCtx) {
|
void Environment_PlaySceneSequence(GlobalContext* globalCtx) {
|
||||||
|
@ -2239,7 +2239,7 @@ void func_800766C4(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
void Environment_FillScreen(GraphicsContext* gfxCtx, u8 red, u8 green, u8 blue, u8 alpha, u8 drawFlags) {
|
void Environment_FillScreen(GraphicsContext* gfxCtx, u8 red, u8 green, u8 blue, u8 alpha, u8 drawFlags) {
|
||||||
if (alpha != 0) {
|
if (alpha != 0) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_kankyo.c", 3835);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (drawFlags & FILL_SCREEN_OPA) {
|
if (drawFlags & FILL_SCREEN_OPA) {
|
||||||
POLY_OPA_DISP = func_800937C0(POLY_OPA_DISP);
|
POLY_OPA_DISP = func_800937C0(POLY_OPA_DISP);
|
||||||
|
@ -2262,7 +2262,7 @@ void Environment_FillScreen(GraphicsContext* gfxCtx, u8 red, u8 green, u8 blue,
|
||||||
gDPFillRectangle(POLY_XLU_DISP++, 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1);
|
gDPFillRectangle(POLY_XLU_DISP++, 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_kankyo.c", 3863);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2413,7 +2413,7 @@ void Environment_DrawSandstorm(GlobalContext* globalCtx, u8 sandstormState) {
|
||||||
sp94 = (s32)(D_8015FDB0 * (9.0f / 6.0f));
|
sp94 = (s32)(D_8015FDB0 * (9.0f / 6.0f));
|
||||||
sp92 = (s32)(D_8015FDB0 * (6.0f / 6.0f));
|
sp92 = (s32)(D_8015FDB0 * (6.0f / 6.0f));
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_kankyo.c", 4044);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
POLY_XLU_DISP = func_80093F34(POLY_XLU_DISP);
|
POLY_XLU_DISP = func_80093F34(POLY_XLU_DISP);
|
||||||
gDPSetAlphaDither(POLY_XLU_DISP++, G_AD_NOISE);
|
gDPSetAlphaDither(POLY_XLU_DISP++, G_AD_NOISE);
|
||||||
|
@ -2429,7 +2429,7 @@ void Environment_DrawSandstorm(GlobalContext* globalCtx, u8 sandstormState) {
|
||||||
gSPWideTextureRectangle(POLY_XLU_DISP++, OTRGetRectDimensionFromLeftEdge(0) << 2, 0,
|
gSPWideTextureRectangle(POLY_XLU_DISP++, OTRGetRectDimensionFromLeftEdge(0) << 2, 0,
|
||||||
OTRGetRectDimensionFromRightEdge(SCREEN_WIDTH) << 2, 0x03C0, G_TX_RENDERTILE, 0, 0, 0x008C,
|
OTRGetRectDimensionFromRightEdge(SCREEN_WIDTH) << 2, 0x03C0, G_TX_RENDERTILE, 0, 0, 0x008C,
|
||||||
-0x008C);
|
-0x008C);
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_kankyo.c", 4068);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
D_8015FDB0 += (s32)sp98;
|
D_8015FDB0 += (s32)sp98;
|
||||||
}
|
}
|
||||||
|
|
|
@ -412,7 +412,7 @@ void HealthMeter_Draw(GlobalContext* globalCtx) {
|
||||||
u8* curBgImgLoaded = NULL;
|
u8* curBgImgLoaded = NULL;
|
||||||
s32 ddHeartCountMinusOne = gSaveContext.inventory.defenseHearts - 1;
|
s32 ddHeartCountMinusOne = gSaveContext.inventory.defenseHearts - 1;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_lifemeter.c", 353);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (!(gSaveContext.health % 0x10)) {
|
if (!(gSaveContext.health % 0x10)) {
|
||||||
fullHeartCount--;
|
fullHeartCount--;
|
||||||
|
@ -584,7 +584,7 @@ void HealthMeter_Draw(GlobalContext* globalCtx) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_lifemeter.c", 606);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HealthMeter_HandleCriticalAlarm(GlobalContext* globalCtx) {
|
void HealthMeter_HandleCriticalAlarm(GlobalContext* globalCtx) {
|
||||||
|
|
|
@ -67,7 +67,7 @@ void Lights_Draw(Lights* lights, GraphicsContext* gfxCtx) {
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_lights.c", 339);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPNumLights(POLY_OPA_DISP++, lights->numLights);
|
gSPNumLights(POLY_OPA_DISP++, lights->numLights);
|
||||||
gSPNumLights(POLY_XLU_DISP++, lights->numLights);
|
gSPNumLights(POLY_XLU_DISP++, lights->numLights);
|
||||||
|
@ -88,7 +88,7 @@ void Lights_Draw(Lights* lights, GraphicsContext* gfxCtx) {
|
||||||
gSPLight(POLY_OPA_DISP++, &lights->l.a, i);
|
gSPLight(POLY_OPA_DISP++, &lights->l.a, i);
|
||||||
gSPLight(POLY_XLU_DISP++, &lights->l.a, i);
|
gSPLight(POLY_XLU_DISP++, &lights->l.a, i);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_lights.c", 352);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -417,7 +417,7 @@ void Lights_DrawGlow(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
node = globalCtx->lightCtx.listHead;
|
node = globalCtx->lightCtx.listHead;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_lights.c", 887);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
POLY_XLU_DISP = func_800947AC(POLY_XLU_DISP++);
|
POLY_XLU_DISP = func_800947AC(POLY_XLU_DISP++);
|
||||||
gDPSetAlphaDither(POLY_XLU_DISP++, G_AD_NOISE);
|
gDPSetAlphaDither(POLY_XLU_DISP++, G_AD_NOISE);
|
||||||
|
@ -440,7 +440,7 @@ void Lights_DrawGlow(GlobalContext* globalCtx) {
|
||||||
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0, params->color[0], params->color[1], params->color[2], 50);
|
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0, params->color[0], params->color[1], params->color[2], 50);
|
||||||
Matrix_Translate(params->x, params->y, params->z, MTXMODE_NEW);
|
Matrix_Translate(params->x, params->y, params->z, MTXMODE_NEW);
|
||||||
Matrix_Scale(scale, scale, scale, MTXMODE_APPLY);
|
Matrix_Scale(scale, scale, scale, MTXMODE_APPLY);
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_lights.c", 918),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, gGlowCircleDL);
|
gSPDisplayList(POLY_XLU_DISP++, gGlowCircleDL);
|
||||||
FrameInterpolation_RecordCloseChild();
|
FrameInterpolation_RecordCloseChild();
|
||||||
|
@ -449,5 +449,5 @@ void Lights_DrawGlow(GlobalContext* globalCtx) {
|
||||||
node = node->next;
|
node = node->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_lights.c", 927);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
|
@ -410,7 +410,7 @@ void Map_InitData(GlobalContext* globalCtx, s16 room) {
|
||||||
sEntranceIconMapIndex = extendedMapIndex;
|
sEntranceIconMapIndex = extendedMapIndex;
|
||||||
//DmaMgr_SendRequest1(interfaceCtx->mapSegment,
|
//DmaMgr_SendRequest1(interfaceCtx->mapSegment,
|
||||||
//(uintptr_t)_map_grand_staticSegmentRomStart + gMapData->owMinimapTexOffset[extendedMapIndex],
|
//(uintptr_t)_map_grand_staticSegmentRomStart + gMapData->owMinimapTexOffset[extendedMapIndex],
|
||||||
//gMapData->owMinimapTexSize[mapIndex], "../z_map_exp.c", 309);
|
//gMapData->owMinimapTexSize[mapIndex], __FILE__, __LINE__);
|
||||||
|
|
||||||
if (sEntranceIconMapIndex < 24)
|
if (sEntranceIconMapIndex < 24)
|
||||||
memcpy(globalCtx->interfaceCtx.mapSegment, ResourceMgr_LoadTexByName(minimapTableOW[sEntranceIconMapIndex]), gMapData->owMinimapTexSize[mapIndex]);
|
memcpy(globalCtx->interfaceCtx.mapSegment, ResourceMgr_LoadTexByName(minimapTableOW[sEntranceIconMapIndex]), gMapData->owMinimapTexSize[mapIndex]);
|
||||||
|
@ -443,7 +443,7 @@ void Map_InitData(GlobalContext* globalCtx, s16 room) {
|
||||||
//DmaMgr_SendRequest1(globalCtx->interfaceCtx.mapSegment,
|
//DmaMgr_SendRequest1(globalCtx->interfaceCtx.mapSegment,
|
||||||
//(uintptr_t)_map_i_staticSegmentRomStart +
|
//(uintptr_t)_map_i_staticSegmentRomStart +
|
||||||
//((gMapData->dgnMinimapTexIndexOffset[mapIndex] + room) * 0xFF0),
|
//((gMapData->dgnMinimapTexIndexOffset[mapIndex] + room) * 0xFF0),
|
||||||
//0xFF0, "../z_map_exp.c", 346);
|
//0xFF0, __FILE__, __LINE__);
|
||||||
|
|
||||||
memcpy(globalCtx->interfaceCtx.mapSegment, ResourceMgr_LoadTexByName(minimapTableDangeon[gMapData->dgnMinimapTexIndexOffset[mapIndex] + room]), 0xFF0);
|
memcpy(globalCtx->interfaceCtx.mapSegment, ResourceMgr_LoadTexByName(minimapTableDangeon[gMapData->dgnMinimapTexIndexOffset[mapIndex] + room]), 0xFF0);
|
||||||
|
|
||||||
|
@ -516,11 +516,11 @@ void Map_Init(GlobalContext* globalCtx) {
|
||||||
interfaceCtx->unk_258 = -1;
|
interfaceCtx->unk_258 = -1;
|
||||||
interfaceCtx->unk_25A = -1;
|
interfaceCtx->unk_25A = -1;
|
||||||
|
|
||||||
interfaceCtx->mapSegment = GameState_Alloc(&globalCtx->state, 0x1000, "../z_map_exp.c", 457);
|
interfaceCtx->mapSegment = GameState_Alloc(&globalCtx->state, 0x1000, __FILE__, __LINE__);
|
||||||
// "MAP texture initialization scene_data_ID=%d mapSegment=%x"
|
// "MAP texture initialization scene_data_ID=%d mapSegment=%x"
|
||||||
osSyncPrintf("\n\n\nMAP テクスチャ初期化 scene_data_ID=%d\nmapSegment=%x\n\n", globalCtx->sceneNum,
|
osSyncPrintf("\n\n\nMAP テクスチャ初期化 scene_data_ID=%d\nmapSegment=%x\n\n", globalCtx->sceneNum,
|
||||||
interfaceCtx->mapSegment, globalCtx);
|
interfaceCtx->mapSegment, globalCtx);
|
||||||
ASSERT(interfaceCtx->mapSegment != NULL, "parameter->mapSegment != NULL", "../z_map_exp.c", 459);
|
ASSERT(interfaceCtx->mapSegment != NULL, "parameter->mapSegment != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
switch (globalCtx->sceneNum) {
|
switch (globalCtx->sceneNum) {
|
||||||
case SCENE_SPOT00:
|
case SCENE_SPOT00:
|
||||||
|
@ -599,7 +599,7 @@ void Minimap_DrawCompassIcons(GlobalContext* globalCtx) {
|
||||||
Player* player = GET_PLAYER(globalCtx);
|
Player* player = GET_PLAYER(globalCtx);
|
||||||
s16 tempX, tempZ;
|
s16 tempX, tempZ;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_map_exp.c", 565);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (globalCtx->interfaceCtx.minimapAlpha >= 0xAA) {
|
if (globalCtx->interfaceCtx.minimapAlpha >= 0xAA) {
|
||||||
func_80094A14(globalCtx->state.gfxCtx);
|
func_80094A14(globalCtx->state.gfxCtx);
|
||||||
|
@ -618,7 +618,7 @@ void Minimap_DrawCompassIcons(GlobalContext* globalCtx) {
|
||||||
Matrix_RotateX(-1.6f, MTXMODE_APPLY);
|
Matrix_RotateX(-1.6f, MTXMODE_APPLY);
|
||||||
tempX = (0x7FFF - player->actor.shape.rot.y) / 0x400;
|
tempX = (0x7FFF - player->actor.shape.rot.y) / 0x400;
|
||||||
Matrix_RotateY(tempX / 10.0f, MTXMODE_APPLY);
|
Matrix_RotateY(tempX / 10.0f, MTXMODE_APPLY);
|
||||||
gSPMatrix(OVERLAY_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_map_exp.c", 585),
|
gSPMatrix(OVERLAY_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
|
|
||||||
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, 200, 255, 0, 255);
|
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, 200, 255, 0, 255);
|
||||||
|
@ -632,14 +632,14 @@ void Minimap_DrawCompassIcons(GlobalContext* globalCtx) {
|
||||||
Matrix_Scale(VREG(9) / 100.0f, VREG(9) / 100.0f, VREG(9) / 100.0f, MTXMODE_APPLY);
|
Matrix_Scale(VREG(9) / 100.0f, VREG(9) / 100.0f, VREG(9) / 100.0f, MTXMODE_APPLY);
|
||||||
Matrix_RotateX(VREG(52) / 10.0f, MTXMODE_APPLY);
|
Matrix_RotateX(VREG(52) / 10.0f, MTXMODE_APPLY);
|
||||||
Matrix_RotateY(sPlayerInitialDirection / 10.0f, MTXMODE_APPLY);
|
Matrix_RotateY(sPlayerInitialDirection / 10.0f, MTXMODE_APPLY);
|
||||||
gSPMatrix(OVERLAY_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_map_exp.c", 603),
|
gSPMatrix(OVERLAY_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
|
|
||||||
gDPSetPrimColor(OVERLAY_DISP++, 0, 0xFF, 200, 0, 0, 255);
|
gDPSetPrimColor(OVERLAY_DISP++, 0, 0xFF, 200, 0, 0, 255);
|
||||||
gSPDisplayList(OVERLAY_DISP++, gCompassArrowDL);
|
gSPDisplayList(OVERLAY_DISP++, gCompassArrowDL);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_map_exp.c", 607);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Minimap_Draw(GlobalContext* globalCtx) {
|
void Minimap_Draw(GlobalContext* globalCtx) {
|
||||||
|
@ -647,7 +647,7 @@ void Minimap_Draw(GlobalContext* globalCtx) {
|
||||||
InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx;
|
InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx;
|
||||||
s32 mapIndex = gSaveContext.mapIndex;
|
s32 mapIndex = gSaveContext.mapIndex;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_map_exp.c", 626);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (globalCtx->pauseCtx.state < 4) {
|
if (globalCtx->pauseCtx.state < 4) {
|
||||||
switch (globalCtx->sceneNum) {
|
switch (globalCtx->sceneNum) {
|
||||||
|
@ -819,7 +819,7 @@ void Minimap_Draw(GlobalContext* globalCtx) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_map_exp.c", 782);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
s16 Map_GetFloorTextIndexOffset(s32 mapIndex, s32 floor) {
|
s16 Map_GetFloorTextIndexOffset(s32 mapIndex, s32 floor) {
|
||||||
|
|
|
@ -58,8 +58,8 @@ void MapMark_Init(GlobalContext* globalCtx) {
|
||||||
MapMarkDataOverlay* overlay = &sMapMarkDataOvl;
|
MapMarkDataOverlay* overlay = &sMapMarkDataOvl;
|
||||||
u32 overlaySize = (uintptr_t)overlay->vramEnd - (uintptr_t)overlay->vramStart;
|
u32 overlaySize = (uintptr_t)overlay->vramEnd - (uintptr_t)overlay->vramStart;
|
||||||
|
|
||||||
overlay->loadedRamAddr = GameState_Alloc(&globalCtx->state, overlaySize, "../z_map_mark.c", 235);
|
overlay->loadedRamAddr = GameState_Alloc(&globalCtx->state, overlaySize, __FILE__, __LINE__);
|
||||||
LogUtils_CheckNullPointer("dlftbl->allocp", overlay->loadedRamAddr, "../z_map_mark.c", 236);
|
LogUtils_CheckNullPointer("dlftbl->allocp", overlay->loadedRamAddr, __FILE__, __LINE__);
|
||||||
|
|
||||||
Overlay_Load(overlay->vromStart, overlay->vromEnd, overlay->vramStart, overlay->vramEnd, overlay->loadedRamAddr);
|
Overlay_Load(overlay->vromStart, overlay->vromEnd, overlay->vramStart, overlay->vramEnd, overlay->loadedRamAddr);
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ void MapMark_DrawForDungeon(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
mapMarkIconData = &sLoadedMarkDataTable[dungeon][interfaceCtx->mapRoomNum][0];
|
mapMarkIconData = &sLoadedMarkDataTable[dungeon][interfaceCtx->mapRoomNum][0];
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_map_mark.c", 303);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
if (mapMarkIconData->markType == MAP_MARK_NONE) {
|
if (mapMarkIconData->markType == MAP_MARK_NONE) {
|
||||||
|
@ -145,7 +145,7 @@ void MapMark_DrawForDungeon(GlobalContext* globalCtx) {
|
||||||
mapMarkIconData++;
|
mapMarkIconData++;
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_map_mark.c", 339);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MapMark_Draw(GlobalContext* globalCtx) {
|
void MapMark_Draw(GlobalContext* globalCtx) {
|
||||||
|
|
|
@ -1626,7 +1626,7 @@ void Message_OpenText(GlobalContext* globalCtx, u16 textId) {
|
||||||
|
|
||||||
// OTRTODO
|
// OTRTODO
|
||||||
//DmaMgr_SendRequest1(font->msgBuf, (uintptr_t)(_staff_message_data_staticSegmentRomStart + 4 + font->msgOffset),
|
//DmaMgr_SendRequest1(font->msgBuf, (uintptr_t)(_staff_message_data_staticSegmentRomStart + 4 + font->msgOffset),
|
||||||
//font->msgLength, "../z_message_PAL.c", 1954);
|
//font->msgLength, __FILE__, __LINE__);
|
||||||
} else {
|
} else {
|
||||||
Message_FindMessage(globalCtx, textId);
|
Message_FindMessage(globalCtx, textId);
|
||||||
msgCtx->msgLength = font->msgLength;
|
msgCtx->msgLength = font->msgLength;
|
||||||
|
@ -2919,7 +2919,7 @@ void Message_DrawDebugVariableChanged(s16* var, GraphicsContext* gfxCtx) {
|
||||||
static s16 sFillTimer = 0;
|
static s16 sFillTimer = 0;
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_message_PAL.c", 3485);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (sVarLastValue != *var) {
|
if (sVarLastValue != *var) {
|
||||||
sVarLastValue = *var;
|
sVarLastValue = *var;
|
||||||
|
@ -2940,7 +2940,7 @@ void Message_DrawDebugVariableChanged(s16* var, GraphicsContext* gfxCtx) {
|
||||||
gDPFillRectangle(POLY_OPA_DISP++, 40, 120, 60, 140); // 20x20 white box
|
gDPFillRectangle(POLY_OPA_DISP++, 40, 120, 60, 140); // 20x20 white box
|
||||||
gDPPipeSync(POLY_OPA_DISP++);
|
gDPPipeSync(POLY_OPA_DISP++);
|
||||||
}
|
}
|
||||||
CLOSE_DISPS(gfxCtx, "../z_message_PAL.c", 3513);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Message_DrawDebugText(GlobalContext* globalCtx, Gfx** p) {
|
void Message_DrawDebugText(GlobalContext* globalCtx, Gfx** p) {
|
||||||
|
@ -2966,7 +2966,7 @@ void Message_Draw(GlobalContext* globalCtx) {
|
||||||
Gfx* polyOpaP;
|
Gfx* polyOpaP;
|
||||||
s16 watchVar;
|
s16 watchVar;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_message_PAL.c", 3554);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
watchVar = gSaveContext.scarecrowCustomSongSet;
|
watchVar = gSaveContext.scarecrowCustomSongSet;
|
||||||
Message_DrawDebugVariableChanged(&watchVar, globalCtx->state.gfxCtx);
|
Message_DrawDebugVariableChanged(&watchVar, globalCtx->state.gfxCtx);
|
||||||
|
@ -2985,7 +2985,7 @@ void Message_Draw(GlobalContext* globalCtx) {
|
||||||
gSPEndDisplayList(plusOne++);
|
gSPEndDisplayList(plusOne++);
|
||||||
Graph_BranchDlist(polyOpaP, plusOne);
|
Graph_BranchDlist(polyOpaP, plusOne);
|
||||||
POLY_OPA_DISP = plusOne;
|
POLY_OPA_DISP = plusOne;
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_message_PAL.c", 3582);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Message_Update(GlobalContext* globalCtx) {
|
void Message_Update(GlobalContext* globalCtx) {
|
||||||
|
|
|
@ -73,7 +73,7 @@ void Moji_SetPosition(s32 gridX, s32 gridY) {
|
||||||
void Moji_DrawChar(GraphicsContext* gfxCtx, char c) {
|
void Moji_DrawChar(GraphicsContext* gfxCtx, char c) {
|
||||||
s32 pad[2];
|
s32 pad[2];
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_moji.c", 86);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if ((u32)gMojiFontTLUTs & 0xF) {
|
if ((u32)gMojiFontTLUTs & 0xF) {
|
||||||
osSyncPrintf("moji_tlut --> %X\n", gMojiFontTLUTs);
|
osSyncPrintf("moji_tlut --> %X\n", gMojiFontTLUTs);
|
||||||
|
@ -87,7 +87,7 @@ void Moji_DrawChar(GraphicsContext* gfxCtx, char c) {
|
||||||
(sScreenPosY + DISP_CHAR_HEIGHT) << 2, G_TX_RENDERTILE, GET_TEX_CHAR_S(c), GET_TEX_CHAR_T(c),
|
(sScreenPosY + DISP_CHAR_HEIGHT) << 2, G_TX_RENDERTILE, GET_TEX_CHAR_S(c), GET_TEX_CHAR_T(c),
|
||||||
(1 << 10) * TEX_CHAR_WIDTH / DISP_CHAR_WIDTH, (1 << 10) * TEX_CHAR_HEIGHT / DISP_CHAR_HEIGHT);
|
(1 << 10) * TEX_CHAR_WIDTH / DISP_CHAR_WIDTH, (1 << 10) * TEX_CHAR_HEIGHT / DISP_CHAR_HEIGHT);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_moji.c", 123);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -99,7 +99,7 @@ void Moji_DrawChar(GraphicsContext* gfxCtx, char c) {
|
||||||
void Moji_DrawString(GraphicsContext* gfxCtx, const char* str) {
|
void Moji_DrawString(GraphicsContext* gfxCtx, const char* str) {
|
||||||
s32 i;
|
s32 i;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_moji.c", 137);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if ((u32)gMojiFontTex & 0xF) {
|
if ((u32)gMojiFontTex & 0xF) {
|
||||||
osSyncPrintf("font_ff --> %X\n", gMojiFontTex);
|
osSyncPrintf("font_ff --> %X\n", gMojiFontTex);
|
||||||
|
@ -140,5 +140,5 @@ void Moji_DrawString(GraphicsContext* gfxCtx, const char* str) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_moji.c", 181);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
|
@ -246,7 +246,7 @@ s32 OnePointCutscene_SetInfo(GlobalContext* globalCtx, s16 camIdx, s16 csId, Act
|
||||||
D_801211D4[0].atTargetInit.y = actor->focus.pos.y - 5.0f;
|
D_801211D4[0].atTargetInit.y = actor->focus.pos.y - 5.0f;
|
||||||
D_801211D4[0].atTargetInit.z = actor->focus.pos.z;
|
D_801211D4[0].atTargetInit.z = actor->focus.pos.z;
|
||||||
spC0 = ((EnSw*)actor)->unk_364;
|
spC0 = ((EnSw*)actor)->unk_364;
|
||||||
osSyncPrintf("%s(%d): xyz_t: %s (%f %f %f)\n", "../z_onepointdemo.c", 1671, "&cp", spC0.x, spC0.y,
|
osSyncPrintf("%s(%d): xyz_t: %s (%f %f %f)\n", __FILE__, __LINE__, "&cp", spC0.x, spC0.y,
|
||||||
spC0.z);
|
spC0.z);
|
||||||
D_801211D4[0].eyeTargetInit.x = (actor->focus.pos.x + (120.0f * spC0.x)) - (Rand_ZeroOne() * 20.0f);
|
D_801211D4[0].eyeTargetInit.x = (actor->focus.pos.x + (120.0f * spC0.x)) - (Rand_ZeroOne() * 20.0f);
|
||||||
D_801211D4[0].eyeTargetInit.y = actor->focus.pos.y + (120.0f * spC0.y) + 20.0f;
|
D_801211D4[0].eyeTargetInit.y = actor->focus.pos.y + (120.0f * spC0.y) + 20.0f;
|
||||||
|
|
|
@ -1495,7 +1495,7 @@ void Interface_LoadItemIcon1(GlobalContext* globalCtx, u16 button) {
|
||||||
osCreateMesgQueue(&interfaceCtx->loadQueue, &interfaceCtx->loadMsg, OS_MESG_BLOCK);
|
osCreateMesgQueue(&interfaceCtx->loadQueue, &interfaceCtx->loadMsg, OS_MESG_BLOCK);
|
||||||
DmaMgr_SendRequest2(&interfaceCtx->dmaRequest_160, interfaceCtx->iconItemSegment + button * 0x1000,
|
DmaMgr_SendRequest2(&interfaceCtx->dmaRequest_160, interfaceCtx->iconItemSegment + button * 0x1000,
|
||||||
(uintptr_t)_icon_item_staticSegmentRomStart + (gSaveContext.equips.buttonItems[button] * 0x1000),
|
(uintptr_t)_icon_item_staticSegmentRomStart + (gSaveContext.equips.buttonItems[button] * 0x1000),
|
||||||
0x1000, 0, &interfaceCtx->loadQueue, OS_MESG_PTR(NULL), "../z_parameter.c", 1171);
|
0x1000, 0, &interfaceCtx->loadQueue, OS_MESG_PTR(NULL), __FILE__, __LINE__);
|
||||||
osRecvMesg(&interfaceCtx->loadQueue, NULL, OS_MESG_BLOCK);
|
osRecvMesg(&interfaceCtx->loadQueue, NULL, OS_MESG_BLOCK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1505,7 +1505,7 @@ void Interface_LoadItemIcon2(GlobalContext* globalCtx, u16 button) {
|
||||||
osCreateMesgQueue(&interfaceCtx->loadQueue, &interfaceCtx->loadMsg, OS_MESG_BLOCK);
|
osCreateMesgQueue(&interfaceCtx->loadQueue, &interfaceCtx->loadMsg, OS_MESG_BLOCK);
|
||||||
DmaMgr_SendRequest2(&interfaceCtx->dmaRequest_180, interfaceCtx->iconItemSegment + button * 0x1000,
|
DmaMgr_SendRequest2(&interfaceCtx->dmaRequest_180, interfaceCtx->iconItemSegment + button * 0x1000,
|
||||||
(uintptr_t)_icon_item_staticSegmentRomStart + (gSaveContext.equips.buttonItems[button] * 0x1000),
|
(uintptr_t)_icon_item_staticSegmentRomStart + (gSaveContext.equips.buttonItems[button] * 0x1000),
|
||||||
0x1000, 0, &interfaceCtx->loadQueue, OS_MESG_PTR(NULL), "../z_parameter.c", 1193);
|
0x1000, 0, &interfaceCtx->loadQueue, OS_MESG_PTR(NULL), __FILE__, __LINE__);
|
||||||
osRecvMesg(&interfaceCtx->loadQueue, NULL, OS_MESG_BLOCK);
|
osRecvMesg(&interfaceCtx->loadQueue, NULL, OS_MESG_BLOCK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2312,7 +2312,7 @@ void Interface_LoadActionLabel(InterfaceContext* interfaceCtx, u16 action, s16 l
|
||||||
//DmaMgr_SendRequest2(&interfaceCtx->dmaRequest_160,
|
//DmaMgr_SendRequest2(&interfaceCtx->dmaRequest_160,
|
||||||
//interfaceCtx->doActionSegment + (loadOffset * DO_ACTION_TEX_SIZE),
|
//interfaceCtx->doActionSegment + (loadOffset * DO_ACTION_TEX_SIZE),
|
||||||
//(uintptr_t)_do_action_staticSegmentRomStart + (action * DO_ACTION_TEX_SIZE), DO_ACTION_TEX_SIZE,
|
//(uintptr_t)_do_action_staticSegmentRomStart + (action * DO_ACTION_TEX_SIZE), DO_ACTION_TEX_SIZE,
|
||||||
//0, &interfaceCtx->loadQueue, NULL, "../z_parameter.c", 2145);
|
//0, &interfaceCtx->loadQueue, NULL, __FILE__, __LINE__);
|
||||||
//osRecvMesg(&interfaceCtx->loadQueue, NULL, OS_MESG_BLOCK);
|
//osRecvMesg(&interfaceCtx->loadQueue, NULL, OS_MESG_BLOCK);
|
||||||
} else {
|
} else {
|
||||||
gSegments[7] = VIRTUAL_TO_PHYSICAL(interfaceCtx->doActionSegment);
|
gSegments[7] = VIRTUAL_TO_PHYSICAL(interfaceCtx->doActionSegment);
|
||||||
|
@ -2398,7 +2398,7 @@ void Interface_LoadActionLabelB(GlobalContext* globalCtx, u16 action) {
|
||||||
memcpy(interfaceCtx->doActionSegment + DO_ACTION_TEX_SIZE, ResourceMgr_LoadTexByName(doAction), DO_ACTION_TEX_SIZE);
|
memcpy(interfaceCtx->doActionSegment + DO_ACTION_TEX_SIZE, ResourceMgr_LoadTexByName(doAction), DO_ACTION_TEX_SIZE);
|
||||||
//DmaMgr_SendRequest2(&interfaceCtx->dmaRequest_160, interfaceCtx->doActionSegment + DO_ACTION_TEX_SIZE,
|
//DmaMgr_SendRequest2(&interfaceCtx->dmaRequest_160, interfaceCtx->doActionSegment + DO_ACTION_TEX_SIZE,
|
||||||
//(uintptr_t)_do_action_staticSegmentRomStart + (action * DO_ACTION_TEX_SIZE), DO_ACTION_TEX_SIZE, 0,
|
//(uintptr_t)_do_action_staticSegmentRomStart + (action * DO_ACTION_TEX_SIZE), DO_ACTION_TEX_SIZE, 0,
|
||||||
//&interfaceCtx->loadQueue, NULL, "../z_parameter.c", 2228);
|
//&interfaceCtx->loadQueue, NULL, __FILE__, __LINE__);
|
||||||
osRecvMesg(&interfaceCtx->loadQueue, NULL, OS_MESG_BLOCK);
|
osRecvMesg(&interfaceCtx->loadQueue, NULL, OS_MESG_BLOCK);
|
||||||
|
|
||||||
interfaceCtx->unk_1FA = 1;
|
interfaceCtx->unk_1FA = 1;
|
||||||
|
@ -2835,7 +2835,7 @@ void Interface_DrawMagicBar(GlobalContext* globalCtx) {
|
||||||
InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx;
|
InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx;
|
||||||
s16 magicBarY;
|
s16 magicBarY;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_parameter.c", 2650);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (gSaveContext.magicLevel != 0) {
|
if (gSaveContext.magicLevel != 0) {
|
||||||
if (gSaveContext.healthCapacity > 0xA0) {
|
if (gSaveContext.healthCapacity > 0xA0) {
|
||||||
|
@ -2921,7 +2921,7 @@ void Interface_DrawMagicBar(GlobalContext* globalCtx) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_parameter.c", 2731);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80088AA0(s16 arg0) {
|
void func_80088AA0(s16 arg0) {
|
||||||
|
@ -2961,7 +2961,7 @@ void func_80088B34(s16 arg0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Interface_DrawActionLabel(GraphicsContext* gfxCtx, void* texture) {
|
void Interface_DrawActionLabel(GraphicsContext* gfxCtx, void* texture) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_parameter.c", 2820);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPLoadTextureBlock_4b(OVERLAY_DISP++, texture, G_IM_FMT_IA, DO_ACTION_TEX_WIDTH, DO_ACTION_TEX_HEIGHT, 0,
|
gDPLoadTextureBlock_4b(OVERLAY_DISP++, texture, G_IM_FMT_IA, DO_ACTION_TEX_WIDTH, DO_ACTION_TEX_HEIGHT, 0,
|
||||||
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD,
|
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD,
|
||||||
|
@ -2969,7 +2969,7 @@ void Interface_DrawActionLabel(GraphicsContext* gfxCtx, void* texture) {
|
||||||
|
|
||||||
gSP1Quadrangle(OVERLAY_DISP++, 0, 2, 3, 1, 0);
|
gSP1Quadrangle(OVERLAY_DISP++, 0, 2, 3, 1, 0);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_parameter.c", 2829);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Interface_DrawItemButtons(GlobalContext* globalCtx) {
|
void Interface_DrawItemButtons(GlobalContext* globalCtx) {
|
||||||
|
@ -2988,7 +2988,7 @@ void Interface_DrawItemButtons(GlobalContext* globalCtx) {
|
||||||
s16 C_Up_BTN_Pos[] = { C_UP_BUTTON_X+Right_HUD_Margin, C_UP_BUTTON_Y+(Top_HUD_Margin*-1) };
|
s16 C_Up_BTN_Pos[] = { C_UP_BUTTON_X+Right_HUD_Margin, C_UP_BUTTON_Y+(Top_HUD_Margin*-1) };
|
||||||
s16 C_Down_BTN_Pos[] = { C_DOWN_BUTTON_X+Right_HUD_Margin, C_DOWN_BUTTON_Y+(Top_HUD_Margin*-1) };
|
s16 C_Down_BTN_Pos[] = { C_DOWN_BUTTON_X+Right_HUD_Margin, C_DOWN_BUTTON_Y+(Top_HUD_Margin*-1) };
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_parameter.c", 2900);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
// B Button Color & Texture
|
// B Button Color & Texture
|
||||||
// Also loads the Item Button Texture reused by other buttons afterwards
|
// Also loads the Item Button Texture reused by other buttons afterwards
|
||||||
|
@ -3184,7 +3184,7 @@ void Interface_DrawItemButtons(GlobalContext* globalCtx) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_parameter.c", 3071);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t gItemIconX[] = { B_BUTTON_X, C_LEFT_BUTTON_X, C_DOWN_BUTTON_X, C_RIGHT_BUTTON_X,
|
int16_t gItemIconX[] = { B_BUTTON_X, C_LEFT_BUTTON_X, C_DOWN_BUTTON_X, C_RIGHT_BUTTON_X,
|
||||||
|
@ -3195,7 +3195,7 @@ int16_t gItemIconWidth[] = { 30, 24, 24, 24, 16, 16, 16, 16 };
|
||||||
int16_t gItemIconDD[] = { 550, 680, 680, 680, 1024, 1024, 1024, 1024 };
|
int16_t gItemIconDD[] = { 550, 680, 680, 680, 1024, 1024, 1024, 1024 };
|
||||||
|
|
||||||
void Interface_DrawItemIconTexture(GlobalContext* globalCtx, void* texture, s16 button) {
|
void Interface_DrawItemIconTexture(GlobalContext* globalCtx, void* texture, s16 button) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_parameter.c", 3079);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPLoadTextureBlock(OVERLAY_DISP++, texture, G_IM_FMT_RGBA, G_IM_SIZ_32b, 32, 32, 0, G_TX_NOMIRROR | G_TX_WRAP,
|
gDPLoadTextureBlock(OVERLAY_DISP++, texture, G_IM_FMT_RGBA, G_IM_SIZ_32b, 32, 32, 0, G_TX_NOMIRROR | G_TX_WRAP,
|
||||||
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
||||||
|
@ -3207,7 +3207,7 @@ void Interface_DrawItemIconTexture(GlobalContext* globalCtx, void* texture, s16
|
||||||
(gItemIconY[button] + (Top_HUD_Margin * -1) + gItemIconWidth[button]) << 2, G_TX_RENDERTILE, 0, 0,
|
(gItemIconY[button] + (Top_HUD_Margin * -1) + gItemIconWidth[button]) << 2, G_TX_RENDERTILE, 0, 0,
|
||||||
gItemIconDD[button] << 1, gItemIconDD[button] << 1);
|
gItemIconDD[button] << 1, gItemIconDD[button] << 1);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_parameter.c", 3094);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* _gAmmoDigit0Tex[] =
|
const char* _gAmmoDigit0Tex[] =
|
||||||
|
@ -3225,7 +3225,7 @@ void Interface_DrawAmmoCount(GlobalContext* globalCtx, s16 button, s16 alpha) {
|
||||||
s16 i;
|
s16 i;
|
||||||
s16 ammo;
|
s16 ammo;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_parameter.c", 3105);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
i = gSaveContext.equips.buttonItems[button];
|
i = gSaveContext.equips.buttonItems[button];
|
||||||
|
|
||||||
|
@ -3278,19 +3278,19 @@ void Interface_DrawAmmoCount(GlobalContext* globalCtx, s16 button, s16 alpha) {
|
||||||
gItemAmmoY[button] + (Top_HUD_Margin * -1), 8, 8, 1 << 10, 1 << 10);
|
gItemAmmoY[button] + (Top_HUD_Margin * -1), 8, 8, 1 << 10, 1 << 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_parameter.c", 3158);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Interface_DrawActionButton(GlobalContext* globalCtx, f32 x, f32 y) {
|
void Interface_DrawActionButton(GlobalContext* globalCtx, f32 x, f32 y) {
|
||||||
InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx;
|
InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_parameter.c", 3172);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
Matrix_Translate(-137.0f + x, 97.0f - y, XREG(18) / 10.0f, MTXMODE_NEW);
|
Matrix_Translate(-137.0f + x, 97.0f - y, XREG(18) / 10.0f, MTXMODE_NEW);
|
||||||
Matrix_Scale(1.0f, 1.0f, 1.0f, MTXMODE_APPLY);
|
Matrix_Scale(1.0f, 1.0f, 1.0f, MTXMODE_APPLY);
|
||||||
Matrix_RotateX(interfaceCtx->unk_1F4 / 10000.0f, MTXMODE_APPLY);
|
Matrix_RotateX(interfaceCtx->unk_1F4 / 10000.0f, MTXMODE_APPLY);
|
||||||
|
|
||||||
gSPMatrix(OVERLAY_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_parameter.c", 3177),
|
gSPMatrix(OVERLAY_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPVertex(OVERLAY_DISP++, &interfaceCtx->actionVtx[0], 4, 0);
|
gSPVertex(OVERLAY_DISP++, &interfaceCtx->actionVtx[0], 4, 0);
|
||||||
|
|
||||||
|
@ -3300,7 +3300,7 @@ void Interface_DrawActionButton(GlobalContext* globalCtx, f32 x, f32 y) {
|
||||||
|
|
||||||
gSP1Quadrangle(OVERLAY_DISP++, 0, 2, 3, 1, 0);
|
gSP1Quadrangle(OVERLAY_DISP++, 0, 2, 3, 1, 0);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_parameter.c", 3187);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Interface_InitVertices(GlobalContext* globalCtx) {
|
void Interface_InitVertices(GlobalContext* globalCtx) {
|
||||||
|
@ -3464,7 +3464,7 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||||
s16 svar6;
|
s16 svar6;
|
||||||
bool fullUi = !CVar_GetS32("gMinimalUI", 0) || !R_MINIMAP_DISABLED || globalCtx->pauseCtx.state != 0;
|
bool fullUi = !CVar_GetS32("gMinimalUI", 0) || !R_MINIMAP_DISABLED || globalCtx->pauseCtx.state != 0;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_parameter.c", 3405);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
// Invalidate Do Action textures as they may have changed
|
// Invalidate Do Action textures as they may have changed
|
||||||
gSPInvalidateTexCache(OVERLAY_DISP++, interfaceCtx->doActionSegment);
|
gSPInvalidateTexCache(OVERLAY_DISP++, interfaceCtx->doActionSegment);
|
||||||
|
@ -3798,7 +3798,7 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||||
Matrix_Translate(-138.0f + rAIconX, 98.0f - (R_A_ICON_Y+(Top_HUD_Margin*-1)), WREG(46 + gSaveContext.language) / 10.0f, MTXMODE_NEW);
|
Matrix_Translate(-138.0f + rAIconX, 98.0f - (R_A_ICON_Y+(Top_HUD_Margin*-1)), WREG(46 + gSaveContext.language) / 10.0f, MTXMODE_NEW);
|
||||||
Matrix_Scale(1.0f, 1.0f, 1.0f, MTXMODE_APPLY);
|
Matrix_Scale(1.0f, 1.0f, 1.0f, MTXMODE_APPLY);
|
||||||
Matrix_RotateX(interfaceCtx->unk_1F4 / 10000.0f, MTXMODE_APPLY);
|
Matrix_RotateX(interfaceCtx->unk_1F4 / 10000.0f, MTXMODE_APPLY);
|
||||||
gSPMatrix(OVERLAY_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_parameter.c", 3701),
|
gSPMatrix(OVERLAY_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||||
gSPVertex(OVERLAY_DISP++, &interfaceCtx->actionVtx[4], 4, 0);
|
gSPVertex(OVERLAY_DISP++, &interfaceCtx->actionVtx[4], 4, 0);
|
||||||
|
|
||||||
|
@ -4350,7 +4350,7 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||||
gDPFillRectangle(OVERLAY_DISP++, 0, 0, gScreenWidth - 1, gScreenHeight - 1);
|
gDPFillRectangle(OVERLAY_DISP++, 0, 0, gScreenWidth - 1, gScreenHeight - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_parameter.c", 4269);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Interface_Update(GlobalContext* globalCtx) {
|
void Interface_Update(GlobalContext* globalCtx) {
|
||||||
|
|
|
@ -28,7 +28,7 @@ void func_800BC450(GlobalContext* globalCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_800BC490(GlobalContext* globalCtx, s16 point) {
|
void func_800BC490(GlobalContext* globalCtx, s16 point) {
|
||||||
ASSERT(point == 1 || point == 2, "point == 1 || point == 2", "../z_play.c", 2160);
|
ASSERT(point == 1 || point == 2, "point == 1 || point == 2", __FILE__, __LINE__);
|
||||||
|
|
||||||
globalCtx->unk_1242B = point;
|
globalCtx->unk_1242B = point;
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ void func_800BC5E0(GlobalContext* globalCtx, s32 transitionType) {
|
||||||
globalCtx->transitionMode = 16;
|
globalCtx->transitionMode = 16;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Fault_AddHungupAndCrash("../z_play.c", 2290);
|
Fault_AddHungupAndCrash(__FILE__, __LINE__);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -365,7 +365,7 @@ void Gameplay_Init(GameState* thisx) {
|
||||||
|
|
||||||
osSyncPrintf("ZELDA ALLOC SIZE=%x\n", THA_GetSize(&globalCtx->state.tha));
|
osSyncPrintf("ZELDA ALLOC SIZE=%x\n", THA_GetSize(&globalCtx->state.tha));
|
||||||
zAllocSize = THA_GetSize(&globalCtx->state.tha);
|
zAllocSize = THA_GetSize(&globalCtx->state.tha);
|
||||||
zAlloc = GameState_Alloc(&globalCtx->state, zAllocSize, "../z_play.c", 2918);
|
zAlloc = GameState_Alloc(&globalCtx->state, zAllocSize, __FILE__, __LINE__);
|
||||||
zAllocAligned = (zAlloc + 8) & ~0xF;
|
zAllocAligned = (zAlloc + 8) & ~0xF;
|
||||||
ZeldaArena_Init(zAllocAligned, zAllocSize - zAllocAligned + zAlloc);
|
ZeldaArena_Init(zAllocAligned, zAllocSize - zAllocAligned + zAlloc);
|
||||||
// "Zelda Heap"
|
// "Zelda Heap"
|
||||||
|
@ -728,7 +728,7 @@ void Gameplay_Update(GlobalContext* globalCtx) {
|
||||||
globalCtx->envCtx.sandstormPrimA = 255;
|
globalCtx->envCtx.sandstormPrimA = 255;
|
||||||
globalCtx->envCtx.sandstormEnvA = 255;
|
globalCtx->envCtx.sandstormEnvA = 255;
|
||||||
// "It's here!!!!!!!!!"
|
// "It's here!!!!!!!!!"
|
||||||
LOG_STRING("来た!!!!!!!!!!!!!!!!!!!!!", "../z_play.c", 3471);
|
LOG_STRING("来た!!!!!!!!!!!!!!!!!!!!!", __FILE__, __LINE__);
|
||||||
globalCtx->transitionMode = 15;
|
globalCtx->transitionMode = 15;
|
||||||
} else {
|
} else {
|
||||||
globalCtx->transitionMode = 12;
|
globalCtx->transitionMode = 12;
|
||||||
|
@ -773,12 +773,12 @@ void Gameplay_Update(GlobalContext* globalCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3533);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1 && (gTrnsnUnkState != 3)) {
|
if (1 && (gTrnsnUnkState != 3)) {
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3542);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((gSaveContext.gameMode == 0) && (globalCtx->msgCtx.msgMode == MSGMODE_NONE) &&
|
if ((gSaveContext.gameMode == 0) && (globalCtx->msgCtx.msgMode == MSGMODE_NONE) &&
|
||||||
|
@ -787,30 +787,30 @@ void Gameplay_Update(GlobalContext* globalCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3551);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
sp80 = (globalCtx->pauseCtx.state != 0) || (globalCtx->pauseCtx.debugState != 0);
|
sp80 = (globalCtx->pauseCtx.state != 0) || (globalCtx->pauseCtx.debugState != 0);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3555);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
AnimationContext_Reset(&globalCtx->animationCtx);
|
AnimationContext_Reset(&globalCtx->animationCtx);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3561);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
Object_UpdateBank(&globalCtx->objectCtx);
|
Object_UpdateBank(&globalCtx->objectCtx);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3577);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((sp80 == 0) && (IREG(72) == 0)) {
|
if ((sp80 == 0) && (IREG(72) == 0)) {
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3580);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
globalCtx->gameplayFrames++;
|
globalCtx->gameplayFrames++;
|
||||||
|
@ -830,37 +830,37 @@ void Gameplay_Update(GlobalContext* globalCtx) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3606);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
func_800973FC(globalCtx, &globalCtx->roomCtx);
|
func_800973FC(globalCtx, &globalCtx->roomCtx);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3612);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
CollisionCheck_AT(globalCtx, &globalCtx->colChkCtx);
|
CollisionCheck_AT(globalCtx, &globalCtx->colChkCtx);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3618);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
CollisionCheck_OC(globalCtx, &globalCtx->colChkCtx);
|
CollisionCheck_OC(globalCtx, &globalCtx->colChkCtx);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3624);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
CollisionCheck_Damage(globalCtx, &globalCtx->colChkCtx);
|
CollisionCheck_Damage(globalCtx, &globalCtx->colChkCtx);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3631);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
CollisionCheck_ClearContext(globalCtx, &globalCtx->colChkCtx);
|
CollisionCheck_ClearContext(globalCtx, &globalCtx->colChkCtx);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3637);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (globalCtx->unk_11DE9 == 0) {
|
if (globalCtx->unk_11DE9 == 0) {
|
||||||
|
@ -868,31 +868,31 @@ void Gameplay_Update(GlobalContext* globalCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3643);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
func_80064558(globalCtx, &globalCtx->csCtx);
|
func_80064558(globalCtx, &globalCtx->csCtx);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3648);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
func_800645A0(globalCtx, &globalCtx->csCtx);
|
func_800645A0(globalCtx, &globalCtx->csCtx);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3651);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
Effect_UpdateAll(globalCtx);
|
Effect_UpdateAll(globalCtx);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3657);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
EffectSs_UpdateAll(globalCtx);
|
EffectSs_UpdateAll(globalCtx);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3662);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -900,19 +900,19 @@ void Gameplay_Update(GlobalContext* globalCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3672);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
func_80095AA0(globalCtx, &globalCtx->roomCtx.curRoom, &input[1], 0);
|
func_80095AA0(globalCtx, &globalCtx->roomCtx.curRoom, &input[1], 0);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3675);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
func_80095AA0(globalCtx, &globalCtx->roomCtx.prevRoom, &input[1], 1);
|
func_80095AA0(globalCtx, &globalCtx->roomCtx.prevRoom, &input[1], 1);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3677);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (globalCtx->unk_1242B != 0) {
|
if (globalCtx->unk_1242B != 0) {
|
||||||
|
@ -933,65 +933,65 @@ void Gameplay_Update(GlobalContext* globalCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3708);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
SkyboxDraw_Update(&globalCtx->skyboxCtx);
|
SkyboxDraw_Update(&globalCtx->skyboxCtx);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3716);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((globalCtx->pauseCtx.state != 0) || (globalCtx->pauseCtx.debugState != 0)) {
|
if ((globalCtx->pauseCtx.state != 0) || (globalCtx->pauseCtx.debugState != 0)) {
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3721);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
KaleidoScopeCall_Update(globalCtx);
|
KaleidoScopeCall_Update(globalCtx);
|
||||||
} else if (globalCtx->gameOverCtx.state != GAMEOVER_INACTIVE) {
|
} else if (globalCtx->gameOverCtx.state != GAMEOVER_INACTIVE) {
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3727);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
GameOver_Update(globalCtx);
|
GameOver_Update(globalCtx);
|
||||||
} else {
|
} else {
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3733);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
Message_Update(globalCtx);
|
Message_Update(globalCtx);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3737);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3742);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
Interface_Update(globalCtx);
|
Interface_Update(globalCtx);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3765);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
AnimationContext_Update(globalCtx, &globalCtx->animationCtx);
|
AnimationContext_Update(globalCtx, &globalCtx->animationCtx);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3771);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
SoundSource_UpdateAll(globalCtx);
|
SoundSource_UpdateAll(globalCtx);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3777);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
ShrinkWindow_Update(R_UPDATE_RATE);
|
ShrinkWindow_Update(R_UPDATE_RATE);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3783);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
TransitionFade_Update(&globalCtx->transitionFade, R_UPDATE_RATE);
|
TransitionFade_Update(&globalCtx->transitionFade, R_UPDATE_RATE);
|
||||||
|
@ -1001,12 +1001,12 @@ void Gameplay_Update(GlobalContext* globalCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3799);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
skip:
|
skip:
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3801);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((sp80 == 0) || (gDbgCamEnabled)) {
|
if ((sp80 == 0) || (gDbgCamEnabled)) {
|
||||||
|
@ -1016,13 +1016,13 @@ skip:
|
||||||
globalCtx->nextCamera = globalCtx->activeCamera;
|
globalCtx->nextCamera = globalCtx->activeCamera;
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3806);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < NUM_CAMS; i++) {
|
for (i = 0; i < NUM_CAMS; i++) {
|
||||||
if ((i != globalCtx->nextCamera) && (globalCtx->cameraPtrs[i] != NULL)) {
|
if ((i != globalCtx->nextCamera) && (globalCtx->cameraPtrs[i] != NULL)) {
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3809);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
Camera_Update(globalCtx->cameraPtrs[i]);
|
Camera_Update(globalCtx->cameraPtrs[i]);
|
||||||
|
@ -1032,12 +1032,12 @@ skip:
|
||||||
Camera_Update(globalCtx->cameraPtrs[globalCtx->nextCamera]);
|
Camera_Update(globalCtx->cameraPtrs[globalCtx->nextCamera]);
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3814);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 3816);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
Environment_Update(globalCtx, &globalCtx->envCtx, &globalCtx->lightCtx, &globalCtx->pauseCtx, &globalCtx->msgCtx,
|
Environment_Update(globalCtx, &globalCtx->envCtx, &globalCtx->lightCtx, &globalCtx->pauseCtx, &globalCtx->msgCtx,
|
||||||
|
@ -1065,7 +1065,7 @@ void Gameplay_Draw(GlobalContext* globalCtx) {
|
||||||
Lights* sp228;
|
Lights* sp228;
|
||||||
Vec3f sp21C;
|
Vec3f sp21C;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_play.c", 3907);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSegments[4] = VIRTUAL_TO_PHYSICAL(globalCtx->objectCtx.status[globalCtx->objectCtx.mainKeepIndex].segment);
|
gSegments[4] = VIRTUAL_TO_PHYSICAL(globalCtx->objectCtx.status[globalCtx->objectCtx.mainKeepIndex].segment);
|
||||||
gSegments[5] = VIRTUAL_TO_PHYSICAL(globalCtx->objectCtx.status[globalCtx->objectCtx.subKeepIndex].segment);
|
gSegments[5] = VIRTUAL_TO_PHYSICAL(globalCtx->objectCtx.status[globalCtx->objectCtx.subKeepIndex].segment);
|
||||||
|
@ -1109,7 +1109,7 @@ void Gameplay_Draw(GlobalContext* globalCtx) {
|
||||||
0.0f;
|
0.0f;
|
||||||
// This transpose is where the viewing matrix is properly converted into a billboard matrix
|
// This transpose is where the viewing matrix is properly converted into a billboard matrix
|
||||||
Matrix_Transpose(&globalCtx->billboardMtxF);
|
Matrix_Transpose(&globalCtx->billboardMtxF);
|
||||||
globalCtx->billboardMtx = Matrix_MtxFToMtx(Matrix_CheckFloats(&globalCtx->billboardMtxF, "../z_play.c", 4005),
|
globalCtx->billboardMtx = Matrix_MtxFToMtx(Matrix_CheckFloats(&globalCtx->billboardMtxF, __FILE__, __LINE__),
|
||||||
Graph_Alloc(gfxCtx, sizeof(Mtx)));
|
Graph_Alloc(gfxCtx, sizeof(Mtx)));
|
||||||
|
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x01, globalCtx->billboardMtx);
|
gSPSegment(POLY_OPA_DISP++, 0x01, globalCtx->billboardMtx);
|
||||||
|
@ -1341,7 +1341,7 @@ void Gameplay_Draw(GlobalContext* globalCtx) {
|
||||||
POLY_OPA_DISP = gfxP;
|
POLY_OPA_DISP = gfxP;
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_play.c", 4508);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Gameplay_Main(GameState* thisx) {
|
void Gameplay_Main(GameState* thisx) {
|
||||||
|
@ -1352,7 +1352,7 @@ void Gameplay_Main(GameState* thisx) {
|
||||||
DebugDisplay_Init();
|
DebugDisplay_Init();
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 4556);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((HREG(80) == 10) && (HREG(94) != 10)) {
|
if ((HREG(80) == 10) && (HREG(94) != 10)) {
|
||||||
|
@ -1377,7 +1377,7 @@ void Gameplay_Main(GameState* thisx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 4583);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
FrameInterpolation_StartRecord();
|
FrameInterpolation_StartRecord();
|
||||||
|
@ -1385,7 +1385,7 @@ void Gameplay_Main(GameState* thisx) {
|
||||||
FrameInterpolation_StopRecord();
|
FrameInterpolation_StopRecord();
|
||||||
|
|
||||||
if (1 && HREG(63)) {
|
if (1 && HREG(63)) {
|
||||||
LOG_NUM("1", 1, "../z_play.c", 4587);
|
LOG_NUM("1", 1, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1465,8 +1465,8 @@ void* Gameplay_LoadFile(GlobalContext* globalCtx, RomFile* file) {
|
||||||
void* allocp;
|
void* allocp;
|
||||||
|
|
||||||
size = file->vromEnd - file->vromStart;
|
size = file->vromEnd - file->vromStart;
|
||||||
allocp = GameState_Alloc(&globalCtx->state, size, "../z_play.c", 4692);
|
allocp = GameState_Alloc(&globalCtx->state, size, __FILE__, __LINE__);
|
||||||
DmaMgr_SendRequest1(allocp, file->vromStart, size, "../z_play.c", 4694);
|
DmaMgr_SendRequest1(allocp, file->vromStart, size, __FILE__, __LINE__);
|
||||||
|
|
||||||
return allocp;
|
return allocp;
|
||||||
}
|
}
|
||||||
|
|
|
@ -719,7 +719,7 @@ void func_8008F470(GlobalContext* globalCtx, void** skeleton, Vec3s* jointTable,
|
||||||
s32 eyeIndex = (jointTable[22].x & 0xF) - 1;
|
s32 eyeIndex = (jointTable[22].x & 0xF) - 1;
|
||||||
s32 mouthIndex = (jointTable[22].x >> 4) - 1;
|
s32 mouthIndex = (jointTable[22].x >> 4) - 1;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_player_lib.c", 1721);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (eyeIndex < 0) {
|
if (eyeIndex < 0) {
|
||||||
eyeIndex = sEyeMouthIndexes[face][0];
|
eyeIndex = sEyeMouthIndexes[face][0];
|
||||||
|
@ -814,7 +814,7 @@ void func_8008F470(GlobalContext* globalCtx, void** skeleton, Vec3s* jointTable,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_player_lib.c", 1803);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
Vec3f D_8012602C = { 0.0f, 0.0f, 0.0f };
|
Vec3f D_8012602C = { 0.0f, 0.0f, 0.0f };
|
||||||
|
@ -1166,7 +1166,7 @@ void func_800906D4(GlobalContext* globalCtx, Player* this, Vec3f* newTipPos) {
|
||||||
void Player_DrawGetItemImpl(GlobalContext* globalCtx, Player* this, Vec3f* refPos, s32 drawIdPlusOne) {
|
void Player_DrawGetItemImpl(GlobalContext* globalCtx, Player* this, Vec3f* refPos, s32 drawIdPlusOne) {
|
||||||
f32 height = (this->exchangeItemId != EXCH_ITEM_NONE) ? 6.0f : 14.0f;
|
f32 height = (this->exchangeItemId != EXCH_ITEM_NONE) ? 6.0f : 14.0f;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_player_lib.c", 2401);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSegments[6] = VIRTUAL_TO_PHYSICAL(this->giObjectSegment);
|
gSegments[6] = VIRTUAL_TO_PHYSICAL(this->giObjectSegment);
|
||||||
|
|
||||||
|
@ -1180,7 +1180,7 @@ void Player_DrawGetItemImpl(GlobalContext* globalCtx, Player* this, Vec3f* refPo
|
||||||
|
|
||||||
GetItem_Draw(globalCtx, drawIdPlusOne - 1);
|
GetItem_Draw(globalCtx, drawIdPlusOne - 1);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_player_lib.c", 2421);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player_DrawGetItem(GlobalContext* globalCtx, Player* this) {
|
void Player_DrawGetItem(GlobalContext* globalCtx, Player* this) {
|
||||||
|
@ -1226,7 +1226,7 @@ void Player_DrawHookshotReticle(GlobalContext* globalCtx, Player* this, f32 arg2
|
||||||
if (1) {}
|
if (1) {}
|
||||||
|
|
||||||
if (BgCheck_AnyLineTest3(&globalCtx->colCtx, &sp8C, &sp80, &sp74, &sp9C, 1, 1, 1, 1, &bgId)) {
|
if (BgCheck_AnyLineTest3(&globalCtx->colCtx, &sp8C, &sp80, &sp74, &sp9C, 1, 1, 1, 1, &bgId)) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_player_lib.c", 2572);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
WORLD_OVERLAY_DISP = Gfx_CallSetupDL(WORLD_OVERLAY_DISP, 0x07);
|
WORLD_OVERLAY_DISP = Gfx_CallSetupDL(WORLD_OVERLAY_DISP, 0x07);
|
||||||
|
|
||||||
|
@ -1237,12 +1237,12 @@ void Player_DrawHookshotReticle(GlobalContext* globalCtx, Player* this, f32 arg2
|
||||||
Matrix_Translate(sp74.x, sp74.y, sp74.z, MTXMODE_NEW);
|
Matrix_Translate(sp74.x, sp74.y, sp74.z, MTXMODE_NEW);
|
||||||
Matrix_Scale(sp60, sp60, sp60, MTXMODE_APPLY);
|
Matrix_Scale(sp60, sp60, sp60, MTXMODE_APPLY);
|
||||||
|
|
||||||
gSPMatrix(WORLD_OVERLAY_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_player_lib.c", 2587),
|
gSPMatrix(WORLD_OVERLAY_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
gSPSegment(WORLD_OVERLAY_DISP++, 0x06, globalCtx->objectCtx.status[this->actor.objBankIndex].segment);
|
gSPSegment(WORLD_OVERLAY_DISP++, 0x06, globalCtx->objectCtx.status[this->actor.objBankIndex].segment);
|
||||||
gSPDisplayList(WORLD_OVERLAY_DISP++, gLinkAdultHookshotReticleDL);
|
gSPDisplayList(WORLD_OVERLAY_DISP++, gLinkAdultHookshotReticleDL);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_player_lib.c", 2592);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1308,7 +1308,7 @@ void func_80090D20(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3s*
|
||||||
if (this->itemActionParam == PLAYER_AP_STICK) {
|
if (this->itemActionParam == PLAYER_AP_STICK) {
|
||||||
Vec3f sp124[3];
|
Vec3f sp124[3];
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_player_lib.c", 2633);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (this->actor.scale.y >= 0.0f) {
|
if (this->actor.scale.y >= 0.0f) {
|
||||||
D_80126080.x = this->unk_85C * 5000.0f;
|
D_80126080.x = this->unk_85C * 5000.0f;
|
||||||
|
@ -1324,11 +1324,11 @@ void func_80090D20(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3s*
|
||||||
Matrix_RotateZYX(-0x8000, 0, 0x4000, MTXMODE_APPLY);
|
Matrix_RotateZYX(-0x8000, 0, 0x4000, MTXMODE_APPLY);
|
||||||
Matrix_Scale(1.0f, this->unk_85C, 1.0f, MTXMODE_APPLY);
|
Matrix_Scale(1.0f, this->unk_85C, 1.0f, MTXMODE_APPLY);
|
||||||
|
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_player_lib.c", 2653),
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, gLinkChildLinkDekuStickDL);
|
gSPDisplayList(POLY_OPA_DISP++, gLinkChildLinkDekuStickDL);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_player_lib.c", 2656);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
} else if ((this->actor.scale.y >= 0.0f) && (this->swordState != 0)) {
|
} else if ((this->actor.scale.y >= 0.0f) && (this->swordState != 0)) {
|
||||||
Vec3f spE4[3];
|
Vec3f spE4[3];
|
||||||
|
|
||||||
|
@ -1343,14 +1343,14 @@ void func_80090D20(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3s*
|
||||||
} else if ((*dList != NULL) && (this->leftHandType == 7)) {
|
} else if ((*dList != NULL) && (this->leftHandType == 7)) {
|
||||||
Color_RGB8* bottleColor = &sBottleColors[Player_ActionToBottle(this, this->itemActionParam)];
|
Color_RGB8* bottleColor = &sBottleColors[Player_ActionToBottle(this, this->itemActionParam)];
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_player_lib.c", 2710);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_player_lib.c", 2712),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, bottleColor->r, bottleColor->g, bottleColor->b, 0);
|
gDPSetEnvColor(POLY_XLU_DISP++, bottleColor->r, bottleColor->g, bottleColor->b, 0);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sBottleDLists[(gSaveContext.linkAge)]);
|
gSPDisplayList(POLY_XLU_DISP++, sBottleDLists[(gSaveContext.linkAge)]);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_player_lib.c", 2717);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->actor.scale.y >= 0.0f) {
|
if (this->actor.scale.y >= 0.0f) {
|
||||||
|
@ -1386,7 +1386,7 @@ void func_80090D20(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3s*
|
||||||
} else if ((this->rightHandType == 11) || (this->rightHandType == 12)) {
|
} else if ((this->rightHandType == 11) || (this->rightHandType == 12)) {
|
||||||
BowStringData* stringData = &sBowStringData[gSaveContext.linkAge];
|
BowStringData* stringData = &sBowStringData[gSaveContext.linkAge];
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_player_lib.c", 2783);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
Matrix_Push();
|
Matrix_Push();
|
||||||
Matrix_Translate(stringData->pos.x, stringData->pos.y, stringData->pos.z, MTXMODE_APPLY);
|
Matrix_Translate(stringData->pos.x, stringData->pos.y, stringData->pos.z, MTXMODE_APPLY);
|
||||||
|
@ -1417,13 +1417,13 @@ void func_80090D20(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3s*
|
||||||
Matrix_RotateZ(this->unk_858 * -0.2f, MTXMODE_APPLY);
|
Matrix_RotateZ(this->unk_858 * -0.2f, MTXMODE_APPLY);
|
||||||
}
|
}
|
||||||
|
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_player_lib.c", 2804),
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__),
|
||||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, stringData->dList);
|
gSPDisplayList(POLY_XLU_DISP++, stringData->dList);
|
||||||
|
|
||||||
Matrix_Pop();
|
Matrix_Pop();
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_player_lib.c", 2809);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
} else if ((this->actor.scale.y >= 0.0f) && (this->rightHandType == 10)) {
|
} else if ((this->actor.scale.y >= 0.0f) && (this->rightHandType == 10)) {
|
||||||
Matrix_Get(&this->shieldMf);
|
Matrix_Get(&this->shieldMf);
|
||||||
func_80090604(globalCtx, this, &this->shieldQuad, D_80126154);
|
func_80090604(globalCtx, this, &this->shieldQuad, D_80126154);
|
||||||
|
@ -1493,11 +1493,11 @@ u32 func_80091738(GlobalContext* globalCtx, u8* segment, SkelAnime* skelAnime) {
|
||||||
|
|
||||||
size = gObjectTable[OBJECT_GAMEPLAY_KEEP].vromEnd - gObjectTable[OBJECT_GAMEPLAY_KEEP].vromStart;
|
size = gObjectTable[OBJECT_GAMEPLAY_KEEP].vromEnd - gObjectTable[OBJECT_GAMEPLAY_KEEP].vromStart;
|
||||||
ptr = segment + 0x3800;
|
ptr = segment + 0x3800;
|
||||||
DmaMgr_SendRequest1(ptr, gObjectTable[OBJECT_GAMEPLAY_KEEP].vromStart, size, "../z_player_lib.c", 2982);
|
DmaMgr_SendRequest1(ptr, gObjectTable[OBJECT_GAMEPLAY_KEEP].vromStart, size, __FILE__, __LINE__);
|
||||||
|
|
||||||
size = gObjectTable[linkObjectId].vromEnd - gObjectTable[linkObjectId].vromStart;
|
size = gObjectTable[linkObjectId].vromEnd - gObjectTable[linkObjectId].vromStart;
|
||||||
ptr = segment + 0x8800;
|
ptr = segment + 0x8800;
|
||||||
DmaMgr_SendRequest1(ptr, gObjectTable[linkObjectId].vromStart, size, "../z_player_lib.c", 2988);
|
DmaMgr_SendRequest1(ptr, gObjectTable[linkObjectId].vromStart, size, __FILE__, __LINE__);
|
||||||
|
|
||||||
ptr = (void*)ALIGN16((intptr_t)ptr + size);
|
ptr = (void*)ALIGN16((intptr_t)ptr + size);
|
||||||
|
|
||||||
|
@ -1590,7 +1590,7 @@ void func_80091A24(GlobalContext* globalCtx, void* seg04, void* seg06, SkelAnime
|
||||||
Mtx* perspMtx = Graph_Alloc(globalCtx->state.gfxCtx, sizeof(Mtx));
|
Mtx* perspMtx = Graph_Alloc(globalCtx->state.gfxCtx, sizeof(Mtx));
|
||||||
Mtx* lookAtMtx = Graph_Alloc(globalCtx->state.gfxCtx, sizeof(Mtx));
|
Mtx* lookAtMtx = Graph_Alloc(globalCtx->state.gfxCtx, sizeof(Mtx));
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_player_lib.c", 3129);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x00, NULL);
|
gSPSegment(POLY_OPA_DISP++, 0x00, NULL);
|
||||||
|
|
||||||
|
@ -1660,7 +1660,7 @@ void func_80091A24(GlobalContext* globalCtx, void* seg04, void* seg06, SkelAnime
|
||||||
|
|
||||||
POLY_OPA_DISP = Gameplay_SetFog(globalCtx, POLY_OPA_DISP++);
|
POLY_OPA_DISP = Gameplay_SetFog(globalCtx, POLY_OPA_DISP++);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_player_lib.c", 3288);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
uintptr_t SelectedAnim = 0; // Current Animaiton on the menu
|
uintptr_t SelectedAnim = 0; // Current Animaiton on the menu
|
||||||
|
|
|
@ -12,7 +12,7 @@ void PreNMI_Update(PreNMIContext* this) {
|
||||||
|
|
||||||
// Strings existing only in rodata
|
// Strings existing only in rodata
|
||||||
if (0) {
|
if (0) {
|
||||||
osSyncPrintf("../z_prenmi.c");
|
osSyncPrintf(__FILE__);
|
||||||
osSyncPrintf("(int)volume = %d\n");
|
osSyncPrintf("(int)volume = %d\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ void PreNMI_Draw(PreNMIContext* this) {
|
||||||
|
|
||||||
osSyncPrintf(VT_COL(YELLOW, BLACK) "prenmi_draw\n" VT_RST);
|
osSyncPrintf(VT_COL(YELLOW, BLACK) "prenmi_draw\n" VT_RST);
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_prenmi.c", 96);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x00, NULL);
|
gSPSegment(POLY_OPA_DISP++, 0x00, NULL);
|
||||||
func_80095248(gfxCtx, 0, 0, 0);
|
func_80095248(gfxCtx, 0, 0, 0);
|
||||||
|
@ -38,7 +38,7 @@ void PreNMI_Draw(PreNMIContext* this) {
|
||||||
gDPSetFillColor(POLY_OPA_DISP++, (GPACK_RGBA5551(255, 255, 255, 1) << 16) | GPACK_RGBA5551(255, 255, 255, 1));
|
gDPSetFillColor(POLY_OPA_DISP++, (GPACK_RGBA5551(255, 255, 255, 1) << 16) | GPACK_RGBA5551(255, 255, 255, 1));
|
||||||
gDPFillRectangle(POLY_OPA_DISP++, 0, this->timer + 100, SCREEN_WIDTH - 1, this->timer + 100);
|
gDPFillRectangle(POLY_OPA_DISP++, 0, this->timer + 100, SCREEN_WIDTH - 1, this->timer + 100);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_prenmi.c", 112);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PreNMI_Main(GameState* thisx) {
|
void PreNMI_Main(GameState* thisx) {
|
||||||
|
|
|
@ -852,7 +852,7 @@ Gfx* Gfx_SetFog(Gfx* gfx, s32 r, s32 g, s32 b, s32 a, s32 near, s32 far) {
|
||||||
far++;
|
far++;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(near != far, "n != f", "../z_rcp.c", 1155);
|
ASSERT(near != far, "n != f", __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPSetFogColor(gfx++, r, g, b, a);
|
gDPSetFogColor(gfx++, r, g, b, a);
|
||||||
|
|
||||||
|
@ -873,7 +873,7 @@ Gfx* Gfx_SetFogWithSync(Gfx* gfx, s32 r, s32 g, s32 b, s32 a, s32 near, s32 far)
|
||||||
if (far == near) {
|
if (far == near) {
|
||||||
far++;
|
far++;
|
||||||
}
|
}
|
||||||
ASSERT(near != far, "n != f", "../z_rcp.c", 1187);
|
ASSERT(near != far, "n != f", __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPPipeSync(gfx++);
|
gDPPipeSync(gfx++);
|
||||||
gDPSetFogColor(gfx++, r, g, b, a);
|
gDPSetFogColor(gfx++, r, g, b, a);
|
||||||
|
@ -928,83 +928,83 @@ Gfx* func_80093808(Gfx* gfx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80093848(GraphicsContext* gfxCtx) {
|
void func_80093848(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1293);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x3A]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x3A]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1297);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_800938B4(GraphicsContext* gfxCtx) {
|
void func_800938B4(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1309);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x39]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x39]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1313);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80093920(GraphicsContext* gfxCtx) {
|
void func_80093920(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1325);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x32]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x32]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1329);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_8009398C(GraphicsContext* gfxCtx) {
|
void func_8009398C(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1341);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x33]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x33]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1345);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_800939F8(GraphicsContext* gfxCtx) {
|
void func_800939F8(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1357);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x34]);
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x34]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1361);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80093A64(GraphicsContext* gfxCtx) {
|
void func_80093A64(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1373);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x35]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x35]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1377);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80093AD0(GraphicsContext* gfxCtx) {
|
void func_80093AD0(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1389);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x36]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x36]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1393);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80093B3C(GraphicsContext* gfxCtx) {
|
void func_80093B3C(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1405);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x37]);
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x37]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1409);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80093BA8(GraphicsContext* gfxCtx) {
|
void func_80093BA8(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1421);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x1A]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x1A]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1425);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80093C14(GraphicsContext* gfxCtx) {
|
void func_80093C14(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1439);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x19]);
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x19]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1443);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80093C80(GlobalContext* globalCtx) {
|
void func_80093C80(GlobalContext* globalCtx) {
|
||||||
|
@ -1013,52 +1013,52 @@ void func_80093C80(GlobalContext* globalCtx) {
|
||||||
func_80093D18(gfxCtx);
|
func_80093D18(gfxCtx);
|
||||||
|
|
||||||
if (globalCtx->roomCtx.curRoom.unk_03 == 3) {
|
if (globalCtx->roomCtx.curRoom.unk_03 == 3) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1460);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPSetColorDither(POLY_OPA_DISP++, G_CD_DISABLE);
|
gDPSetColorDither(POLY_OPA_DISP++, G_CD_DISABLE);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1462);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80093D18(GraphicsContext* gfxCtx) {
|
void func_80093D18(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1475);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x19]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x19]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1479);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80093D84(GraphicsContext* gfxCtx) {
|
void func_80093D84(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1491);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x19]);
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x19]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1495);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80093DF0(GraphicsContext* gfxCtx) {
|
void func_80093DF0(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1507);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x1F]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x1F]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1511);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80093E5C(GraphicsContext* gfxCtx) {
|
void func_80093E5C(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1523);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x20]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x20]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1527);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80093EC8(GraphicsContext* gfxCtx) {
|
void func_80093EC8(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1539);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x21]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x21]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1543);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
Gfx* func_80093F34(Gfx* gfx) {
|
Gfx* func_80093F34(Gfx* gfx) {
|
||||||
|
@ -1072,35 +1072,35 @@ Gfx* func_80093F58(Gfx* gfx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80093F7C(GraphicsContext* gfxCtx) {
|
void func_80093F7C(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1569);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
POLY_OPA_DISP = func_80093F58(POLY_OPA_DISP);
|
POLY_OPA_DISP = func_80093F58(POLY_OPA_DISP);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1573);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80093FD8(GraphicsContext* gfxCtx) {
|
void func_80093FD8(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1585);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x23]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x23]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1589);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80094044(GraphicsContext* gfxCtx) {
|
void func_80094044(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1601);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x2C]);
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x2C]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1605);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_800940B0(GraphicsContext* gfxCtx) {
|
void func_800940B0(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1617);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x24]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x24]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1621);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
Gfx* func_8009411C(Gfx* gfx) {
|
Gfx* func_8009411C(Gfx* gfx) {
|
||||||
|
@ -1109,67 +1109,67 @@ Gfx* func_8009411C(Gfx* gfx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80094140(GraphicsContext* gfxCtx) {
|
void func_80094140(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1640);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x1C]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x1C]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1644);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_800941AC(GraphicsContext* gfxCtx) {
|
void func_800941AC(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1651);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x2B]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x2B]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1655);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80094218(GraphicsContext* gfxCtx) {
|
void func_80094218(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1670);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x2D]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x2D]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1674);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80094284(GraphicsContext* gfxCtx) {
|
void func_80094284(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1681);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(OVERLAY_DISP++, sSetupDL[0x2E]);
|
gSPDisplayList(OVERLAY_DISP++, sSetupDL[0x2E]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1685);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_800942F0(GraphicsContext* gfxCtx) {
|
void func_800942F0(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1700);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x26]);
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x26]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1704);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_8009435C(GraphicsContext* gfxCtx) {
|
void func_8009435C(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1722);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x04]);
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x04]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1726);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_800943C8(GraphicsContext* gfxCtx) {
|
void func_800943C8(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1758);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x25]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x25]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1762);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80094434(GraphicsContext* gfxCtx) {
|
void func_80094434(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1775);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x02]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x02]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1779);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
Gfx* func_800944A0(Gfx* gfx) {
|
Gfx* func_800944A0(Gfx* gfx) {
|
||||||
|
@ -1178,27 +1178,27 @@ Gfx* func_800944A0(Gfx* gfx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_800944C4(GraphicsContext* gfxCtx) {
|
void func_800944C4(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1799);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
POLY_OPA_DISP = func_800944A0(POLY_OPA_DISP);
|
POLY_OPA_DISP = func_800944A0(POLY_OPA_DISP);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1801);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_800944C4_KAL(GraphicsContext* gfxCtx) {
|
void func_800944C4_KAL(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1799);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
POLY_KAL_DISP = func_800944A0(POLY_KAL_DISP);
|
POLY_KAL_DISP = func_800944A0(POLY_KAL_DISP);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1801);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80094520(GraphicsContext* gfxCtx) {
|
void func_80094520(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1809);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
OVERLAY_DISP = func_800944A0(OVERLAY_DISP);
|
OVERLAY_DISP = func_800944A0(OVERLAY_DISP);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1811);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_8009457C(Gfx** gfxp) {
|
void func_8009457C(Gfx** gfxp) {
|
||||||
|
@ -1208,27 +1208,27 @@ void func_8009457C(Gfx** gfxp) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_800945A0(GraphicsContext* gfxCtx) {
|
void func_800945A0(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1837);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x28]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x28]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1841);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_8009460C(GraphicsContext* gfxCtx) {
|
void func_8009460C(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1853);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x29]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x29]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1857);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80094678(GraphicsContext* gfxCtx) {
|
void func_80094678(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1869);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x2F]);
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x2F]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1873);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
Gfx* func_800946E4(Gfx* gfx) {
|
Gfx* func_800946E4(Gfx* gfx) {
|
||||||
|
@ -1288,76 +1288,76 @@ Gfx* func_80094968(Gfx* gfx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_800949A8(GraphicsContext* gfxCtx) {
|
void func_800949A8(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1953);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x2A]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x2A]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1957);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_800949A8_KAL(GraphicsContext* gfxCtx) {
|
void func_800949A8_KAL(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1953);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_KAL_DISP++, sSetupDL[0x2A]);
|
gSPDisplayList(POLY_KAL_DISP++, sSetupDL[0x2A]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1957);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80094A14(GraphicsContext* gfxCtx) {
|
void func_80094A14(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1964);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(OVERLAY_DISP++, sSetupDL[0x2A]);
|
gSPDisplayList(OVERLAY_DISP++, sSetupDL[0x2A]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1968);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80094A80(GraphicsContext* gfxCtx) {
|
void func_80094A80(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1992);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x30]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x30]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1996);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80094AEC(GraphicsContext* gfxCtx) {
|
void func_80094AEC(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 2008);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x31]);
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x31]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 2012);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80094B58(GraphicsContext* gfxCtx) {
|
void func_80094B58(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 2024);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x1B]);
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x1B]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 2028);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80094BC4(GraphicsContext* gfxCtx) {
|
void func_80094BC4(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 2040);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x3C]);
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x3C]);
|
||||||
gDPSetColorDither(POLY_XLU_DISP++, G_CD_DISABLE);
|
gDPSetColorDither(POLY_XLU_DISP++, G_CD_DISABLE);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 2043);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80094C50(GraphicsContext* gfxCtx) {
|
void func_80094C50(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 2056);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x3D]);
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[0x3D]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 2058);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80094CBC(GraphicsContext* gfxCtx) {
|
void func_80094CBC(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 2086);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x38]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x38]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 2090);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80094D28(Gfx** gfxp) {
|
void func_80094D28(Gfx** gfxp) {
|
||||||
|
@ -1369,11 +1369,11 @@ void func_80094D28(Gfx** gfxp) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80094D4C(GraphicsContext* gfxCtx) {
|
void func_80094D4C(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 2112);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x3B]);
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[0x3B]);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 2116);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
Gfx* Gfx_BranchTexScroll(Gfx** gfxp, u32 x, u32 y, s32 width, s32 height) {
|
Gfx* Gfx_BranchTexScroll(Gfx** gfxp, u32 x, u32 y, s32 width, s32 height) {
|
||||||
|
@ -1454,7 +1454,7 @@ Gfx* Gfx_EnvColor(GraphicsContext* gfxCtx, s32 r, s32 g, s32 b, s32 a) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80095248(GraphicsContext* gfxCtx, u8 r, u8 g, u8 b) {
|
void func_80095248(GraphicsContext* gfxCtx, u8 r, u8 g, u8 b) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 2386);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sFillSetupDL);
|
gSPDisplayList(POLY_OPA_DISP++, sFillSetupDL);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sFillSetupDL);
|
gSPDisplayList(POLY_XLU_DISP++, sFillSetupDL);
|
||||||
|
@ -1545,16 +1545,16 @@ void func_80095248(GraphicsContext* gfxCtx, u8 r, u8 g, u8 b) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 2497);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_80095974(GraphicsContext* gfxCtx) {
|
void func_80095974(GraphicsContext* gfxCtx) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_rcp.c", 2503);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sFillSetupDL);
|
gSPDisplayList(POLY_OPA_DISP++, sFillSetupDL);
|
||||||
gDPSetScissor(POLY_OPA_DISP++, G_SC_NON_INTERLACE, 0, 0, gScreenWidth, gScreenHeight);
|
gDPSetScissor(POLY_OPA_DISP++, G_SC_NON_INTERLACE, 0, 0, gScreenWidth, gScreenHeight);
|
||||||
gDPSetDepthImage(POLY_OPA_DISP++, gZBuffer);
|
gDPSetDepthImage(POLY_OPA_DISP++, gZBuffer);
|
||||||
gDPSetColorImage(POLY_OPA_DISP++, G_IM_FMT_RGBA, G_IM_SIZ_16b, gScreenWidth, gfxCtx->curFrameBuffer);
|
gDPSetColorImage(POLY_OPA_DISP++, G_IM_FMT_RGBA, G_IM_SIZ_16b, gScreenWidth, gfxCtx->curFrameBuffer);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 2513);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ void func_80095AB4(GlobalContext* globalCtx, Room* room, u32 flags) {
|
||||||
PolygonType0* polygon0;
|
PolygonType0* polygon0;
|
||||||
PolygonDlist* polygonDlist;
|
PolygonDlist* polygonDlist;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_room.c", 193);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (flags & 1) {
|
if (flags & 1) {
|
||||||
func_800342EC(&D_801270A0, globalCtx);
|
func_800342EC(&D_801270A0, globalCtx);
|
||||||
|
@ -67,7 +67,7 @@ void func_80095AB4(GlobalContext* globalCtx, Room* room, u32 flags) {
|
||||||
polygonDlist++;
|
polygonDlist++;
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_room.c", 239);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define SHAPE_SORT_MAX 64
|
#define SHAPE_SORT_MAX 64
|
||||||
|
@ -99,7 +99,7 @@ void func_80095D04(GlobalContext* globalCtx, Room* room, u32 flags) {
|
||||||
PolygonDlist2* temp;
|
PolygonDlist2* temp;
|
||||||
f32 temp_f2;
|
f32 temp_f2;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_room.c", 287);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
if (flags & 1) {
|
if (flags & 1) {
|
||||||
func_800342EC(&D_801270A0, globalCtx);
|
func_800342EC(&D_801270A0, globalCtx);
|
||||||
//gSPSegment(POLY_OPA_DISP++, 0x03, room->segment);
|
//gSPSegment(POLY_OPA_DISP++, 0x03, room->segment);
|
||||||
|
@ -118,7 +118,7 @@ void func_80095D04(GlobalContext* globalCtx, Room* room, u32 flags) {
|
||||||
polygonDlist = SEGMENTED_TO_VIRTUAL(polygon2->start);
|
polygonDlist = SEGMENTED_TO_VIRTUAL(polygon2->start);
|
||||||
spA4 = spB8;
|
spA4 = spB8;
|
||||||
|
|
||||||
ASSERT(polygon2->num <= SHAPE_SORT_MAX, "polygon2->num <= SHAPE_SORT_MAX", "../z_room.c", 317);
|
ASSERT(polygon2->num <= SHAPE_SORT_MAX, "polygon2->num <= SHAPE_SORT_MAX", __FILE__, __LINE__);
|
||||||
sp78 = polygonDlist;
|
sp78 = polygonDlist;
|
||||||
|
|
||||||
for (sp9C = 0; sp9C < polygon2->num; sp9C++, polygonDlist++) {
|
for (sp9C = 0; sp9C < polygon2->num; sp9C++, polygonDlist++) {
|
||||||
|
@ -215,7 +215,7 @@ void func_80095D04(GlobalContext* globalCtx, Room* room, u32 flags) {
|
||||||
|
|
||||||
iREG(88) = sp9C - 1;
|
iREG(88) = sp9C - 1;
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_room.c", 430);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
//#define JPEG_MARKER 0xFFD8FFE0
|
//#define JPEG_MARKER 0xFFD8FFE0
|
||||||
|
@ -344,7 +344,7 @@ void func_80096680(GlobalContext* globalCtx, Room* room, u32 flags) {
|
||||||
u32 sp94;
|
u32 sp94;
|
||||||
u32 sp90;
|
u32 sp90;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_room.c", 628);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
camera = GET_ACTIVE_CAM(globalCtx);
|
camera = GET_ACTIVE_CAM(globalCtx);
|
||||||
sp9C = (camera->setting == CAM_SET_PREREND_FIXED);
|
sp9C = (camera->setting == CAM_SET_PREREND_FIXED);
|
||||||
|
@ -390,7 +390,7 @@ void func_80096680(GlobalContext* globalCtx, Room* room, u32 flags) {
|
||||||
gSPDisplayList(POLY_XLU_DISP++, polygonDlist->xlu);
|
gSPDisplayList(POLY_XLU_DISP++, polygonDlist->xlu);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_room.c", 691);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
BgImage* func_80096A74(PolygonType1* polygon1, GlobalContext* globalCtx) {
|
BgImage* func_80096A74(PolygonType1* polygon1, GlobalContext* globalCtx) {
|
||||||
|
@ -422,7 +422,7 @@ BgImage* func_80096A74(PolygonType1* polygon1, GlobalContext* globalCtx) {
|
||||||
|
|
||||||
// "z_room.c: Data consistent with camera id does not exist camid=%d"
|
// "z_room.c: Data consistent with camera id does not exist camid=%d"
|
||||||
osSyncPrintf(VT_COL(RED, WHITE) "z_room.c:カメラIDに一致するデータが存在しません camid=%d\n" VT_RST, camId);
|
osSyncPrintf(VT_COL(RED, WHITE) "z_room.c:カメラIDに一致するデータが存在しません camid=%d\n" VT_RST, camId);
|
||||||
LogUtils_HungupThread("../z_room.c", 726);
|
LogUtils_HungupThread(__FILE__, __LINE__);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -439,7 +439,7 @@ void func_80096B6C(GlobalContext* globalCtx, Room* room, u32 flags) {
|
||||||
u32 sp90;
|
u32 sp90;
|
||||||
u32 sp8C;
|
u32 sp8C;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_room.c", 752);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
camera = GET_ACTIVE_CAM(globalCtx);
|
camera = GET_ACTIVE_CAM(globalCtx);
|
||||||
sp98 = (camera->setting == CAM_SET_PREREND_FIXED);
|
sp98 = (camera->setting == CAM_SET_PREREND_FIXED);
|
||||||
|
@ -485,7 +485,7 @@ void func_80096B6C(GlobalContext* globalCtx, Room* room, u32 flags) {
|
||||||
gSPDisplayList(POLY_XLU_DISP++, polygonDlist->xlu);
|
gSPDisplayList(POLY_XLU_DISP++, polygonDlist->xlu);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_room.c", 819);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Room Draw Polygon Type 1
|
// Room Draw Polygon Type 1
|
||||||
|
@ -497,7 +497,7 @@ void func_80096F6C(GlobalContext* globalCtx, Room* room, u32 flags) {
|
||||||
} else if (polygon1->format == 2) {
|
} else if (polygon1->format == 2) {
|
||||||
func_80096B6C(globalCtx, room, flags);
|
func_80096B6C(globalCtx, room, flags);
|
||||||
} else {
|
} else {
|
||||||
LogUtils_HungupThread("../z_room.c", 841);
|
LogUtils_HungupThread(__FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -530,7 +530,7 @@ u32 func_80096FE8(GlobalContext* globalCtx, RoomContext* roomCtx) {
|
||||||
RomFile* roomList = globalCtx->roomList;
|
RomFile* roomList = globalCtx->roomList;
|
||||||
TransitionActorEntry* transitionActor = &globalCtx->transiActorCtx.list[0];
|
TransitionActorEntry* transitionActor = &globalCtx->transiActorCtx.list[0];
|
||||||
|
|
||||||
LOG_NUM("game_play->room_rom_address.num", globalCtx->numRooms, "../z_room.c", 912);
|
LOG_NUM("game_play->room_rom_address.num", globalCtx->numRooms, __FILE__, __LINE__);
|
||||||
|
|
||||||
for (j = 0; j < globalCtx->transiActorCtx.numActors; j++) {
|
for (j = 0; j < globalCtx->transiActorCtx.numActors; j++) {
|
||||||
frontRoom = transitionActor->sides[0].room;
|
frontRoom = transitionActor->sides[0].room;
|
||||||
|
@ -551,7 +551,7 @@ u32 func_80096FE8(GlobalContext* globalCtx, RoomContext* roomCtx) {
|
||||||
osSyncPrintf(VT_FGCOL(YELLOW));
|
osSyncPrintf(VT_FGCOL(YELLOW));
|
||||||
// "Room buffer size=%08x(%5.1fK)"
|
// "Room buffer size=%08x(%5.1fK)"
|
||||||
osSyncPrintf("部屋バッファサイズ=%08x(%5.1fK)\n", maxRoomSize, maxRoomSize / 1024.0f);
|
osSyncPrintf("部屋バッファサイズ=%08x(%5.1fK)\n", maxRoomSize, maxRoomSize / 1024.0f);
|
||||||
roomCtx->bufPtrs[0] = GameState_Alloc(&globalCtx->state, maxRoomSize, "../z_room.c", 946);
|
roomCtx->bufPtrs[0] = GameState_Alloc(&globalCtx->state, maxRoomSize, __FILE__, __LINE__);
|
||||||
// "Room buffer initial pointer=%08x"
|
// "Room buffer initial pointer=%08x"
|
||||||
osSyncPrintf("部屋バッファ開始ポインタ=%08x\n", roomCtx->bufPtrs[0]);
|
osSyncPrintf("部屋バッファ開始ポインタ=%08x\n", roomCtx->bufPtrs[0]);
|
||||||
roomCtx->bufPtrs[1] = (void*)((intptr_t)roomCtx->bufPtrs[0] + maxRoomSize);
|
roomCtx->bufPtrs[1] = (void*)((intptr_t)roomCtx->bufPtrs[0] + maxRoomSize);
|
||||||
|
@ -579,14 +579,14 @@ s32 func_8009728C(GlobalContext* globalCtx, RoomContext* roomCtx, s32 roomNum) {
|
||||||
roomCtx->curRoom.segment = NULL;
|
roomCtx->curRoom.segment = NULL;
|
||||||
roomCtx->status = 1;
|
roomCtx->status = 1;
|
||||||
|
|
||||||
ASSERT(roomNum < globalCtx->numRooms, "read_room_ID < game_play->room_rom_address.num", "../z_room.c", 1009);
|
ASSERT(roomNum < globalCtx->numRooms, "read_room_ID < game_play->room_rom_address.num", __FILE__, __LINE__);
|
||||||
|
|
||||||
size = globalCtx->roomList[roomNum].vromEnd - globalCtx->roomList[roomNum].vromStart;
|
size = globalCtx->roomList[roomNum].vromEnd - globalCtx->roomList[roomNum].vromStart;
|
||||||
roomCtx->unk_34 = (void*)ALIGN16((intptr_t)roomCtx->bufPtrs[roomCtx->unk_30] - ((size + 8) * roomCtx->unk_30 + 7));
|
roomCtx->unk_34 = (void*)ALIGN16((intptr_t)roomCtx->bufPtrs[roomCtx->unk_30] - ((size + 8) * roomCtx->unk_30 + 7));
|
||||||
|
|
||||||
osCreateMesgQueue(&roomCtx->loadQueue, &roomCtx->loadMsg, 1);
|
osCreateMesgQueue(&roomCtx->loadQueue, &roomCtx->loadMsg, 1);
|
||||||
DmaMgr_SendRequest2(&roomCtx->dmaRequest, roomCtx->unk_34, globalCtx->roomList[roomNum].vromStart, size, 0,
|
DmaMgr_SendRequest2(&roomCtx->dmaRequest, roomCtx->unk_34, globalCtx->roomList[roomNum].vromStart, size, 0,
|
||||||
&roomCtx->loadQueue, OS_MESG_PTR(NULL), "../z_room.c", 1036);
|
&roomCtx->loadQueue, OS_MESG_PTR(NULL), __FILE__, __LINE__);
|
||||||
roomCtx->unk_30 ^= 1;
|
roomCtx->unk_30 ^= 1;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -623,7 +623,7 @@ void Room_Draw(GlobalContext* globalCtx, Room* room, u32 flags) {
|
||||||
{
|
{
|
||||||
gSegments[3] = VIRTUAL_TO_PHYSICAL(room->segment);
|
gSegments[3] = VIRTUAL_TO_PHYSICAL(room->segment);
|
||||||
ASSERT(room->mesh->polygon.type < ARRAY_COUNTU(sRoomDrawHandlers),
|
ASSERT(room->mesh->polygon.type < ARRAY_COUNTU(sRoomDrawHandlers),
|
||||||
"this->ground_shape->polygon.type < number(Room_Draw_Proc)", "../z_room.c", 1125);
|
"this->ground_shape->polygon.type < number(Room_Draw_Proc)", __FILE__, __LINE__);
|
||||||
sRoomDrawHandlers[room->mesh->polygon.type](globalCtx, room, flags);
|
sRoomDrawHandlers[room->mesh->polygon.type](globalCtx, room, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ void Sample_Draw(SampleContext* this) {
|
||||||
GraphicsContext* gfxCtx = this->state.gfxCtx;
|
GraphicsContext* gfxCtx = this->state.gfxCtx;
|
||||||
View* view = &this->view;
|
View* view = &this->view;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_sample.c", 62);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x00, NULL);
|
gSPSegment(POLY_OPA_DISP++, 0x00, NULL);
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x01, this->staticSegment);
|
gSPSegment(POLY_OPA_DISP++, 0x01, this->staticSegment);
|
||||||
|
@ -36,7 +36,7 @@ void Sample_Draw(SampleContext* this) {
|
||||||
gDPSetCombineMode(POLY_OPA_DISP++, G_CC_PRIMITIVE, G_CC_PRIMITIVE);
|
gDPSetCombineMode(POLY_OPA_DISP++, G_CC_PRIMITIVE, G_CC_PRIMITIVE);
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 255, 255, 0, 0);
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 255, 255, 0, 0);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_sample.c", 111);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sample_Main(GameState* thisx) {
|
void Sample_Main(GameState* thisx) {
|
||||||
|
@ -79,8 +79,8 @@ void Sample_SetupView(SampleContext* this) {
|
||||||
void Sample_LoadTitleStatic(SampleContext* this) {
|
void Sample_LoadTitleStatic(SampleContext* this) {
|
||||||
size_t size = _title_staticSegmentRomEnd - _title_staticSegmentRomStart;
|
size_t size = _title_staticSegmentRomEnd - _title_staticSegmentRomStart;
|
||||||
|
|
||||||
this->staticSegment = GameState_Alloc(&this->state, size, "../z_sample.c", 163);
|
this->staticSegment = GameState_Alloc(&this->state, size, __FILE__, __LINE__);
|
||||||
DmaMgr_SendRequest1(this->staticSegment, _title_staticSegmentRomStart, size, "../z_sample.c", 164);
|
DmaMgr_SendRequest1(this->staticSegment, _title_staticSegmentRomStart, size, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sample_Init(GameState* thisx) {
|
void Sample_Init(GameState* thisx) {
|
||||||
|
|
|
@ -17,10 +17,10 @@ s32 Object_Spawn(ObjectContext* objectCtx, s16 objectId) {
|
||||||
ASSERT(((objectCtx->num < OBJECT_EXCHANGE_BANK_MAX) &&
|
ASSERT(((objectCtx->num < OBJECT_EXCHANGE_BANK_MAX) &&
|
||||||
(((uintptr_t)objectCtx->status[objectCtx->num].segment + size) < (uintptr_t)objectCtx->spaceEnd)),
|
(((uintptr_t)objectCtx->status[objectCtx->num].segment + size) < (uintptr_t)objectCtx->spaceEnd)),
|
||||||
"this->num < OBJECT_EXCHANGE_BANK_MAX && (this->status[this->num].Segment + size) < this->endSegment",
|
"this->num < OBJECT_EXCHANGE_BANK_MAX && (this->status[this->num].Segment + size) < this->endSegment",
|
||||||
"../z_scene.c", 142);
|
__FILE__, __LINE__);
|
||||||
|
|
||||||
DmaMgr_SendRequest1(objectCtx->status[objectCtx->num].segment, gObjectTable[objectId].vromStart, size,
|
DmaMgr_SendRequest1(objectCtx->status[objectCtx->num].segment, gObjectTable[objectId].vromStart, size,
|
||||||
"../z_scene.c", 145);
|
__FILE__, __LINE__);
|
||||||
|
|
||||||
if (objectCtx->num < OBJECT_EXCHANGE_BANK_MAX - 1) {
|
if (objectCtx->num < OBJECT_EXCHANGE_BANK_MAX - 1) {
|
||||||
objectCtx->status[objectCtx->num + 1].segment =
|
objectCtx->status[objectCtx->num + 1].segment =
|
||||||
|
@ -70,7 +70,7 @@ void Object_InitBank(GlobalContext* globalCtx, ObjectContext* objectCtx) {
|
||||||
osSyncPrintf(VT_RST);
|
osSyncPrintf(VT_RST);
|
||||||
|
|
||||||
objectCtx->spaceStart = objectCtx->status[0].segment =
|
objectCtx->spaceStart = objectCtx->status[0].segment =
|
||||||
GameState_Alloc(&globalCtx->state, spaceSize, "../z_scene.c", 219);
|
GameState_Alloc(&globalCtx->state, spaceSize, __FILE__, __LINE__);
|
||||||
objectCtx->spaceEnd = (void*)((uintptr_t)objectCtx->spaceStart + spaceSize);
|
objectCtx->spaceEnd = (void*)((uintptr_t)objectCtx->spaceStart + spaceSize);
|
||||||
|
|
||||||
objectCtx->mainKeepIndex = Object_Spawn(objectCtx, OBJECT_GAMEPLAY_KEEP);
|
objectCtx->mainKeepIndex = Object_Spawn(objectCtx, OBJECT_GAMEPLAY_KEEP);
|
||||||
|
@ -92,7 +92,7 @@ void Object_UpdateBank(ObjectContext* objectCtx) {
|
||||||
size = objectFile->vromEnd - objectFile->vromStart;
|
size = objectFile->vromEnd - objectFile->vromStart;
|
||||||
osSyncPrintf("OBJECT EXCHANGE BANK-%2d SIZE %8.3fK SEG=%08x\n", i, size / 1024.0f, status->segment);
|
osSyncPrintf("OBJECT EXCHANGE BANK-%2d SIZE %8.3fK SEG=%08x\n", i, size / 1024.0f, status->segment);
|
||||||
DmaMgr_SendRequest2(&status->dmaRequest, status->segment, objectFile->vromStart, size, 0,
|
DmaMgr_SendRequest2(&status->dmaRequest, status->segment, objectFile->vromStart, size, 0,
|
||||||
&status->loadQueue, NULL, "../z_scene.c", 266);
|
&status->loadQueue, NULL, __FILE__, __LINE__);
|
||||||
} else if (!osRecvMesg(&status->loadQueue, NULL, OS_MESG_NOBLOCK)) {
|
} else if (!osRecvMesg(&status->loadQueue, NULL, OS_MESG_NOBLOCK)) {
|
||||||
status->id = -status->id;
|
status->id = -status->id;
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ void func_800981B8(ObjectContext* objectCtx) {
|
||||||
objectCtx->status[i].segment);
|
objectCtx->status[i].segment);
|
||||||
osSyncPrintf("num=%d adrs=%x end=%x\n", objectCtx->num, (uintptr_t)objectCtx->status[i].segment + size,
|
osSyncPrintf("num=%d adrs=%x end=%x\n", objectCtx->num, (uintptr_t)objectCtx->status[i].segment + size,
|
||||||
objectCtx->spaceEnd);
|
objectCtx->spaceEnd);
|
||||||
DmaMgr_SendRequest1(objectCtx->status[i].segment, gObjectTable[id].vromStart, size, "../z_scene.c", 342);
|
DmaMgr_SendRequest1(objectCtx->status[i].segment, gObjectTable[id].vromStart, size, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ void* func_800982FC(ObjectContext* objectCtx, s32 bankIndex, s16 objectId) {
|
||||||
nextPtr = (void*)ALIGN16((uintptr_t)status->segment + size);
|
nextPtr = (void*)ALIGN16((uintptr_t)status->segment + size);
|
||||||
if (1) {} // Necessary to match
|
if (1) {} // Necessary to match
|
||||||
|
|
||||||
ASSERT(nextPtr < objectCtx->spaceEnd, "nextptr < this->endSegment", "../z_scene.c", 381);
|
ASSERT(nextPtr < objectCtx->spaceEnd, "nextptr < this->endSegment", __FILE__, __LINE__);
|
||||||
|
|
||||||
// "Object exchange free size=%08x"
|
// "Object exchange free size=%08x"
|
||||||
osSyncPrintf("オブジェクト入れ替え空きサイズ=%08x\n", (uintptr_t)objectCtx->spaceEnd - (uintptr_t)nextPtr);
|
osSyncPrintf("オブジェクト入れ替え空きサイズ=%08x\n", (uintptr_t)objectCtx->spaceEnd - (uintptr_t)nextPtr);
|
||||||
|
@ -296,7 +296,7 @@ void func_8009899C(GlobalContext* globalCtx, SceneCmd* cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(cmd->objectList.num <= OBJECT_EXCHANGE_BANK_MAX, "scene_info->object_bank.num <= OBJECT_EXCHANGE_BANK_MAX",
|
ASSERT(cmd->objectList.num <= OBJECT_EXCHANGE_BANK_MAX, "scene_info->object_bank.num <= OBJECT_EXCHANGE_BANK_MAX",
|
||||||
"../z_scene.c", 705);
|
__FILE__, __LINE__);
|
||||||
|
|
||||||
if (1) {}
|
if (1) {}
|
||||||
|
|
||||||
|
|
|
@ -976,12 +976,12 @@ void func_800994A0(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
// Scene Draw Config 0
|
// Scene Draw Config 0
|
||||||
void func_80099550(GlobalContext* globalCtx) {
|
void func_80099550(GlobalContext* globalCtx) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 4725);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDefaultDisplayList);
|
gSPDisplayList(POLY_OPA_DISP++, sDefaultDisplayList);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDefaultDisplayList);
|
gSPDisplayList(POLY_XLU_DISP++, sDefaultDisplayList);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 4735);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* D_8012A2F8[] = {
|
void* D_8012A2F8[] = {
|
||||||
|
@ -993,7 +993,7 @@ void* D_8012A2F8[] = {
|
||||||
void func_800995DC(GlobalContext* globalCtx) {
|
void func_800995DC(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames = globalCtx->gameplayFrames;
|
u32 gameplayFrames = globalCtx->gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 4763);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x09,
|
gSPSegment(POLY_XLU_DISP++, 0x09,
|
||||||
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 127 - (gameplayFrames % 128), (gameplayFrames * 1) % 128,
|
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 127 - (gameplayFrames % 128), (gameplayFrames * 1) % 128,
|
||||||
|
@ -1006,14 +1006,14 @@ void func_800995DC(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(D_8012A2F8[gSaveContext.nightFlag]));
|
gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(D_8012A2F8[gSaveContext.nightFlag]));
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 4783);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 28
|
// Scene Draw Config 28
|
||||||
void func_80099760(GlobalContext* globalCtx) {
|
void func_80099760(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 4845);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
|
@ -1023,7 +1023,7 @@ void func_80099760(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 4859);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* gDCEntranceTextures[] = {
|
void* gDCEntranceTextures[] = {
|
||||||
|
@ -1041,7 +1041,7 @@ void func_80099878(GlobalContext* globalCtx) {
|
||||||
s32 pad;
|
s32 pad;
|
||||||
Gfx* displayListHead = Graph_Alloc(globalCtx->state.gfxCtx, 2 * sizeof(Gfx[3]));
|
Gfx* displayListHead = Graph_Alloc(globalCtx->state.gfxCtx, 2 * sizeof(Gfx[3]));
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 4905);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(gDCEntranceTextures[gSaveContext.nightFlag]));
|
gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(gDCEntranceTextures[gSaveContext.nightFlag]));
|
||||||
|
@ -1071,7 +1071,7 @@ void func_80099878(GlobalContext* globalCtx) {
|
||||||
gDPSetEnvColor(displayListHead++, 255, 255, 255, globalCtx->roomCtx.unk_74[BGDODOAGO_EYE_RIGHT]);
|
gDPSetEnvColor(displayListHead++, 255, 255, 255, globalCtx->roomCtx.unk_74[BGDODOAGO_EYE_RIGHT]);
|
||||||
gSPEndDisplayList(displayListHead);
|
gSPEndDisplayList(displayListHead);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 4956);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 30
|
// Scene Draw Config 30
|
||||||
|
@ -1079,7 +1079,7 @@ void func_80099BD8(GlobalContext* globalCtx) {
|
||||||
f32 temp;
|
f32 temp;
|
||||||
Gfx* displayListHead = Graph_Alloc(globalCtx->state.gfxCtx, 18 * sizeof(Gfx));
|
Gfx* displayListHead = Graph_Alloc(globalCtx->state.gfxCtx, 18 * sizeof(Gfx));
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5069);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
temp = globalCtx->roomCtx.unk_74[0] / 255.0f;
|
temp = globalCtx->roomCtx.unk_74[0] / 255.0f;
|
||||||
|
|
||||||
|
@ -1123,7 +1123,7 @@ void func_80099BD8(GlobalContext* globalCtx) {
|
||||||
gDPSetEnvColor(displayListHead++, 0, 0, 0, globalCtx->roomCtx.unk_74[1]);
|
gDPSetEnvColor(displayListHead++, 0, 0, 0, globalCtx->roomCtx.unk_74[1]);
|
||||||
gSPEndDisplayList(displayListHead);
|
gSPEndDisplayList(displayListHead);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5145);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (gSaveContext.sceneSetupIndex == 5) {
|
if (gSaveContext.sceneSetupIndex == 5) {
|
||||||
gCustomLensFlareOn = true;
|
gCustomLensFlareOn = true;
|
||||||
|
@ -1140,7 +1140,7 @@ void func_80099BD8(GlobalContext* globalCtx) {
|
||||||
void func_8009A45C(GlobalContext* globalCtx) {
|
void func_8009A45C(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5171);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08, Gfx_TexScroll(globalCtx->state.gfxCtx, 0, (gameplayFrames * 1) % 64, 256, 16));
|
gSPSegment(POLY_XLU_DISP++, 0x08, Gfx_TexScroll(globalCtx->state.gfxCtx, 0, (gameplayFrames * 1) % 64, 256, 16));
|
||||||
|
@ -1163,14 +1163,14 @@ void func_8009A45C(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_OPA_DISP++);
|
gDPPipeSync(POLY_OPA_DISP++);
|
||||||
gDPSetEnvColor(POLY_OPA_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_OPA_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5212);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 32
|
// Scene Draw Config 32
|
||||||
void func_8009A798(GlobalContext* globalCtx) {
|
void func_8009A798(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5226);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08, Gfx_TexScroll(globalCtx->state.gfxCtx, 0, (gameplayFrames * 2) % 256, 64, 64));
|
gSPSegment(POLY_XLU_DISP++, 0x08, Gfx_TexScroll(globalCtx->state.gfxCtx, 0, (gameplayFrames * 2) % 256, 64, 64));
|
||||||
|
@ -1191,14 +1191,14 @@ void func_8009A798(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5264);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 33
|
// Scene Draw Config 33
|
||||||
void func_8009A9DC(GlobalContext* globalCtx) {
|
void func_8009A9DC(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5278);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
|
@ -1214,14 +1214,14 @@ void func_8009A9DC(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5301);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 48
|
// Scene Draw Config 48
|
||||||
void func_8009AB98(GlobalContext* globalCtx) {
|
void func_8009AB98(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5317);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08, Gfx_TexScroll(globalCtx->state.gfxCtx, 0, gameplayFrames % 64, 256, 16));
|
gSPSegment(POLY_XLU_DISP++, 0x08, Gfx_TexScroll(globalCtx->state.gfxCtx, 0, gameplayFrames % 64, 256, 16));
|
||||||
|
@ -1232,14 +1232,14 @@ void func_8009AB98(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_OPA_DISP++);
|
gDPPipeSync(POLY_OPA_DISP++);
|
||||||
gDPSetEnvColor(POLY_OPA_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_OPA_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5330);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 39
|
// Scene Draw Config 39
|
||||||
void func_8009ACA8(GlobalContext* globalCtx) {
|
void func_8009ACA8(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5346);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
|
@ -1253,14 +1253,14 @@ void func_8009ACA8(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5367);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 24
|
// Scene Draw Config 24
|
||||||
void func_8009AE30(GlobalContext* globalCtx) {
|
void func_8009AE30(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5384);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
|
|
||||||
|
@ -1280,7 +1280,7 @@ void func_8009AE30(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5416);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* sThievesHideoutEntranceTextures[] = {
|
void* sThievesHideoutEntranceTextures[] = {
|
||||||
|
@ -1292,7 +1292,7 @@ void* sThievesHideoutEntranceTextures[] = {
|
||||||
void func_8009AFE0(GlobalContext* globalCtx) {
|
void func_8009AFE0(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5490);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x09, Gfx_TexScroll(globalCtx->state.gfxCtx, 0, (gameplayFrames * 3) % 128, 32, 32));
|
gSPSegment(POLY_OPA_DISP++, 0x09, Gfx_TexScroll(globalCtx->state.gfxCtx, 0, (gameplayFrames * 3) % 128, 32, 32));
|
||||||
|
@ -1301,7 +1301,7 @@ void func_8009AFE0(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sThievesHideoutEntranceTextures[gSaveContext.nightFlag]));
|
gSPSegment(POLY_XLU_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sThievesHideoutEntranceTextures[gSaveContext.nightFlag]));
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5507);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* D_8012A330[] = {
|
void* D_8012A330[] = {
|
||||||
|
@ -1315,7 +1315,7 @@ void func_8009B0FC(GlobalContext* globalCtx) {
|
||||||
s32 spB0;
|
s32 spB0;
|
||||||
s32 spAC;
|
s32 spAC;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5535);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (1) {} // Necessary to match
|
if (1) {} // Necessary to match
|
||||||
|
|
||||||
|
@ -1378,14 +1378,14 @@ void func_8009B0FC(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
{ s32 pad[2]; }
|
{ s32 pad[2]; }
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5644);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 29
|
// Scene Draw Config 29
|
||||||
void func_8009B86C(GlobalContext* globalCtx) {
|
void func_8009B86C(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5791);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08,
|
gSPSegment(POLY_OPA_DISP++, 0x08,
|
||||||
|
@ -1397,14 +1397,14 @@ void func_8009B86C(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 145);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 145);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5808);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 34
|
// Scene Draw Config 34
|
||||||
void func_8009B9BC(GlobalContext* globalCtx) {
|
void func_8009B9BC(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5822);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08, Gfx_TexScroll(globalCtx->state.gfxCtx, 0, gameplayFrames % 64, 4, 16));
|
gSPSegment(POLY_OPA_DISP++, 0x08, Gfx_TexScroll(globalCtx->state.gfxCtx, 0, gameplayFrames % 64, 4, 16));
|
||||||
|
@ -1412,14 +1412,14 @@ void func_8009B9BC(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_OPA_DISP++);
|
gDPPipeSync(POLY_OPA_DISP++);
|
||||||
gDPSetEnvColor(POLY_OPA_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_OPA_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5836);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 35
|
// Scene Draw Config 35
|
||||||
void func_8009BAA4(GlobalContext* globalCtx) {
|
void func_8009BAA4(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5850);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
|
@ -1437,7 +1437,7 @@ void func_8009BAA4(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5876);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 36
|
// Scene Draw Config 36
|
||||||
|
@ -1449,7 +1449,7 @@ void func_8009BC44(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
sp83 = coss((globalCtx->gameplayFrames * 1500) & 0xFFFF) >> 8;
|
sp83 = coss((globalCtx->gameplayFrames * 1500) & 0xFFFF) >> 8;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5894);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
|
|
||||||
|
@ -1476,7 +1476,7 @@ void func_8009BC44(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_OPA_DISP++);
|
gDPPipeSync(POLY_OPA_DISP++);
|
||||||
gDPSetEnvColor(POLY_OPA_DISP++, sp83, sp83, sp83, 128);
|
gDPSetEnvColor(POLY_OPA_DISP++, sp83, sp83, sp83, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5930);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Screen Shake for Ganon's Tower Collapse
|
// Screen Shake for Ganon's Tower Collapse
|
||||||
|
@ -1507,7 +1507,7 @@ void func_8009C0AC(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
sp7B = coss((globalCtx->gameplayFrames * 1500) & 0xFFFF) >> 8;
|
sp7B = coss((globalCtx->gameplayFrames * 1500) & 0xFFFF) >> 8;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 5968);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08,
|
gSPSegment(POLY_OPA_DISP++, 0x08,
|
||||||
|
@ -1530,7 +1530,7 @@ void func_8009C0AC(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_OPA_DISP++);
|
gDPPipeSync(POLY_OPA_DISP++);
|
||||||
gDPSetEnvColor(POLY_OPA_DISP++, sp7B, sp7B, sp7B, 128);
|
gDPSetEnvColor(POLY_OPA_DISP++, sp7B, sp7B, sp7B, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6004);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (Flags_GetSwitch(globalCtx, 0x37)) {
|
if (Flags_GetSwitch(globalCtx, 0x37)) {
|
||||||
if ((globalCtx->sceneNum == SCENE_GANON_DEMO) || (globalCtx->sceneNum == SCENE_GANON_FINAL) ||
|
if ((globalCtx->sceneNum == SCENE_GANON_DEMO) || (globalCtx->sceneNum == SCENE_GANON_FINAL) ||
|
||||||
|
@ -1551,7 +1551,7 @@ void func_8009C3EC(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
if (0) {} // Necessary to match
|
if (0) {} // Necessary to match
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6042);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sIceCavernEntranceTextures[gSaveContext.nightFlag]));
|
gSPSegment(POLY_XLU_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sIceCavernEntranceTextures[gSaveContext.nightFlag]));
|
||||||
|
@ -1570,14 +1570,14 @@ void func_8009C3EC(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6076);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 42
|
// Scene Draw Config 42
|
||||||
void func_8009C608(GlobalContext* globalCtx) {
|
void func_8009C608(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6151);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08, Gfx_TexScroll(globalCtx->state.gfxCtx, 0, (gameplayFrames * 1) % 64, 256, 16));
|
gSPSegment(POLY_XLU_DISP++, 0x08, Gfx_TexScroll(globalCtx->state.gfxCtx, 0, (gameplayFrames * 1) % 64, 256, 16));
|
||||||
|
@ -1597,14 +1597,14 @@ void func_8009C608(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6187);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 43
|
// Scene Draw Config 43
|
||||||
void func_8009C8B8(GlobalContext* globalCtx) {
|
void func_8009C8B8(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6201);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08,
|
gSPSegment(POLY_OPA_DISP++, 0x08,
|
||||||
|
@ -1621,14 +1621,14 @@ void func_8009C8B8(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6232);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 47
|
// Scene Draw Config 47
|
||||||
void func_8009CAC0(GlobalContext* globalCtx) {
|
void func_8009CAC0(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6249);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
|
@ -1641,7 +1641,7 @@ void func_8009CAC0(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6264);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* sGTGEntranceTextures[] = {
|
void* sGTGEntranceTextures[] = {
|
||||||
|
@ -1655,7 +1655,7 @@ void func_8009CC00(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
if (0) {} // Necessary to match
|
if (0) {} // Necessary to match
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6290);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sGTGEntranceTextures[gSaveContext.nightFlag]));
|
gSPSegment(POLY_XLU_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sGTGEntranceTextures[gSaveContext.nightFlag]));
|
||||||
|
@ -1674,7 +1674,7 @@ void func_8009CC00(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6320);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
Gfx* Gfx_TwoTexScrollPrimColor(GraphicsContext* gfxCtx, s32 tile1, u32 x1, u32 y1, s32 width1, s32 height1, s32 tile2,
|
Gfx* Gfx_TwoTexScrollPrimColor(GraphicsContext* gfxCtx, s32 tile1, u32 x1, u32 y1, s32 width1, s32 height1, s32 tile2,
|
||||||
|
@ -1700,7 +1700,7 @@ Gfx* Gfx_TwoTexScrollPrimColor(GraphicsContext* gfxCtx, s32 tile1, u32 x1, u32 y
|
||||||
void func_8009CF84(GlobalContext* globalCtx) {
|
void func_8009CF84(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6433);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
|
@ -1715,14 +1715,14 @@ void func_8009CF84(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6449);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 41
|
// Scene Draw Config 41
|
||||||
void func_8009D0E8(GlobalContext* globalCtx) {
|
void func_8009D0E8(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6463);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
|
@ -1740,7 +1740,7 @@ void func_8009D0E8(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6491);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* sLonLonHouseEntranceTextures[] = {
|
void* sLonLonHouseEntranceTextures[] = {
|
||||||
|
@ -1750,7 +1750,7 @@ void* sLonLonHouseEntranceTextures[] = {
|
||||||
|
|
||||||
// Scene Draw Config 44
|
// Scene Draw Config 44
|
||||||
void func_8009D31C(GlobalContext* globalCtx) {
|
void func_8009D31C(GlobalContext* globalCtx) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6515);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
{ s32 pad[2]; }
|
{ s32 pad[2]; }
|
||||||
|
|
||||||
|
@ -1762,7 +1762,7 @@ void func_8009D31C(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6528);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* sGuardHouseView2Textures[] = {
|
void* sGuardHouseView2Textures[] = {
|
||||||
|
@ -1778,7 +1778,7 @@ void* sGuardHouseView1Textures[] = {
|
||||||
void func_8009D438(GlobalContext* globalCtx) {
|
void func_8009D438(GlobalContext* globalCtx) {
|
||||||
s32 var;
|
s32 var;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6560);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (LINK_IS_ADULT) {
|
if (LINK_IS_ADULT) {
|
||||||
var = 1;
|
var = 1;
|
||||||
|
@ -1795,14 +1795,14 @@ void func_8009D438(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6581);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 46
|
// Scene Draw Config 46
|
||||||
void func_8009D5B4(GlobalContext* globalCtx) {
|
void func_8009D5B4(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6595);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08, Gfx_TexScroll(globalCtx->state.gfxCtx, 0, (gameplayFrames * 3) % 128, 32, 32));
|
gSPSegment(POLY_OPA_DISP++, 0x08, Gfx_TexScroll(globalCtx->state.gfxCtx, 0, (gameplayFrames * 3) % 128, 32, 32));
|
||||||
|
@ -1816,7 +1816,7 @@ void func_8009D5B4(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6615);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* sForestTempleEntranceTextures[] = {
|
void* sForestTempleEntranceTextures[] = {
|
||||||
|
@ -1830,7 +1830,7 @@ void func_8009D758(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
if (0) {} // Necessary to match
|
if (0) {} // Necessary to match
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6640);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sForestTempleEntranceTextures[gSaveContext.nightFlag]));
|
gSPSegment(POLY_XLU_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sForestTempleEntranceTextures[gSaveContext.nightFlag]));
|
||||||
|
@ -1849,7 +1849,7 @@ void func_8009D758(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6671);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* sSpiritTempleEntranceTextures[] = {
|
void* sSpiritTempleEntranceTextures[] = {
|
||||||
|
@ -1859,13 +1859,13 @@ void* sSpiritTempleEntranceTextures[] = {
|
||||||
|
|
||||||
// Scene Draw Config 25
|
// Scene Draw Config 25
|
||||||
void func_8009D974(GlobalContext* globalCtx) {
|
void func_8009D974(GlobalContext* globalCtx) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6752);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
{ s32 pad[2]; }
|
{ s32 pad[2]; }
|
||||||
|
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sSpiritTempleEntranceTextures[gSaveContext.nightFlag]));
|
gSPSegment(POLY_XLU_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sSpiritTempleEntranceTextures[gSaveContext.nightFlag]));
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6762);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 1
|
// Scene Draw Config 1
|
||||||
|
@ -1875,7 +1875,7 @@ void func_8009DA30(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
displayListHead = Graph_Alloc(globalCtx->state.gfxCtx, 3 * sizeof(Gfx));
|
displayListHead = Graph_Alloc(globalCtx->state.gfxCtx, 3 * sizeof(Gfx));
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6814);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
|
@ -1911,7 +1911,7 @@ void func_8009DA30(GlobalContext* globalCtx) {
|
||||||
gSPEndDisplayList(displayListHead);
|
gSPEndDisplayList(displayListHead);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6866);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* sKakarikoWindowTextures[] = {
|
void* sKakarikoWindowTextures[] = {
|
||||||
|
@ -1921,7 +1921,7 @@ void* sKakarikoWindowTextures[] = {
|
||||||
|
|
||||||
// Scene Draw Config 2
|
// Scene Draw Config 2
|
||||||
void func_8009DD5C(GlobalContext* globalCtx) {
|
void func_8009DD5C(GlobalContext* globalCtx) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6890);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
{ s32 pad[2]; }
|
{ s32 pad[2]; }
|
||||||
|
|
||||||
|
@ -1933,14 +1933,14 @@ void func_8009DD5C(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6903);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 3
|
// Scene Draw Config 3
|
||||||
void func_8009DE78(GlobalContext* globalCtx) {
|
void func_8009DE78(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6917);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
|
@ -1959,7 +1959,7 @@ void func_8009DE78(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6948);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 4
|
// Scene Draw Config 4
|
||||||
|
@ -1976,7 +1976,7 @@ void func_8009E0B8(GlobalContext* globalCtx) {
|
||||||
if (1) {}
|
if (1) {}
|
||||||
if (1) {}
|
if (1) {}
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 6965);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x09,
|
gSPSegment(POLY_XLU_DISP++, 0x09,
|
||||||
|
@ -2015,14 +2015,14 @@ void func_8009E0B8(GlobalContext* globalCtx) {
|
||||||
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 0, (s16)(-globalCtx->roomCtx.unk_74[0] * 0.02f), 32, 16, 1,
|
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 0, (s16)(-globalCtx->roomCtx.unk_74[0] * 0.02f), 32, 16, 1,
|
||||||
0, (s16)(-globalCtx->roomCtx.unk_74[0] * 0.02f), 32, 16));
|
0, (s16)(-globalCtx->roomCtx.unk_74[0] * 0.02f), 32, 16));
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7044);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 5
|
// Scene Draw Config 5
|
||||||
void func_8009E54C(GlobalContext* globalCtx) {
|
void func_8009E54C(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7058);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if ((gSaveContext.sceneSetupIndex > 3) || (LINK_IS_ADULT && !(gSaveContext.eventChkInf[6] & 0x200))) {
|
if ((gSaveContext.sceneSetupIndex > 3) || (LINK_IS_ADULT && !(gSaveContext.eventChkInf[6] & 0x200))) {
|
||||||
globalCtx->roomCtx.unk_74[0] = 87;
|
globalCtx->roomCtx.unk_74[0] = 87;
|
||||||
|
@ -2039,7 +2039,7 @@ void func_8009E54C(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_OPA_DISP++);
|
gDPPipeSync(POLY_OPA_DISP++);
|
||||||
gDPSetEnvColor(POLY_OPA_DISP++, 255, 255, 255, 128);
|
gDPSetEnvColor(POLY_OPA_DISP++, 255, 255, 255, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7097);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* sZorasDomainEntranceTextures[] = {
|
void* sZorasDomainEntranceTextures[] = {
|
||||||
|
@ -2052,7 +2052,7 @@ void func_8009E730(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
u32 var;
|
u32 var;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7123);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
var = 127 - (gameplayFrames * 1) % 128;
|
var = 127 - (gameplayFrames * 1) % 128;
|
||||||
|
@ -2068,14 +2068,14 @@ void func_8009E730(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
{ s32 pad[2]; }
|
{ s32 pad[2]; }
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7147);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 7
|
// Scene Draw Config 7
|
||||||
void func_8009E8C0(GlobalContext* globalCtx) {
|
void func_8009E8C0(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7161);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08,
|
gSPSegment(POLY_OPA_DISP++, 0x08,
|
||||||
|
@ -2093,14 +2093,14 @@ void func_8009E8C0(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7192);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 8
|
// Scene Draw Config 8
|
||||||
void func_8009EAD8(GlobalContext* globalCtx) {
|
void func_8009EAD8(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7206);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
|
@ -2128,7 +2128,7 @@ void func_8009EAD8(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7260);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 9
|
// Scene Draw Config 9
|
||||||
|
@ -2137,7 +2137,7 @@ void func_8009EE44(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
if (0) {} // Necessary to match
|
if (0) {} // Necessary to match
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7274);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
|
@ -2161,14 +2161,14 @@ void func_8009EE44(GlobalContext* globalCtx) {
|
||||||
globalCtx->roomCtx.unk_74[1]++;
|
globalCtx->roomCtx.unk_74[1]++;
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7309);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 10
|
// Scene Draw Config 10
|
||||||
void func_8009F074(GlobalContext* globalCtx) {
|
void func_8009F074(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7323);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08,
|
gSPSegment(POLY_OPA_DISP++, 0x08,
|
||||||
|
@ -2180,7 +2180,7 @@ void func_8009F074(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7339);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* D_8012A380[] = {
|
void* D_8012A380[] = {
|
||||||
|
@ -2190,20 +2190,20 @@ void* D_8012A380[] = {
|
||||||
|
|
||||||
// Scene Draw Config 11
|
// Scene Draw Config 11
|
||||||
void func_8009F1B4(GlobalContext* globalCtx) {
|
void func_8009F1B4(GlobalContext* globalCtx) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7363);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
{ s32 pad[2]; }
|
{ s32 pad[2]; }
|
||||||
|
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(D_8012A380[gSaveContext.nightFlag]));
|
gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(D_8012A380[gSaveContext.nightFlag]));
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7371);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 12
|
// Scene Draw Config 12
|
||||||
void func_8009F270(GlobalContext* globalCtx) {
|
void func_8009F270(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7385);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08,
|
gSPSegment(POLY_OPA_DISP++, 0x08,
|
||||||
|
@ -2219,14 +2219,14 @@ void func_8009F270(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7409);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 13
|
// Scene Draw Config 13
|
||||||
void func_8009F40C(GlobalContext* globalCtx) {
|
void func_8009F40C(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7423);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
|
@ -2242,14 +2242,14 @@ void func_8009F40C(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7443);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 14
|
// Scene Draw Config 14
|
||||||
void func_8009F5D4(GlobalContext* globalCtx) {
|
void func_8009F5D4(GlobalContext* globalCtx) {
|
||||||
Gfx* displayListHead = Graph_Alloc(globalCtx->state.gfxCtx, 3 * sizeof(Gfx));
|
Gfx* displayListHead = Graph_Alloc(globalCtx->state.gfxCtx, 3 * sizeof(Gfx));
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7461);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08, displayListHead);
|
gSPSegment(POLY_XLU_DISP++, 0x08, displayListHead);
|
||||||
|
|
||||||
|
@ -2277,7 +2277,7 @@ void func_8009F5D4(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7495);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 15
|
// Scene Draw Config 15
|
||||||
|
@ -2286,7 +2286,7 @@ void func_8009F7D4(GlobalContext* globalCtx) {
|
||||||
s8 sp6E = coss((globalCtx->gameplayFrames * 1500) & 0xFFFF) >> 8;
|
s8 sp6E = coss((globalCtx->gameplayFrames * 1500) & 0xFFFF) >> 8;
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7512);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
sp6F = (sp6F >> 1) + 192;
|
sp6F = (sp6F >> 1) + 192;
|
||||||
|
@ -2302,7 +2302,7 @@ void func_8009F7D4(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7530);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* sGoronCityEntranceTextures[] = {
|
void* sGoronCityEntranceTextures[] = {
|
||||||
|
@ -2314,7 +2314,7 @@ void* sGoronCityEntranceTextures[] = {
|
||||||
void func_8009F9D0(GlobalContext* globalCtx) {
|
void func_8009F9D0(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7555);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08,
|
gSPSegment(POLY_OPA_DISP++, 0x08,
|
||||||
|
@ -2331,7 +2331,7 @@ void func_8009F9D0(GlobalContext* globalCtx) {
|
||||||
|
|
||||||
{ s32 pad[2]; }
|
{ s32 pad[2]; }
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7578);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* sLonLonRanchWindowTextures[] = {
|
void* sLonLonRanchWindowTextures[] = {
|
||||||
|
@ -2341,7 +2341,7 @@ void* sLonLonRanchWindowTextures[] = {
|
||||||
|
|
||||||
// Scene Draw Config 17
|
// Scene Draw Config 17
|
||||||
void func_8009FB74(GlobalContext* globalCtx) {
|
void func_8009FB74(GlobalContext* globalCtx) {
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7602);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
{ s32 pad[2]; }
|
{ s32 pad[2]; }
|
||||||
|
|
||||||
|
@ -2353,14 +2353,14 @@ void func_8009FB74(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7615);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 18
|
// Scene Draw Config 18
|
||||||
void func_8009FC90(GlobalContext* globalCtx) {
|
void func_8009FC90(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7630);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08,
|
gSPSegment(POLY_OPA_DISP++, 0x08,
|
||||||
|
@ -2377,7 +2377,7 @@ void func_8009FC90(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 64);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 64);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7653);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
f32 D_8012A398 = 0.0f;
|
f32 D_8012A398 = 0.0f;
|
||||||
|
@ -2388,7 +2388,7 @@ void func_8009FE58(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
f32 temp;
|
f32 temp;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7712);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
if (globalCtx->sceneNum == SCENE_BDAN) {
|
if (globalCtx->sceneNum == SCENE_BDAN) {
|
||||||
|
@ -2457,16 +2457,16 @@ void func_8009FE58(GlobalContext* globalCtx) {
|
||||||
Matrix_Scale(1.005f, sinf(D_8012A398) * 0.8f, 1.005f, MTXMODE_NEW);
|
Matrix_Scale(1.005f, sinf(D_8012A398) * 0.8f, 1.005f, MTXMODE_NEW);
|
||||||
}
|
}
|
||||||
|
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x0D, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_scene_table.c", 7809));
|
gSPSegment(POLY_OPA_DISP++, 0x0D, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__));
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7811);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 26
|
// Scene Draw Config 26
|
||||||
void func_800A0334(GlobalContext* globalCtx) {
|
void func_800A0334(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7825);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||||
|
@ -2485,7 +2485,7 @@ void func_800A0334(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7852);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scene Draw Config 52
|
// Scene Draw Config 52
|
||||||
|
@ -2502,7 +2502,7 @@ void func_800A057C(GlobalContext* globalCtx) {
|
||||||
void func_800A059C(GlobalContext* globalCtx) {
|
void func_800A059C(GlobalContext* globalCtx) {
|
||||||
u32 gameplayFrames;
|
u32 gameplayFrames;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7893);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gameplayFrames = globalCtx->gameplayFrames;
|
gameplayFrames = globalCtx->gameplayFrames;
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08,
|
gSPSegment(POLY_OPA_DISP++, 0x08,
|
||||||
|
@ -2515,7 +2515,7 @@ void func_800A059C(GlobalContext* globalCtx) {
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128);
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 7910);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void (*sSceneDrawHandlers[])(GlobalContext*) = {
|
void (*sSceneDrawHandlers[])(GlobalContext*) = {
|
||||||
|
@ -2548,14 +2548,14 @@ void Scene_Draw(GlobalContext* globalCtx) {
|
||||||
HREG(94) = 0;
|
HREG(94) = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 8104);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (HREG(81) == 1) {
|
if (HREG(81) == 1) {
|
||||||
gSPDisplayList(POLY_OPA_DISP++, sDefaultDisplayList);
|
gSPDisplayList(POLY_OPA_DISP++, sDefaultDisplayList);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, sDefaultDisplayList);
|
gSPDisplayList(POLY_XLU_DISP++, sDefaultDisplayList);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_scene_table.c", 8109);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (HREG(82) == 1) {
|
if (HREG(82) == 1) {
|
||||||
sSceneDrawHandlers[globalCtx->sceneConfig](globalCtx);
|
sSceneDrawHandlers[globalCtx->sceneConfig](globalCtx);
|
||||||
|
|
|
@ -25,7 +25,7 @@ void SkelAnime_DrawLimbLod(GlobalContext* globalCtx, s32 limbIndex, void** skele
|
||||||
Vec3f pos;
|
Vec3f pos;
|
||||||
Vec3s rot;
|
Vec3s rot;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_skelanime.c", 773);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
Matrix_Push();
|
Matrix_Push();
|
||||||
limb = (LodLimb*)SEGMENTED_TO_VIRTUAL(skeleton[limbIndex]);
|
limb = (LodLimb*)SEGMENTED_TO_VIRTUAL(skeleton[limbIndex]);
|
||||||
|
@ -41,7 +41,7 @@ void SkelAnime_DrawLimbLod(GlobalContext* globalCtx, s32 limbIndex, void** skele
|
||||||
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, limbIndex, &dList, &pos, &rot, arg)) {
|
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, limbIndex, &dList, &pos, &rot, arg)) {
|
||||||
Matrix_TranslateRotateZYX(&pos, &rot);
|
Matrix_TranslateRotateZYX(&pos, &rot);
|
||||||
if (dList != NULL) {
|
if (dList != NULL) {
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_skelanime.c", 805), G_MTX_LOAD);
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__), G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, dList);
|
gSPDisplayList(POLY_OPA_DISP++, dList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ void SkelAnime_DrawLimbLod(GlobalContext* globalCtx, s32 limbIndex, void** skele
|
||||||
SkelAnime_DrawLimbLod(globalCtx, limb->sibling, skeleton, jointTable, overrideLimbDraw, postLimbDraw, arg, lod);
|
SkelAnime_DrawLimbLod(globalCtx, limb->sibling, skeleton, jointTable, overrideLimbDraw, postLimbDraw, arg, lod);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_skelanime.c", 821);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -84,7 +84,7 @@ void SkelAnime_DrawLod(GlobalContext* globalCtx, void** skeleton, Vec3s* jointTa
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_skelanime.c", 849);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
Matrix_Push();
|
Matrix_Push();
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ void SkelAnime_DrawLod(GlobalContext* globalCtx, void** skeleton, Vec3s* jointTa
|
||||||
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, 1, &dList, &pos, &rot, arg)) {
|
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, 1, &dList, &pos, &rot, arg)) {
|
||||||
Matrix_TranslateRotateZYX(&pos, &rot);
|
Matrix_TranslateRotateZYX(&pos, &rot);
|
||||||
if (dList != NULL) {
|
if (dList != NULL) {
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_skelanime.c", 881), G_MTX_LOAD);
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__), G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, dList);
|
gSPDisplayList(POLY_OPA_DISP++, dList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ void SkelAnime_DrawLod(GlobalContext* globalCtx, void** skeleton, Vec3s* jointTa
|
||||||
|
|
||||||
Matrix_Pop();
|
Matrix_Pop();
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_skelanime.c", 894);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -146,16 +146,16 @@ void SkelAnime_DrawFlexLimbLod(GlobalContext* globalCtx, s32 limbIndex, void** s
|
||||||
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, limbIndex, &newDList, &pos, &rot, arg)) {
|
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, limbIndex, &newDList, &pos, &rot, arg)) {
|
||||||
Matrix_TranslateRotateZYX(&pos, &rot);
|
Matrix_TranslateRotateZYX(&pos, &rot);
|
||||||
if (newDList != NULL) {
|
if (newDList != NULL) {
|
||||||
Matrix_ToMtx(*mtx, "../z_skelanime.c", 945);
|
Matrix_ToMtx(*mtx, __FILE__, __LINE__);
|
||||||
{
|
{
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_skelanime.c", 946);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
gSPMatrix(POLY_OPA_DISP++, *mtx, G_MTX_LOAD);
|
gSPMatrix(POLY_OPA_DISP++, *mtx, G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, newDList);
|
gSPDisplayList(POLY_OPA_DISP++, newDList);
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_skelanime.c", 949);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
(*mtx)++;
|
(*mtx)++;
|
||||||
} else if (limbDList != NULL) {
|
} else if (limbDList != NULL) {
|
||||||
Matrix_ToMtx(*mtx, "../z_skelanime.c", 954);
|
Matrix_ToMtx(*mtx, __FILE__, __LINE__);
|
||||||
(*mtx)++;
|
(*mtx)++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -197,7 +197,7 @@ void SkelAnime_DrawFlexLod(GlobalContext* globalCtx, void** skeleton, Vec3s* joi
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_skelanime.c", 1000);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPSegment(POLY_OPA_DISP++, 0xD, mtx);
|
gSPSegment(POLY_OPA_DISP++, 0xD, mtx);
|
||||||
Matrix_Push();
|
Matrix_Push();
|
||||||
|
@ -214,13 +214,13 @@ void SkelAnime_DrawFlexLod(GlobalContext* globalCtx, void** skeleton, Vec3s* joi
|
||||||
if ((overrideLimbDraw == 0) || !overrideLimbDraw(globalCtx, 1, &newDList, &pos, &rot, arg)) {
|
if ((overrideLimbDraw == 0) || !overrideLimbDraw(globalCtx, 1, &newDList, &pos, &rot, arg)) {
|
||||||
Matrix_TranslateRotateZYX(&pos, &rot);
|
Matrix_TranslateRotateZYX(&pos, &rot);
|
||||||
if (newDList != NULL) {
|
if (newDList != NULL) {
|
||||||
Matrix_ToMtx(mtx, "../z_skelanime.c", 1033);
|
Matrix_ToMtx(mtx, __FILE__, __LINE__);
|
||||||
gDPNoOpString(POLY_OPA_DISP++, "T5ST", 0);
|
gDPNoOpString(POLY_OPA_DISP++, "T5ST", 0);
|
||||||
gSPMatrix(POLY_OPA_DISP++, mtx, G_MTX_LOAD);
|
gSPMatrix(POLY_OPA_DISP++, mtx, G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, newDList);
|
gSPDisplayList(POLY_OPA_DISP++, newDList);
|
||||||
mtx++;
|
mtx++;
|
||||||
} else if (limbDList != NULL) {
|
} else if (limbDList != NULL) {
|
||||||
Matrix_ToMtx(mtx, "../z_skelanime.c", 1040);
|
Matrix_ToMtx(mtx, __FILE__, __LINE__);
|
||||||
mtx++;
|
mtx++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -235,7 +235,7 @@ void SkelAnime_DrawFlexLod(GlobalContext* globalCtx, void** skeleton, Vec3s* joi
|
||||||
|
|
||||||
Matrix_Pop();
|
Matrix_Pop();
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_skelanime.c", 1053);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -248,7 +248,7 @@ void SkelAnime_DrawLimbOpa(GlobalContext* globalCtx, s32 limbIndex, void** skele
|
||||||
Vec3f pos;
|
Vec3f pos;
|
||||||
Vec3s rot;
|
Vec3s rot;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_skelanime.c", 1076);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
Matrix_Push();
|
Matrix_Push();
|
||||||
|
|
||||||
limb = (StandardLimb*)SEGMENTED_TO_VIRTUAL(skeleton[limbIndex]);
|
limb = (StandardLimb*)SEGMENTED_TO_VIRTUAL(skeleton[limbIndex]);
|
||||||
|
@ -262,7 +262,7 @@ void SkelAnime_DrawLimbOpa(GlobalContext* globalCtx, s32 limbIndex, void** skele
|
||||||
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, limbIndex, &dList, &pos, &rot, arg)) {
|
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, limbIndex, &dList, &pos, &rot, arg)) {
|
||||||
Matrix_TranslateRotateZYX(&pos, &rot);
|
Matrix_TranslateRotateZYX(&pos, &rot);
|
||||||
if (dList != NULL) {
|
if (dList != NULL) {
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_skelanime.c", 1103), G_MTX_LOAD);
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__), G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, dList);
|
gSPDisplayList(POLY_OPA_DISP++, dList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -282,7 +282,7 @@ void SkelAnime_DrawLimbOpa(GlobalContext* globalCtx, s32 limbIndex, void** skele
|
||||||
if (limb->sibling != LIMB_DONE) {
|
if (limb->sibling != LIMB_DONE) {
|
||||||
SkelAnime_DrawLimbOpa(globalCtx, limb->sibling, skeleton, jointTable, overrideLimbDraw, postLimbDraw, arg);
|
SkelAnime_DrawLimbOpa(globalCtx, limb->sibling, skeleton, jointTable, overrideLimbDraw, postLimbDraw, arg);
|
||||||
}
|
}
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_skelanime.c", 1121);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -303,7 +303,7 @@ void SkelAnime_DrawOpa(GlobalContext* globalCtx, void** skeleton, Vec3s* jointTa
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_skelanime.c", 1148);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
Matrix_Push();
|
Matrix_Push();
|
||||||
rootLimb = (StandardLimb*)SEGMENTED_TO_VIRTUAL(skeleton[0]);
|
rootLimb = (StandardLimb*)SEGMENTED_TO_VIRTUAL(skeleton[0]);
|
||||||
|
@ -318,7 +318,7 @@ void SkelAnime_DrawOpa(GlobalContext* globalCtx, void** skeleton, Vec3s* jointTa
|
||||||
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, 1, &dList, &pos, &rot, arg)) {
|
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, 1, &dList, &pos, &rot, arg)) {
|
||||||
Matrix_TranslateRotateZYX(&pos, &rot);
|
Matrix_TranslateRotateZYX(&pos, &rot);
|
||||||
if (dList != NULL) {
|
if (dList != NULL) {
|
||||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_skelanime.c", 1176), G_MTX_LOAD);
|
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__), G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, dList);
|
gSPDisplayList(POLY_OPA_DISP++, dList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -333,7 +333,7 @@ void SkelAnime_DrawOpa(GlobalContext* globalCtx, void** skeleton, Vec3s* jointTa
|
||||||
|
|
||||||
Matrix_Pop();
|
Matrix_Pop();
|
||||||
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_skelanime.c", 1190);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -348,7 +348,7 @@ void SkelAnime_DrawFlexLimbOpa(GlobalContext* globalCtx, s32 limbIndex, void** s
|
||||||
Vec3f pos;
|
Vec3f pos;
|
||||||
Vec3s rot;
|
Vec3s rot;
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_skelanime.c", 1214);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
Matrix_Push();
|
Matrix_Push();
|
||||||
|
|
||||||
|
@ -365,12 +365,12 @@ void SkelAnime_DrawFlexLimbOpa(GlobalContext* globalCtx, s32 limbIndex, void** s
|
||||||
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, limbIndex, &newDList, &pos, &rot, arg)) {
|
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, limbIndex, &newDList, &pos, &rot, arg)) {
|
||||||
Matrix_TranslateRotateZYX(&pos, &rot);
|
Matrix_TranslateRotateZYX(&pos, &rot);
|
||||||
if (newDList != NULL) {
|
if (newDList != NULL) {
|
||||||
Matrix_ToMtx(*limbMatricies, "../z_skelanime.c", 1242);
|
Matrix_ToMtx(*limbMatricies, __FILE__, __LINE__);
|
||||||
gSPMatrix(POLY_OPA_DISP++, *limbMatricies, G_MTX_LOAD);
|
gSPMatrix(POLY_OPA_DISP++, *limbMatricies, G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, newDList);
|
gSPDisplayList(POLY_OPA_DISP++, newDList);
|
||||||
(*limbMatricies)++;
|
(*limbMatricies)++;
|
||||||
} else if (limbDList != NULL) {
|
} else if (limbDList != NULL) {
|
||||||
Matrix_ToMtx(*limbMatricies, "../z_skelanime.c", 1249);
|
Matrix_ToMtx(*limbMatricies, __FILE__, __LINE__);
|
||||||
(*limbMatricies)++;
|
(*limbMatricies)++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -390,7 +390,7 @@ void SkelAnime_DrawFlexLimbOpa(GlobalContext* globalCtx, s32 limbIndex, void** s
|
||||||
SkelAnime_DrawFlexLimbOpa(globalCtx, limb->sibling, skeleton, jointTable, overrideLimbDraw, postLimbDraw, arg,
|
SkelAnime_DrawFlexLimbOpa(globalCtx, limb->sibling, skeleton, jointTable, overrideLimbDraw, postLimbDraw, arg,
|
||||||
limbMatricies);
|
limbMatricies);
|
||||||
}
|
}
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_skelanime.c", 1265);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -415,7 +415,7 @@ void SkelAnime_DrawFlexOpa(GlobalContext* globalCtx, void** skeleton, Vec3s* joi
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_skelanime.c", 1294);
|
OPEN_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gSPSegment(POLY_OPA_DISP++, 0xD, mtx);
|
gSPSegment(POLY_OPA_DISP++, 0xD, mtx);
|
||||||
|
|
||||||
|
@ -434,12 +434,12 @@ void SkelAnime_DrawFlexOpa(GlobalContext* globalCtx, void** skeleton, Vec3s* joi
|
||||||
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, 1, &newDList, &pos, &rot, arg)) {
|
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, 1, &newDList, &pos, &rot, arg)) {
|
||||||
Matrix_TranslateRotateZYX(&pos, &rot);
|
Matrix_TranslateRotateZYX(&pos, &rot);
|
||||||
if (newDList != NULL) {
|
if (newDList != NULL) {
|
||||||
Matrix_ToMtx(mtx, "../z_skelanime.c", 1327);
|
Matrix_ToMtx(mtx, __FILE__, __LINE__);
|
||||||
gSPMatrix(POLY_OPA_DISP++, mtx, G_MTX_LOAD);
|
gSPMatrix(POLY_OPA_DISP++, mtx, G_MTX_LOAD);
|
||||||
gSPDisplayList(POLY_OPA_DISP++, newDList);
|
gSPDisplayList(POLY_OPA_DISP++, newDList);
|
||||||
mtx++;
|
mtx++;
|
||||||
} else if (limbDList != NULL) {
|
} else if (limbDList != NULL) {
|
||||||
Matrix_ToMtx(mtx, "../z_skelanime.c", 1334);
|
Matrix_ToMtx(mtx, __FILE__, __LINE__);
|
||||||
mtx++;
|
mtx++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -454,7 +454,7 @@ void SkelAnime_DrawFlexOpa(GlobalContext* globalCtx, void** skeleton, Vec3s* joi
|
||||||
}
|
}
|
||||||
|
|
||||||
Matrix_Pop();
|
Matrix_Pop();
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_skelanime.c", 1347);
|
CLOSE_DISPS(globalCtx->state.gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -476,10 +476,10 @@ void SkelAnime_GetFrameData(AnimationHeader* animation, s32 frame, s32 limbCount
|
||||||
|
|
||||||
for (i = 0; i < limbCount; i++, frameTable++, jointIndices++) {
|
for (i = 0; i < limbCount; i++, frameTable++, jointIndices++) {
|
||||||
if ((frameTable == NULL) || (jointIndices == NULL) || (dynamicData == NULL) || (staticData == NULL)) {
|
if ((frameTable == NULL) || (jointIndices == NULL) || (dynamicData == NULL) || (staticData == NULL)) {
|
||||||
LOG_ADDRESS("out", frameTable, "../z_skelanime.c", 1392);
|
LOG_ADDRESS("out", frameTable, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("ref_tbl", jointIndices, "../z_skelanime.c", 1393);
|
LOG_ADDRESS("ref_tbl", jointIndices, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("frame_tbl", dynamicData, "../z_skelanime.c", 1394);
|
LOG_ADDRESS("frame_tbl", dynamicData, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("tbl", staticData, "../z_skelanime.c", 1395);
|
LOG_ADDRESS("tbl", staticData, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
frameTable->x =
|
frameTable->x =
|
||||||
|
@ -534,7 +534,7 @@ Gfx* SkelAnime_DrawLimb(GlobalContext* globalCtx, s32 limbIndex, void** skeleton
|
||||||
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, limbIndex, &dList, &pos, &rot, arg, &gfx)) {
|
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, limbIndex, &dList, &pos, &rot, arg, &gfx)) {
|
||||||
Matrix_TranslateRotateZYX(&pos, &rot);
|
Matrix_TranslateRotateZYX(&pos, &rot);
|
||||||
if (dList != NULL) {
|
if (dList != NULL) {
|
||||||
gSPMatrix(gfx++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_skelanime.c", 1489), G_MTX_LOAD);
|
gSPMatrix(gfx++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__), G_MTX_LOAD);
|
||||||
gSPDisplayList(gfx++, dList);
|
gSPDisplayList(gfx++, dList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -592,7 +592,7 @@ Gfx* SkelAnime_Draw(GlobalContext* globalCtx, void** skeleton, Vec3s* jointTable
|
||||||
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, 1, &dList, &pos, &rot, arg, &gfx)) {
|
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, 1, &dList, &pos, &rot, arg, &gfx)) {
|
||||||
Matrix_TranslateRotateZYX(&pos, &rot);
|
Matrix_TranslateRotateZYX(&pos, &rot);
|
||||||
if (dList != NULL) {
|
if (dList != NULL) {
|
||||||
gSPMatrix(gfx++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_skelanime.c", 1558), G_MTX_LOAD);
|
gSPMatrix(gfx++, Matrix_NewMtx(globalCtx->state.gfxCtx, __FILE__, __LINE__), G_MTX_LOAD);
|
||||||
gSPDisplayList(gfx++, dList);
|
gSPDisplayList(gfx++, dList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -637,12 +637,12 @@ Gfx* SkelAnime_DrawFlexLimb(GlobalContext* globalCtx, s32 limbIndex, void** skel
|
||||||
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, limbIndex, &newDList, &pos, &rot, arg, &gfx)) {
|
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, limbIndex, &newDList, &pos, &rot, arg, &gfx)) {
|
||||||
Matrix_TranslateRotateZYX(&pos, &rot);
|
Matrix_TranslateRotateZYX(&pos, &rot);
|
||||||
if (newDList != NULL) {
|
if (newDList != NULL) {
|
||||||
Matrix_ToMtx(*mtx, "../z_skelanime.c", 1623);
|
Matrix_ToMtx(*mtx, __FILE__, __LINE__);
|
||||||
gSPMatrix(gfx++, *mtx, G_MTX_LOAD);
|
gSPMatrix(gfx++, *mtx, G_MTX_LOAD);
|
||||||
gSPDisplayList(gfx++, newDList);
|
gSPDisplayList(gfx++, newDList);
|
||||||
(*mtx)++;
|
(*mtx)++;
|
||||||
} else if (limbDList != NULL) {
|
} else if (limbDList != NULL) {
|
||||||
Matrix_ToMtx(*mtx, "../z_skelanime.c", 1630);
|
Matrix_ToMtx(*mtx, __FILE__, __LINE__);
|
||||||
(*mtx)++;
|
(*mtx)++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -702,12 +702,12 @@ Gfx* SkelAnime_DrawFlex(GlobalContext* globalCtx, void** skeleton, Vec3s* jointT
|
||||||
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, 1, &newDList, &pos, &rot, arg, &gfx)) {
|
if ((overrideLimbDraw == NULL) || !overrideLimbDraw(globalCtx, 1, &newDList, &pos, &rot, arg, &gfx)) {
|
||||||
Matrix_TranslateRotateZYX(&pos, &rot);
|
Matrix_TranslateRotateZYX(&pos, &rot);
|
||||||
if (newDList != NULL) {
|
if (newDList != NULL) {
|
||||||
Matrix_ToMtx(mtx, "../z_skelanime.c", 1710);
|
Matrix_ToMtx(mtx, __FILE__, __LINE__);
|
||||||
gSPMatrix(gfx++, mtx, G_MTX_LOAD);
|
gSPMatrix(gfx++, mtx, G_MTX_LOAD);
|
||||||
gSPDisplayList(gfx++, newDList);
|
gSPDisplayList(gfx++, newDList);
|
||||||
mtx++;
|
mtx++;
|
||||||
} else if (limbDList != NULL) {
|
} else if (limbDList != NULL) {
|
||||||
Matrix_ToMtx(mtx, "../z_skelanime.c", 1717);
|
Matrix_ToMtx(mtx, __FILE__, __LINE__);
|
||||||
mtx++;
|
mtx++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -881,8 +881,8 @@ void AnimationContext_SetLoadFrame(GlobalContext* globalCtx, LinkAnimationHeader
|
||||||
|
|
||||||
//DmaMgr_SendRequest2(&entry->data.load.req, ram,
|
//DmaMgr_SendRequest2(&entry->data.load.req, ram,
|
||||||
//LINK_ANIMATION_OFFSET(linkAnimHeader->segment, ((sizeof(Vec3s) * limbCount + 2) * frame)),
|
//LINK_ANIMATION_OFFSET(linkAnimHeader->segment, ((sizeof(Vec3s) * limbCount + 2) * frame)),
|
||||||
//sizeof(Vec3s) * limbCount + 2, 0, &entry->data.load.msgQueue, NULL, "../z_skelanime.c",
|
//sizeof(Vec3s) * limbCount + 2, 0, &entry->data.load.msgQueue, NULL, __FILE__,
|
||||||
//2004);
|
//__LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1103,10 +1103,10 @@ void SkelAnime_InitLink(GlobalContext* globalCtx, SkelAnime* skelAnime, FlexSkel
|
||||||
}
|
}
|
||||||
|
|
||||||
if (jointTable == NULL) {
|
if (jointTable == NULL) {
|
||||||
skelAnime->jointTable = ZeldaArena_MallocDebug(allocSize, "../z_skelanime.c", 2364);
|
skelAnime->jointTable = ZeldaArena_MallocDebug(allocSize, __FILE__, __LINE__);
|
||||||
skelAnime->morphTable = ZeldaArena_MallocDebug(allocSize, "../z_skelanime.c", 2365);
|
skelAnime->morphTable = ZeldaArena_MallocDebug(allocSize, __FILE__, __LINE__);
|
||||||
} else {
|
} else {
|
||||||
ASSERT(limbBufCount == limbCount, "joint_buff_num == joint_num", "../z_skelanime.c", 2369);
|
ASSERT(limbBufCount == limbCount, "joint_buff_num == joint_num", __FILE__, __LINE__);
|
||||||
|
|
||||||
skelAnime->jointTable = (Vec3s*)ALIGN16((uintptr_t)jointTable);
|
skelAnime->jointTable = (Vec3s*)ALIGN16((uintptr_t)jointTable);
|
||||||
skelAnime->morphTable = (Vec3s*)ALIGN16((uintptr_t)morphTable);
|
skelAnime->morphTable = (Vec3s*)ALIGN16((uintptr_t)morphTable);
|
||||||
|
@ -1431,11 +1431,11 @@ s32 SkelAnime_Init(GlobalContext* globalCtx, SkelAnime* skelAnime, SkeletonHeade
|
||||||
skelAnime->skeleton = SEGMENTED_TO_VIRTUAL(skeletonHeader->segment);
|
skelAnime->skeleton = SEGMENTED_TO_VIRTUAL(skeletonHeader->segment);
|
||||||
if (jointTable == NULL) {
|
if (jointTable == NULL) {
|
||||||
skelAnime->jointTable =
|
skelAnime->jointTable =
|
||||||
ZeldaArena_MallocDebug(skelAnime->limbCount * sizeof(*skelAnime->jointTable), "../z_skelanime.c", 2968);
|
ZeldaArena_MallocDebug(skelAnime->limbCount * sizeof(*skelAnime->jointTable), __FILE__, __LINE__);
|
||||||
skelAnime->morphTable =
|
skelAnime->morphTable =
|
||||||
ZeldaArena_MallocDebug(skelAnime->limbCount * sizeof(*skelAnime->morphTable), "../z_skelanime.c", 2969);
|
ZeldaArena_MallocDebug(skelAnime->limbCount * sizeof(*skelAnime->morphTable), __FILE__, __LINE__);
|
||||||
} else {
|
} else {
|
||||||
ASSERT(limbCount == skelAnime->limbCount, "joint_buff_num == this->joint_num", "../z_skelanime.c", 2973);
|
ASSERT(limbCount == skelAnime->limbCount, "joint_buff_num == this->joint_num", __FILE__, __LINE__);
|
||||||
skelAnime->jointTable = jointTable;
|
skelAnime->jointTable = jointTable;
|
||||||
skelAnime->morphTable = morphTable;
|
skelAnime->morphTable = morphTable;
|
||||||
}
|
}
|
||||||
|
@ -1466,12 +1466,12 @@ s32 SkelAnime_InitFlex(GlobalContext* globalCtx, SkelAnime* skelAnime, FlexSkele
|
||||||
|
|
||||||
if (jointTable == NULL) {
|
if (jointTable == NULL) {
|
||||||
skelAnime->jointTable =
|
skelAnime->jointTable =
|
||||||
ZeldaArena_MallocDebug(skelAnime->limbCount * sizeof(*skelAnime->jointTable), "../z_skelanime.c", 3047);
|
ZeldaArena_MallocDebug(skelAnime->limbCount * sizeof(*skelAnime->jointTable), __FILE__, __LINE__);
|
||||||
|
|
||||||
skelAnime->morphTable =
|
skelAnime->morphTable =
|
||||||
ZeldaArena_MallocDebug(skelAnime->limbCount * sizeof(*skelAnime->morphTable), "../z_skelanime.c", 3048);
|
ZeldaArena_MallocDebug(skelAnime->limbCount * sizeof(*skelAnime->morphTable), __FILE__, __LINE__);
|
||||||
} else {
|
} else {
|
||||||
ASSERT(limbCount == skelAnime->limbCount, "joint_buff_num == this->joint_num", "../z_skelanime.c", 3052);
|
ASSERT(limbCount == skelAnime->limbCount, "joint_buff_num == this->joint_num", __FILE__, __LINE__);
|
||||||
skelAnime->jointTable = jointTable;
|
skelAnime->jointTable = jointTable;
|
||||||
skelAnime->morphTable = morphTable;
|
skelAnime->morphTable = morphTable;
|
||||||
}
|
}
|
||||||
|
@ -1500,9 +1500,9 @@ s32 SkelAnime_InitSkin(GlobalContext* globalCtx, SkelAnime* skelAnime, SkeletonH
|
||||||
skelAnime->limbCount = skeletonHeader->limbCount + 1;
|
skelAnime->limbCount = skeletonHeader->limbCount + 1;
|
||||||
skelAnime->skeleton = SEGMENTED_TO_VIRTUAL(skeletonHeader->segment);
|
skelAnime->skeleton = SEGMENTED_TO_VIRTUAL(skeletonHeader->segment);
|
||||||
skelAnime->jointTable =
|
skelAnime->jointTable =
|
||||||
ZeldaArena_MallocDebug(skelAnime->limbCount * sizeof(*skelAnime->jointTable), "../z_skelanime.c", 3120);
|
ZeldaArena_MallocDebug(skelAnime->limbCount * sizeof(*skelAnime->jointTable), __FILE__, __LINE__);
|
||||||
skelAnime->morphTable =
|
skelAnime->morphTable =
|
||||||
ZeldaArena_MallocDebug(skelAnime->limbCount * sizeof(*skelAnime->morphTable), "../z_skelanime.c", 3121);
|
ZeldaArena_MallocDebug(skelAnime->limbCount * sizeof(*skelAnime->morphTable), __FILE__, __LINE__);
|
||||||
if ((skelAnime->jointTable == NULL) || (skelAnime->morphTable == NULL)) {
|
if ((skelAnime->jointTable == NULL) || (skelAnime->morphTable == NULL)) {
|
||||||
osSyncPrintf(VT_FGCOL(RED));
|
osSyncPrintf(VT_FGCOL(RED));
|
||||||
// "Memory allocation error"
|
// "Memory allocation error"
|
||||||
|
@ -1896,13 +1896,13 @@ s32 Animation_OnFrame(SkelAnime* skelAnime, f32 frame) {
|
||||||
*/
|
*/
|
||||||
void SkelAnime_Free(SkelAnime* skelAnime, GlobalContext* globalCtx) {
|
void SkelAnime_Free(SkelAnime* skelAnime, GlobalContext* globalCtx) {
|
||||||
if (skelAnime->jointTable != NULL) {
|
if (skelAnime->jointTable != NULL) {
|
||||||
ZeldaArena_FreeDebug(skelAnime->jointTable, "../z_skelanime.c", 3729);
|
ZeldaArena_FreeDebug(skelAnime->jointTable, __FILE__, __LINE__);
|
||||||
} else {
|
} else {
|
||||||
osSyncPrintf("now_joint あきまへん!!\n"); // "now_joint is freed! !"
|
osSyncPrintf("now_joint あきまへん!!\n"); // "now_joint is freed! !"
|
||||||
}
|
}
|
||||||
|
|
||||||
if (skelAnime->morphTable != NULL) {
|
if (skelAnime->morphTable != NULL) {
|
||||||
ZeldaArena_FreeDebug(skelAnime->morphTable, "../z_skelanime.c", 3731);
|
ZeldaArena_FreeDebug(skelAnime->morphTable, __FILE__, __LINE__);
|
||||||
} else {
|
} else {
|
||||||
osSyncPrintf("morf_joint あきまへん!!\n"); // "morf_joint is freed !!"
|
osSyncPrintf("morf_joint あきまへん!!\n"); // "morf_joint is freed !!"
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,7 @@ void Skin_ApplyLimbModifications(GraphicsContext* gfxCtx, Skin* skin, s32 limbIn
|
||||||
Vec3f spD0;
|
Vec3f spD0;
|
||||||
SkinTransformation* transformationEntry;
|
SkinTransformation* transformationEntry;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_skin.c", 254);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
skeleton = (SkinLimb**)SEGMENTED_TO_VIRTUAL(skin->skeletonHeader->segment);
|
skeleton = (SkinLimb**)SEGMENTED_TO_VIRTUAL(skin->skeletonHeader->segment);
|
||||||
data = SEGMENTED_TO_VIRTUAL(((SkinLimb*)SEGMENTED_TO_VIRTUAL(skeleton[limbIndex]))->segment);
|
data = SEGMENTED_TO_VIRTUAL(((SkinLimb*)SEGMENTED_TO_VIRTUAL(skeleton[limbIndex]))->segment);
|
||||||
|
@ -130,7 +130,7 @@ void Skin_ApplyLimbModifications(GraphicsContext* gfxCtx, Skin* skin, s32 limbIn
|
||||||
|
|
||||||
vtxEntry->index = (vtxEntry->index == 0) ? 1 : 0;
|
vtxEntry->index = (vtxEntry->index == 0) ? 1 : 0;
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_skin.c", 344);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -141,7 +141,7 @@ void Skin_DrawAnimatedLimb(GraphicsContext* gfxCtx, Skin* skin, s32 limbIndex, s
|
||||||
SkinLimb** skeleton;
|
SkinLimb** skeleton;
|
||||||
SkinAnimatedLimbData* data;
|
SkinAnimatedLimbData* data;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_skin.c", 364);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
skeleton = SEGMENTED_TO_VIRTUAL(skin->skeletonHeader->segment);
|
skeleton = SEGMENTED_TO_VIRTUAL(skin->skeletonHeader->segment);
|
||||||
data = SEGMENTED_TO_VIRTUAL(((SkinLimb*)SEGMENTED_TO_VIRTUAL(skeleton[limbIndex]))->segment);
|
data = SEGMENTED_TO_VIRTUAL(((SkinLimb*)SEGMENTED_TO_VIRTUAL(skeleton[limbIndex]))->segment);
|
||||||
|
@ -152,7 +152,7 @@ void Skin_DrawAnimatedLimb(GraphicsContext* gfxCtx, Skin* skin, s32 limbIndex, s
|
||||||
|
|
||||||
gSPDisplayList(POLY_OPA_DISP++, data->dlist);
|
gSPDisplayList(POLY_OPA_DISP++, data->dlist);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_skin.c", 377);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -163,7 +163,7 @@ void Skin_DrawLimb(GraphicsContext* gfxCtx, Skin* skin, s32 limbIndex, Gfx* dlis
|
||||||
SkinLimb** skeleton;
|
SkinLimb** skeleton;
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_skin.c", 395);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
skeleton = SEGMENTED_TO_VIRTUAL(skin->skeletonHeader->segment);
|
skeleton = SEGMENTED_TO_VIRTUAL(skin->skeletonHeader->segment);
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ void Skin_DrawLimb(GraphicsContext* gfxCtx, Skin* skin, s32 limbIndex, Gfx* dlis
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_skin.c", 433);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Skin_DrawImpl(Actor* actor, GlobalContext* globalCtx, Skin* skin, SkinPostDraw postDraw,
|
void Skin_DrawImpl(Actor* actor, GlobalContext* globalCtx, Skin* skin, SkinPostDraw postDraw,
|
||||||
|
@ -193,7 +193,7 @@ void Skin_DrawImpl(Actor* actor, GlobalContext* globalCtx, Skin* skin, SkinPostD
|
||||||
GraphicsContext* gfxCtx = globalCtx->state.gfxCtx;
|
GraphicsContext* gfxCtx = globalCtx->state.gfxCtx;
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_skin.c", 471);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (!(drawFlags & SKIN_DRAW_FLAG_CUSTOM_TRANSFORMS)) {
|
if (!(drawFlags & SKIN_DRAW_FLAG_CUSTOM_TRANSFORMS)) {
|
||||||
Skin_ApplyAnimTransformations(skin, gSkinLimbMatrices, actor, setTranslation);
|
Skin_ApplyAnimTransformations(skin, gSkinLimbMatrices, actor, setTranslation);
|
||||||
|
@ -235,7 +235,7 @@ void Skin_DrawImpl(Actor* actor, GlobalContext* globalCtx, Skin* skin, SkinPostD
|
||||||
}
|
}
|
||||||
|
|
||||||
close_disps:
|
close_disps:
|
||||||
CLOSE_DISPS(gfxCtx, "../z_skin.c", 534);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// allows specifying PostLimbDraw and setTranslation
|
// allows specifying PostLimbDraw and setTranslation
|
||||||
|
|
|
@ -51,9 +51,9 @@ void Skin_Init(GlobalContext* globalCtx, Skin* skin, SkeletonHeader* skeletonHea
|
||||||
skeleton = SEGMENTED_TO_VIRTUAL(skin->skeletonHeader->segment);
|
skeleton = SEGMENTED_TO_VIRTUAL(skin->skeletonHeader->segment);
|
||||||
limbCount = skin->skeletonHeader->limbCount;
|
limbCount = skin->skeletonHeader->limbCount;
|
||||||
|
|
||||||
skin->vtxTable = ZeldaArena_MallocDebug(limbCount * sizeof(SkinLimbVtx), "../z_skin_awb.c", 212);
|
skin->vtxTable = ZeldaArena_MallocDebug(limbCount * sizeof(SkinLimbVtx), __FILE__, __LINE__);
|
||||||
|
|
||||||
ASSERT(skin->vtxTable != NULL, "pskin_awb->avb_tbl != NULL", "../z_skin_awb.c", 214);
|
ASSERT(skin->vtxTable != NULL, "pskin_awb->avb_tbl != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
for (i = 0; i < limbCount; i++) {
|
for (i = 0; i < limbCount; i++) {
|
||||||
SkinLimbVtx* vtxEntry = &skin->vtxTable[i];
|
SkinLimbVtx* vtxEntry = &skin->vtxTable[i];
|
||||||
|
@ -70,12 +70,12 @@ void Skin_Init(GlobalContext* globalCtx, Skin* skin, SkeletonHeader* skeletonHea
|
||||||
vtxEntry->index = 0;
|
vtxEntry->index = 0;
|
||||||
|
|
||||||
vtxEntry->buf[0] =
|
vtxEntry->buf[0] =
|
||||||
ZeldaArena_MallocDebug(animatedLimbData->totalVtxCount * sizeof(Vtx), "../z_skin_awb.c", 235);
|
ZeldaArena_MallocDebug(animatedLimbData->totalVtxCount * sizeof(Vtx), __FILE__, __LINE__);
|
||||||
ASSERT(vtxEntry->buf[0] != NULL, "psavb->buf[0] != NULL", "../z_skin_awb.c", 237);
|
ASSERT(vtxEntry->buf[0] != NULL, "psavb->buf[0] != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
vtxEntry->buf[1] =
|
vtxEntry->buf[1] =
|
||||||
ZeldaArena_MallocDebug(animatedLimbData->totalVtxCount * sizeof(Vtx), "../z_skin_awb.c", 240);
|
ZeldaArena_MallocDebug(animatedLimbData->totalVtxCount * sizeof(Vtx), __FILE__, __LINE__);
|
||||||
ASSERT(vtxEntry->buf[1] != NULL, "psavb->buf[1] != NULL", "../z_skin_awb.c", 242);
|
ASSERT(vtxEntry->buf[1] != NULL, "psavb->buf[1] != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
Skin_InitAnimatedLimb(globalCtx, skin, i);
|
Skin_InitAnimatedLimb(globalCtx, skin, i);
|
||||||
}
|
}
|
||||||
|
@ -93,17 +93,17 @@ void Skin_Free(GlobalContext* globalCtx, Skin* skin) {
|
||||||
|
|
||||||
for (i = 0; i < skin->limbCount; i++) {
|
for (i = 0; i < skin->limbCount; i++) {
|
||||||
if (skin->vtxTable[i].buf[0] != NULL) {
|
if (skin->vtxTable[i].buf[0] != NULL) {
|
||||||
ZeldaArena_FreeDebug(skin->vtxTable[i].buf[0], "../z_skin_awb.c", 276);
|
ZeldaArena_FreeDebug(skin->vtxTable[i].buf[0], __FILE__, __LINE__);
|
||||||
skin->vtxTable[i].buf[0] = NULL;
|
skin->vtxTable[i].buf[0] = NULL;
|
||||||
}
|
}
|
||||||
if (skin->vtxTable[i].buf[1] != NULL) {
|
if (skin->vtxTable[i].buf[1] != NULL) {
|
||||||
ZeldaArena_FreeDebug(skin->vtxTable[i].buf[1], "../z_skin_awb.c", 280);
|
ZeldaArena_FreeDebug(skin->vtxTable[i].buf[1], __FILE__, __LINE__);
|
||||||
skin->vtxTable[i].buf[1] = NULL;
|
skin->vtxTable[i].buf[1] = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (skin->vtxTable != NULL) {
|
if (skin->vtxTable != NULL) {
|
||||||
ZeldaArena_FreeDebug(skin->vtxTable, "../z_skin_awb.c", 286);
|
ZeldaArena_FreeDebug(skin->vtxTable, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
SkelAnime_Free(&skin->skelAnime, globalCtx);
|
SkelAnime_Free(&skin->skelAnime, globalCtx);
|
||||||
|
|
|
@ -23,7 +23,7 @@ void View_ViewportToVp(Vp* dest, Viewport* src) {
|
||||||
}
|
}
|
||||||
|
|
||||||
View* View_New(GraphicsContext* gfxCtx) {
|
View* View_New(GraphicsContext* gfxCtx) {
|
||||||
View* view = SystemArena_MallocDebug(sizeof(View), "../z_view.c", 285);
|
View* view = SystemArena_MallocDebug(sizeof(View), __FILE__, __LINE__);
|
||||||
|
|
||||||
if (view != NULL) {
|
if (view != NULL) {
|
||||||
memset(view, 0, sizeof(View));
|
memset(view, 0, sizeof(View));
|
||||||
|
@ -34,7 +34,7 @@ View* View_New(GraphicsContext* gfxCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void View_Free(View* view) {
|
void View_Free(View* view) {
|
||||||
SystemArena_FreeDebug(view, "../z_view.c", 297);
|
SystemArena_FreeDebug(view, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void View_Init(View* view, GraphicsContext* gfxCtx) {
|
void View_Init(View* view, GraphicsContext* gfxCtx) {
|
||||||
|
@ -176,12 +176,12 @@ void func_800AA550(View* view) {
|
||||||
lrx = view->viewport.rightX - varX;
|
lrx = view->viewport.rightX - varX;
|
||||||
lry = view->viewport.bottomY - varY;
|
lry = view->viewport.bottomY - varY;
|
||||||
|
|
||||||
ASSERT(ulx >= 0, "ulx >= 0", "../z_view.c", 454);
|
ASSERT(ulx >= 0, "ulx >= 0", __FILE__, __LINE__);
|
||||||
ASSERT(uly >= 0, "uly >= 0", "../z_view.c", 455);
|
ASSERT(uly >= 0, "uly >= 0", __FILE__, __LINE__);
|
||||||
ASSERT(lrx <= SCREEN_WIDTH, "lrx <= SCREEN_WD", "../z_view.c", 456);
|
ASSERT(lrx <= SCREEN_WIDTH, "lrx <= SCREEN_WD", __FILE__, __LINE__);
|
||||||
ASSERT(lry <= SCREEN_HEIGHT, "lry <= SCREEN_HT", "../z_view.c", 457);
|
ASSERT(lry <= SCREEN_HEIGHT, "lry <= SCREEN_HT", __FILE__, __LINE__);
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_view.c", 459);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
gDPPipeSync(POLY_OPA_DISP++);
|
gDPPipeSync(POLY_OPA_DISP++);
|
||||||
gDPSetScissor(POLY_OPA_DISP++, G_SC_NON_INTERLACE, ulx, uly, lrx, lry);
|
gDPSetScissor(POLY_OPA_DISP++, G_SC_NON_INTERLACE, ulx, uly, lrx, lry);
|
||||||
|
@ -190,7 +190,7 @@ void func_800AA550(View* view) {
|
||||||
gDPPipeSync(POLY_KAL_DISP++);
|
gDPPipeSync(POLY_KAL_DISP++);
|
||||||
gDPSetScissor(POLY_KAL_DISP++, G_SC_NON_INTERLACE, ulx, uly, lrx, lry);
|
gDPSetScissor(POLY_KAL_DISP++, G_SC_NON_INTERLACE, ulx, uly, lrx, lry);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_view.c", 472);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_800AA76C(View* view, f32 x, f32 y, f32 z) {
|
void func_800AA76C(View* view, f32 x, f32 y, f32 z) {
|
||||||
|
@ -265,7 +265,7 @@ s32 func_800AA890(View* view, Mtx* mtx) {
|
||||||
Matrix_RotateZ(-view->unk_104.z, MTXMODE_APPLY);
|
Matrix_RotateZ(-view->unk_104.z, MTXMODE_APPLY);
|
||||||
Matrix_RotateY(-view->unk_104.y, MTXMODE_APPLY);
|
Matrix_RotateY(-view->unk_104.y, MTXMODE_APPLY);
|
||||||
Matrix_RotateX(-view->unk_104.x, MTXMODE_APPLY);
|
Matrix_RotateX(-view->unk_104.x, MTXMODE_APPLY);
|
||||||
Matrix_ToMtx(mtx, "../z_view.c", 566);
|
Matrix_ToMtx(mtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -293,10 +293,10 @@ s32 func_800AAA9C(View* view) {
|
||||||
Mtx* viewing;
|
Mtx* viewing;
|
||||||
GraphicsContext* gfxCtx = view->gfxCtx;
|
GraphicsContext* gfxCtx = view->gfxCtx;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_view.c", 596);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
vp = Graph_Alloc(gfxCtx, sizeof(Vp));
|
vp = Graph_Alloc(gfxCtx, sizeof(Vp));
|
||||||
LogUtils_CheckNullPointer("vp", vp, "../z_view.c", 601);
|
LogUtils_CheckNullPointer("vp", vp, __FILE__, __LINE__);
|
||||||
View_ViewportToVp(vp, &view->viewport);
|
View_ViewportToVp(vp, &view->viewport);
|
||||||
view->vp = *vp;
|
view->vp = *vp;
|
||||||
|
|
||||||
|
@ -307,7 +307,7 @@ s32 func_800AAA9C(View* view) {
|
||||||
gSPViewport(POLY_KAL_DISP++, vp);
|
gSPViewport(POLY_KAL_DISP++, vp);
|
||||||
|
|
||||||
projection = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
projection = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
||||||
LogUtils_CheckNullPointer("projection", projection, "../z_view.c", 616);
|
LogUtils_CheckNullPointer("projection", projection, __FILE__, __LINE__);
|
||||||
view->projectionPtr = projection;
|
view->projectionPtr = projection;
|
||||||
|
|
||||||
width = view->viewport.rightX - view->viewport.leftX;
|
width = view->viewport.rightX - view->viewport.leftX;
|
||||||
|
@ -315,7 +315,7 @@ s32 func_800AAA9C(View* view) {
|
||||||
aspect = (f32)width / (f32)height;
|
aspect = (f32)width / (f32)height;
|
||||||
|
|
||||||
viewing = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
viewing = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
||||||
LogUtils_CheckNullPointer("viewing", viewing, "../z_view.c", 667);
|
LogUtils_CheckNullPointer("viewing", viewing, __FILE__, __LINE__);
|
||||||
view->viewingPtr = viewing;
|
view->viewingPtr = viewing;
|
||||||
|
|
||||||
if (view->eye.x == view->lookAt.x && view->eye.y == view->lookAt.y && view->eye.z == view->lookAt.z) {
|
if (view->eye.x == view->lookAt.x && view->eye.y == view->lookAt.y && view->eye.z == view->lookAt.z) {
|
||||||
|
@ -460,7 +460,7 @@ s32 func_800AAA9C(View* view) {
|
||||||
gSPMatrix(POLY_KAL_DISP++, viewing, G_MTX_NOPUSH | G_MTX_MUL | G_MTX_PROJECTION);
|
gSPMatrix(POLY_KAL_DISP++, viewing, G_MTX_NOPUSH | G_MTX_MUL | G_MTX_PROJECTION);
|
||||||
FrameInterpolation_RecordCloseChild();
|
FrameInterpolation_RecordCloseChild();
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_view.c", 711);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -470,10 +470,10 @@ s32 func_800AB0A8(View* view) {
|
||||||
Mtx* projection;
|
Mtx* projection;
|
||||||
GraphicsContext* gfxCtx = view->gfxCtx;
|
GraphicsContext* gfxCtx = view->gfxCtx;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_view.c", 726);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
vp = Graph_Alloc(gfxCtx, sizeof(Vp));
|
vp = Graph_Alloc(gfxCtx, sizeof(Vp));
|
||||||
LogUtils_CheckNullPointer("vp", vp, "../z_view.c", 730);
|
LogUtils_CheckNullPointer("vp", vp, __FILE__, __LINE__);
|
||||||
View_ViewportToVp(vp, &view->viewport);
|
View_ViewportToVp(vp, &view->viewport);
|
||||||
view->vp = *vp;
|
view->vp = *vp;
|
||||||
|
|
||||||
|
@ -485,7 +485,7 @@ s32 func_800AB0A8(View* view) {
|
||||||
gSPViewport(OVERLAY_DISP++, vp);
|
gSPViewport(OVERLAY_DISP++, vp);
|
||||||
|
|
||||||
projection = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
projection = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
||||||
LogUtils_CheckNullPointer("projection", projection, "../z_view.c", 744);
|
LogUtils_CheckNullPointer("projection", projection, __FILE__, __LINE__);
|
||||||
view->projectionPtr = projection;
|
view->projectionPtr = projection;
|
||||||
|
|
||||||
guOrtho(projection, -(f32)gScreenWidth * 0.5f, (f32)gScreenWidth * 0.5f, -(f32)gScreenHeight * 0.5f,
|
guOrtho(projection, -(f32)gScreenWidth * 0.5f, (f32)gScreenWidth * 0.5f, -(f32)gScreenHeight * 0.5f,
|
||||||
|
@ -497,7 +497,7 @@ s32 func_800AB0A8(View* view) {
|
||||||
gSPMatrix(POLY_XLU_DISP++, projection, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
|
gSPMatrix(POLY_XLU_DISP++, projection, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
|
||||||
gSPMatrix(POLY_KAL_DISP++, projection, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
|
gSPMatrix(POLY_KAL_DISP++, projection, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_view.c", 762);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -509,10 +509,10 @@ s32 func_800AB2C4(View* view) {
|
||||||
|
|
||||||
gfxCtx = view->gfxCtx;
|
gfxCtx = view->gfxCtx;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_view.c", 777);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
vp = Graph_Alloc(gfxCtx, sizeof(Vp));
|
vp = Graph_Alloc(gfxCtx, sizeof(Vp));
|
||||||
LogUtils_CheckNullPointer("vp", vp, "../z_view.c", 781);
|
LogUtils_CheckNullPointer("vp", vp, __FILE__, __LINE__);
|
||||||
View_ViewportToVp(vp, &view->viewport);
|
View_ViewportToVp(vp, &view->viewport);
|
||||||
view->vp = *vp;
|
view->vp = *vp;
|
||||||
|
|
||||||
|
@ -522,7 +522,7 @@ s32 func_800AB2C4(View* view) {
|
||||||
gSPViewport(OVERLAY_DISP++, vp);
|
gSPViewport(OVERLAY_DISP++, vp);
|
||||||
|
|
||||||
projection = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
projection = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
||||||
LogUtils_CheckNullPointer("projection", projection, "../z_view.c", 791);
|
LogUtils_CheckNullPointer("projection", projection, __FILE__, __LINE__);
|
||||||
view->projectionPtr = projection;
|
view->projectionPtr = projection;
|
||||||
|
|
||||||
guOrtho(projection, -(f32)gScreenWidth * 0.5f, (f32)gScreenWidth * 0.5f, -(f32)gScreenHeight * 0.5f,
|
guOrtho(projection, -(f32)gScreenWidth * 0.5f, (f32)gScreenWidth * 0.5f, -(f32)gScreenHeight * 0.5f,
|
||||||
|
@ -532,7 +532,7 @@ s32 func_800AB2C4(View* view) {
|
||||||
|
|
||||||
gSPMatrix(OVERLAY_DISP++, projection, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
|
gSPMatrix(OVERLAY_DISP++, projection, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_view.c", 801);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -547,10 +547,10 @@ s32 func_800AB560(View* view) {
|
||||||
Mtx* viewing;
|
Mtx* viewing;
|
||||||
GraphicsContext* gfxCtx = view->gfxCtx;
|
GraphicsContext* gfxCtx = view->gfxCtx;
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_view.c", 816);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
vp = Graph_Alloc(gfxCtx, sizeof(Vp));
|
vp = Graph_Alloc(gfxCtx, sizeof(Vp));
|
||||||
LogUtils_CheckNullPointer("vp", vp, "../z_view.c", 821);
|
LogUtils_CheckNullPointer("vp", vp, __FILE__, __LINE__);
|
||||||
View_ViewportToVp(vp, &view->viewport);
|
View_ViewportToVp(vp, &view->viewport);
|
||||||
view->vp = *vp;
|
view->vp = *vp;
|
||||||
|
|
||||||
|
@ -560,7 +560,7 @@ s32 func_800AB560(View* view) {
|
||||||
gSPViewport(OVERLAY_DISP++, vp);
|
gSPViewport(OVERLAY_DISP++, vp);
|
||||||
|
|
||||||
projection = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
projection = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
||||||
LogUtils_CheckNullPointer("projection", projection, "../z_view.c", 833);
|
LogUtils_CheckNullPointer("projection", projection, __FILE__, __LINE__);
|
||||||
view->projectionPtr = projection;
|
view->projectionPtr = projection;
|
||||||
|
|
||||||
width = view->viewport.rightX - view->viewport.leftX;
|
width = view->viewport.rightX - view->viewport.leftX;
|
||||||
|
@ -575,7 +575,7 @@ s32 func_800AB560(View* view) {
|
||||||
gSPMatrix(OVERLAY_DISP++, projection, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
|
gSPMatrix(OVERLAY_DISP++, projection, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
|
||||||
|
|
||||||
viewing = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
viewing = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
||||||
LogUtils_CheckNullPointer("viewing", viewing, "../z_view.c", 848);
|
LogUtils_CheckNullPointer("viewing", viewing, __FILE__, __LINE__);
|
||||||
view->viewingPtr = viewing;
|
view->viewingPtr = viewing;
|
||||||
|
|
||||||
if (view->eye.x == view->lookAt.x && view->eye.y == view->lookAt.y && view->eye.z == view->lookAt.z) {
|
if (view->eye.x == view->lookAt.x && view->eye.y == view->lookAt.y && view->eye.z == view->lookAt.z) {
|
||||||
|
@ -592,19 +592,19 @@ s32 func_800AB560(View* view) {
|
||||||
|
|
||||||
gSPMatrix(OVERLAY_DISP++, viewing, G_MTX_NOPUSH | G_MTX_MUL | G_MTX_PROJECTION);
|
gSPMatrix(OVERLAY_DISP++, viewing, G_MTX_NOPUSH | G_MTX_MUL | G_MTX_PROJECTION);
|
||||||
|
|
||||||
CLOSE_DISPS(gfxCtx, "../z_view.c", 871);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 func_800AB944(View* view) {
|
s32 func_800AB944(View* view) {
|
||||||
OPEN_DISPS(view->gfxCtx, "../z_view.c", 878);
|
OPEN_DISPS(view->gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
func_800ABE74(view->eye.x, view->eye.y, view->eye.z);
|
func_800ABE74(view->eye.x, view->eye.y, view->eye.z);
|
||||||
guLookAt(view->viewingPtr, view->eye.x, view->eye.y, view->eye.z, view->lookAt.x, view->lookAt.y, view->lookAt.z,
|
guLookAt(view->viewingPtr, view->eye.x, view->eye.y, view->eye.z, view->lookAt.x, view->lookAt.y, view->lookAt.z,
|
||||||
view->up.x, view->up.y, view->up.z);
|
view->up.x, view->up.y, view->up.z);
|
||||||
|
|
||||||
CLOSE_DISPS(view->gfxCtx, "../z_view.c", 886);
|
CLOSE_DISPS(view->gfxCtx, __FILE__, __LINE__);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -622,7 +622,7 @@ s32 func_800AB9EC(View* view, s32 arg1, Gfx** gfxp) {
|
||||||
|
|
||||||
if (arg1 & 2) {
|
if (arg1 & 2) {
|
||||||
vp = Graph_Alloc(gfxCtx, sizeof(Vp));
|
vp = Graph_Alloc(gfxCtx, sizeof(Vp));
|
||||||
LogUtils_CheckNullPointer("vp", vp, "../z_view.c", 910);
|
LogUtils_CheckNullPointer("vp", vp, __FILE__, __LINE__);
|
||||||
View_ViewportToVp(vp, &view->viewport);
|
View_ViewportToVp(vp, &view->viewport);
|
||||||
|
|
||||||
view->vp = *vp;
|
view->vp = *vp;
|
||||||
|
@ -635,7 +635,7 @@ s32 func_800AB9EC(View* view, s32 arg1, Gfx** gfxp) {
|
||||||
|
|
||||||
if (arg1 & 8) {
|
if (arg1 & 8) {
|
||||||
projection = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
projection = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
||||||
LogUtils_CheckNullPointer("projection", projection, "../z_view.c", 921);
|
LogUtils_CheckNullPointer("projection", projection, __FILE__, __LINE__);
|
||||||
view->projectionPtr = projection;
|
view->projectionPtr = projection;
|
||||||
|
|
||||||
guOrtho(projection, -(f32)gScreenWidth * 0.5f, (f32)gScreenWidth * 0.5f, -(f32)gScreenHeight * 0.5f,
|
guOrtho(projection, -(f32)gScreenWidth * 0.5f, (f32)gScreenWidth * 0.5f, -(f32)gScreenHeight * 0.5f,
|
||||||
|
@ -646,7 +646,7 @@ s32 func_800AB9EC(View* view, s32 arg1, Gfx** gfxp) {
|
||||||
gSPMatrix(gfx++, projection, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
|
gSPMatrix(gfx++, projection, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
|
||||||
} else if (arg1 & 6) {
|
} else if (arg1 & 6) {
|
||||||
projection = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
projection = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
||||||
LogUtils_CheckNullPointer("projection", projection, "../z_view.c", 932);
|
LogUtils_CheckNullPointer("projection", projection, __FILE__, __LINE__);
|
||||||
view->projectionPtr = projection;
|
view->projectionPtr = projection;
|
||||||
|
|
||||||
width = view->viewport.rightX - view->viewport.leftX;
|
width = view->viewport.rightX - view->viewport.leftX;
|
||||||
|
@ -663,7 +663,7 @@ s32 func_800AB9EC(View* view, s32 arg1, Gfx** gfxp) {
|
||||||
|
|
||||||
if (arg1 & 1) {
|
if (arg1 & 1) {
|
||||||
viewing = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
viewing = Graph_Alloc(gfxCtx, sizeof(Mtx));
|
||||||
LogUtils_CheckNullPointer("viewing", viewing, "../z_view.c", 948);
|
LogUtils_CheckNullPointer("viewing", viewing, __FILE__, __LINE__);
|
||||||
view->viewingPtr = viewing;
|
view->viewingPtr = viewing;
|
||||||
|
|
||||||
func_800ABE74(view->eye.x, view->eye.y, view->eye.z);
|
func_800ABE74(view->eye.x, view->eye.y, view->eye.z);
|
||||||
|
|
|
@ -1,25 +1,25 @@
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
|
||||||
void ViMode_LogPrint(OSViMode* osViMode) {
|
void ViMode_LogPrint(OSViMode* osViMode) {
|
||||||
LOG_ADDRESS("osvimodep", osViMode, "../z_vimode.c", 87);
|
LOG_ADDRESS("osvimodep", osViMode, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->comRegs.ctrl", osViMode->comRegs.ctrl, "../z_vimode.c", 88);
|
LOG_ADDRESS("osvimodep->comRegs.ctrl", osViMode->comRegs.ctrl, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->comRegs.width", osViMode->comRegs.width, "../z_vimode.c", 89);
|
LOG_ADDRESS("osvimodep->comRegs.width", osViMode->comRegs.width, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->comRegs.burst", osViMode->comRegs.burst, "../z_vimode.c", 90);
|
LOG_ADDRESS("osvimodep->comRegs.burst", osViMode->comRegs.burst, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->comRegs.vSync", osViMode->comRegs.vSync, "../z_vimode.c", 91);
|
LOG_ADDRESS("osvimodep->comRegs.vSync", osViMode->comRegs.vSync, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->comRegs.hSync", osViMode->comRegs.hSync, "../z_vimode.c", 92);
|
LOG_ADDRESS("osvimodep->comRegs.hSync", osViMode->comRegs.hSync, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->comRegs.leap", osViMode->comRegs.leap, "../z_vimode.c", 93);
|
LOG_ADDRESS("osvimodep->comRegs.leap", osViMode->comRegs.leap, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->comRegs.hStart", osViMode->comRegs.hStart, "../z_vimode.c", 94);
|
LOG_ADDRESS("osvimodep->comRegs.hStart", osViMode->comRegs.hStart, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->comRegs.xScale", osViMode->comRegs.xScale, "../z_vimode.c", 95);
|
LOG_ADDRESS("osvimodep->comRegs.xScale", osViMode->comRegs.xScale, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->fldRegs[0].vStart", osViMode->fldRegs[0].vStart, "../z_vimode.c", 96);
|
LOG_ADDRESS("osvimodep->fldRegs[0].vStart", osViMode->fldRegs[0].vStart, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->fldRegs[0].vBurst", osViMode->fldRegs[0].vBurst, "../z_vimode.c", 97);
|
LOG_ADDRESS("osvimodep->fldRegs[0].vBurst", osViMode->fldRegs[0].vBurst, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->fldRegs[0].origin", osViMode->fldRegs[0].origin, "../z_vimode.c", 98);
|
LOG_ADDRESS("osvimodep->fldRegs[0].origin", osViMode->fldRegs[0].origin, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->fldRegs[0].yScale", osViMode->fldRegs[0].yScale, "../z_vimode.c", 99);
|
LOG_ADDRESS("osvimodep->fldRegs[0].yScale", osViMode->fldRegs[0].yScale, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->fldRegs[0].vIntr", osViMode->fldRegs[0].vIntr, "../z_vimode.c", 100);
|
LOG_ADDRESS("osvimodep->fldRegs[0].vIntr", osViMode->fldRegs[0].vIntr, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->fldRegs[1].vStart", osViMode->fldRegs[1].vStart, "../z_vimode.c", 101);
|
LOG_ADDRESS("osvimodep->fldRegs[1].vStart", osViMode->fldRegs[1].vStart, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->fldRegs[1].vBurst", osViMode->fldRegs[1].vBurst, "../z_vimode.c", 102);
|
LOG_ADDRESS("osvimodep->fldRegs[1].vBurst", osViMode->fldRegs[1].vBurst, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->fldRegs[1].origin", osViMode->fldRegs[1].origin, "../z_vimode.c", 103);
|
LOG_ADDRESS("osvimodep->fldRegs[1].origin", osViMode->fldRegs[1].origin, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->fldRegs[1].yScale", osViMode->fldRegs[1].yScale, "../z_vimode.c", 104);
|
LOG_ADDRESS("osvimodep->fldRegs[1].yScale", osViMode->fldRegs[1].yScale, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("osvimodep->fldRegs[1].vIntr", osViMode->fldRegs[1].vIntr, "../z_vimode.c", 105);
|
LOG_ADDRESS("osvimodep->fldRegs[1].vIntr", osViMode->fldRegs[1].vIntr, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// This function configures the custom VI mode (`viMode.customViMode`) based on the other flags in `viMode`.
|
// This function configures the custom VI mode (`viMode.customViMode`) based on the other flags in `viMode`.
|
||||||
|
|
|
@ -23,7 +23,7 @@ void VisMono_Init(VisMono* this) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void VisMono_Destroy(VisMono* this) {
|
void VisMono_Destroy(VisMono* this) {
|
||||||
SystemArena_FreeDebug(this->monoDl, "../z_vismono.c", 137);
|
SystemArena_FreeDebug(this->monoDl, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VisMono_UpdateTexture(VisMono* this, u16* tex) {
|
void VisMono_UpdateTexture(VisMono* this, u16* tex) {
|
||||||
|
@ -96,12 +96,12 @@ void VisMono_Draw(VisMono* this, Gfx** gfxp) {
|
||||||
glistpEnd = VisMono_DrawTexture(this, monoDL);
|
glistpEnd = VisMono_DrawTexture(this, monoDL);
|
||||||
|
|
||||||
if (!(glistpEnd <= monoDL + DLSIZE)) {
|
if (!(glistpEnd <= monoDL + DLSIZE)) {
|
||||||
LOG_ADDRESS("glistp_end", glistpEnd, "../z_vismono.c", 257);
|
LOG_ADDRESS("glistp_end", glistpEnd, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("mono_dl", monoDL, "../z_vismono.c", 258);
|
LOG_ADDRESS("mono_dl", monoDL, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("mono_dl + (1+3+1+1+80*(7+2+2+3)+1)", monoDL + DLSIZE, "../z_vismono.c", 259);
|
LOG_ADDRESS("mono_dl + (1+3+1+1+80*(7+2+2+3)+1)", monoDL + DLSIZE, __FILE__, __LINE__);
|
||||||
LOG_ADDRESS("(1+3+1+1+80*(7+2+2+3)+1)", DLSIZE, "../z_vismono.c", 260);
|
LOG_ADDRESS("(1+3+1+1+80*(7+2+2+3)+1)", DLSIZE, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
ASSERT(glistpEnd <= monoDL + DLSIZE, "glistp_end <= mono_dl + DLSIZE", "../z_vismono.c", 262);
|
ASSERT(glistpEnd <= monoDL + DLSIZE, "glistp_end <= mono_dl + DLSIZE", __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
gDPPipeSync(gfx++);
|
gDPPipeSync(gfx++);
|
||||||
|
@ -124,13 +124,13 @@ void VisMono_DrawOld(VisMono* this) {
|
||||||
Gfx* glistpEnd;
|
Gfx* glistpEnd;
|
||||||
|
|
||||||
if (!this->tlut) {
|
if (!this->tlut) {
|
||||||
this->tlut = SystemArena_MallocDebug(256 * sizeof(u16), "../z_vismono.c", 283);
|
this->tlut = SystemArena_MallocDebug(256 * sizeof(u16), __FILE__, __LINE__);
|
||||||
VisMono_UpdateTexture(this, this->tlut);
|
VisMono_UpdateTexture(this, this->tlut);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this->monoDl) {
|
if (!this->monoDl) {
|
||||||
this->monoDl = SystemArena_MallocDebug(DLSIZE * sizeof(Gfx), "../z_vismono.c", 289);
|
this->monoDl = SystemArena_MallocDebug(DLSIZE * sizeof(Gfx), __FILE__, __LINE__);
|
||||||
glistpEnd = VisMono_DrawTexture(this, this->monoDl);
|
glistpEnd = VisMono_DrawTexture(this, this->monoDl);
|
||||||
ASSERT(glistpEnd <= this->monoDl + DLSIZE, "glistp_end <= this->mono_dl + DLSIZE", "../z_vismono.c", 292);
|
ASSERT(glistpEnd <= this->monoDl + DLSIZE, "glistp_end <= this->mono_dl + DLSIZE", __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -960,25 +960,25 @@ void Skybox_Init(GameState* state, SkyboxContext* skyboxCtx, s16 skyboxId) {
|
||||||
osSyncPrintf(VT_FGCOL(GREEN));
|
osSyncPrintf(VT_FGCOL(GREEN));
|
||||||
|
|
||||||
if (skyboxCtx->unk_140 != 0) {
|
if (skyboxCtx->unk_140 != 0) {
|
||||||
skyboxCtx->dListBuf = GameState_Alloc(state, 8 * 150 * sizeof(Gfx), "../z_vr_box.c", 1636);
|
skyboxCtx->dListBuf = GameState_Alloc(state, 8 * 150 * sizeof(Gfx), __FILE__, __LINE__);
|
||||||
ASSERT(skyboxCtx->dListBuf != NULL, "vr_box->dpList != NULL", "../z_vr_box.c", 1637);
|
ASSERT(skyboxCtx->dListBuf != NULL, "vr_box->dpList != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
skyboxCtx->roomVtx = GameState_Alloc(state, 256 * sizeof(Vtx), "../z_vr_box.c", 1639);
|
skyboxCtx->roomVtx = GameState_Alloc(state, 256 * sizeof(Vtx), __FILE__, __LINE__);
|
||||||
ASSERT(skyboxCtx->roomVtx != NULL, "vr_box->roomVtx != NULL", "../z_vr_box.c", 1640);
|
ASSERT(skyboxCtx->roomVtx != NULL, "vr_box->roomVtx != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
func_800AEFC8(skyboxCtx, skyboxId);
|
func_800AEFC8(skyboxCtx, skyboxId);
|
||||||
} else {
|
} else {
|
||||||
skyboxCtx->dListBuf = GameState_Alloc(state, 12 * 150 * sizeof(Gfx), "../z_vr_box.c", 1643);
|
skyboxCtx->dListBuf = GameState_Alloc(state, 12 * 150 * sizeof(Gfx), __FILE__, __LINE__);
|
||||||
ASSERT(skyboxCtx->dListBuf != NULL, "vr_box->dpList != NULL", "../z_vr_box.c", 1644);
|
ASSERT(skyboxCtx->dListBuf != NULL, "vr_box->dpList != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
if (skyboxId == SKYBOX_CUTSCENE_MAP) {
|
if (skyboxId == SKYBOX_CUTSCENE_MAP) {
|
||||||
skyboxCtx->roomVtx = GameState_Alloc(state, 192 * sizeof(Vtx), "../z_vr_box.c", 1648);
|
skyboxCtx->roomVtx = GameState_Alloc(state, 192 * sizeof(Vtx), __FILE__, __LINE__);
|
||||||
ASSERT(skyboxCtx->roomVtx != NULL, "vr_box->roomVtx != NULL", "../z_vr_box.c", 1649);
|
ASSERT(skyboxCtx->roomVtx != NULL, "vr_box->roomVtx != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
func_800AF178(skyboxCtx, 6);
|
func_800AF178(skyboxCtx, 6);
|
||||||
} else {
|
} else {
|
||||||
skyboxCtx->roomVtx = GameState_Alloc(state, 160 * sizeof(Vtx), "../z_vr_box.c", 1653);
|
skyboxCtx->roomVtx = GameState_Alloc(state, 160 * sizeof(Vtx), __FILE__, __LINE__);
|
||||||
ASSERT(skyboxCtx->roomVtx != NULL, "vr_box->roomVtx != NULL", "../z_vr_box.c", 1654);
|
ASSERT(skyboxCtx->roomVtx != NULL, "vr_box->roomVtx != NULL", __FILE__, __LINE__);
|
||||||
|
|
||||||
func_800AF178(skyboxCtx, 5);
|
func_800AF178(skyboxCtx, 5);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,11 +10,11 @@ Mtx* SkyboxDraw_UpdateMatrix(SkyboxContext* skyboxCtx, f32 x, f32 y, f32 z) {
|
||||||
Matrix_RotateX(skyboxCtx->rot.x, MTXMODE_APPLY);
|
Matrix_RotateX(skyboxCtx->rot.x, MTXMODE_APPLY);
|
||||||
Matrix_RotateY(skyboxCtx->rot.y, MTXMODE_APPLY);
|
Matrix_RotateY(skyboxCtx->rot.y, MTXMODE_APPLY);
|
||||||
Matrix_RotateZ(skyboxCtx->rot.z, MTXMODE_APPLY);
|
Matrix_RotateZ(skyboxCtx->rot.z, MTXMODE_APPLY);
|
||||||
return Matrix_ToMtx(sSkyboxDrawMatrix, "../z_vr_box_draw.c", 42);
|
return Matrix_ToMtx(sSkyboxDrawMatrix, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SkyboxDraw_Draw(SkyboxContext* skyboxCtx, GraphicsContext* gfxCtx, s16 skyboxId, s16 blend, f32 x, f32 y, f32 z) {
|
void SkyboxDraw_Draw(SkyboxContext* skyboxCtx, GraphicsContext* gfxCtx, s16 skyboxId, s16 blend, f32 x, f32 y, f32 z) {
|
||||||
OPEN_DISPS(gfxCtx, "../z_vr_box_draw.c", 52);
|
OPEN_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
FrameInterpolation_RecordOpenChild(NULL, FrameInterpolation_GetCameraEpoch());
|
FrameInterpolation_RecordOpenChild(NULL, FrameInterpolation_GetCameraEpoch());
|
||||||
|
|
||||||
func_800945A0(gfxCtx);
|
func_800945A0(gfxCtx);
|
||||||
|
@ -35,7 +35,7 @@ void SkyboxDraw_Draw(SkyboxContext* skyboxCtx, GraphicsContext* gfxCtx, s16 skyb
|
||||||
Matrix_RotateX(skyboxCtx->rot.x, MTXMODE_APPLY);
|
Matrix_RotateX(skyboxCtx->rot.x, MTXMODE_APPLY);
|
||||||
Matrix_RotateY(skyboxCtx->rot.y, MTXMODE_APPLY);
|
Matrix_RotateY(skyboxCtx->rot.y, MTXMODE_APPLY);
|
||||||
Matrix_RotateZ(skyboxCtx->rot.z, MTXMODE_APPLY);
|
Matrix_RotateZ(skyboxCtx->rot.z, MTXMODE_APPLY);
|
||||||
Matrix_ToMtx(sSkyboxDrawMatrix, "../z_vr_box_draw.c", 76);
|
Matrix_ToMtx(sSkyboxDrawMatrix, __FILE__, __LINE__);
|
||||||
gSPMatrix(POLY_OPA_DISP++, sSkyboxDrawMatrix, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
gSPMatrix(POLY_OPA_DISP++, sSkyboxDrawMatrix, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
|
|
||||||
gDPSetColorDither(POLY_OPA_DISP++, G_CD_MAGICSQ);
|
gDPSetColorDither(POLY_OPA_DISP++, G_CD_MAGICSQ);
|
||||||
|
@ -89,7 +89,7 @@ void SkyboxDraw_Draw(SkyboxContext* skyboxCtx, GraphicsContext* gfxCtx, s16 skyb
|
||||||
//gsSPShaderTest2(POLY_OPA_DISP++);
|
//gsSPShaderTest2(POLY_OPA_DISP++);
|
||||||
|
|
||||||
FrameInterpolation_RecordCloseChild();
|
FrameInterpolation_RecordCloseChild();
|
||||||
CLOSE_DISPS(gfxCtx, "../z_vr_box_draw.c", 125);
|
CLOSE_DISPS(gfxCtx, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SkyboxDraw_Update(SkyboxContext* skyboxCtx) {
|
void SkyboxDraw_Update(SkyboxContext* skyboxCtx) {
|
||||||
|
|
|
@ -99,7 +99,7 @@ void BgBdanSwitch_InitDynaPoly(BgBdanSwitch* this, GlobalContext* globalCtx, Col
|
||||||
CollisionHeader_GetVirtual(collision, &colHeader);
|
CollisionHeader_GetVirtual(collision, &colHeader);
|
||||||
this->dyna.bgId = DynaPoly_SetBgActor(globalCtx, &globalCtx->colCtx.dyna, &this->dyna.actor, colHeader);
|
this->dyna.bgId = DynaPoly_SetBgActor(globalCtx, &globalCtx->colCtx.dyna, &this->dyna.actor, colHeader);
|
||||||
if (this->dyna.bgId == BG_ACTOR_MAX) {
|
if (this->dyna.bgId == BG_ACTOR_MAX) {
|
||||||
osSyncPrintf("Warning : move BG 登録失敗(%s %d)(name %d)(arg_data 0x%04x)\n", "../z_bg_bdan_switch.c", 325,
|
osSyncPrintf("Warning : move BG 登録失敗(%s %d)(name %d)(arg_data 0x%04x)\n", __FILE__, __LINE__,
|
||||||
this->dyna.actor.id, this->dyna.actor.params);
|
this->dyna.actor.id, this->dyna.actor.params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -193,8 +193,8 @@ void BgBdanSwitch_Init(Actor* thisx, GlobalContext* globalCtx) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
osSyncPrintf("不正な ARG_DATA(arg_data 0x%04x)(%s %d)\n", this->dyna.actor.params, "../z_bg_bdan_switch.c",
|
osSyncPrintf("不正な ARG_DATA(arg_data 0x%04x)(%s %d)\n", this->dyna.actor.params, __FILE__,
|
||||||
454);
|
__LINE__);
|
||||||
Actor_Kill(&this->dyna.actor);
|
Actor_Kill(&this->dyna.actor);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,7 +93,7 @@ void BgBombwall_InitDynapoly(BgBombwall* this, GlobalContext* globalCtx) {
|
||||||
|
|
||||||
if (this->dyna.bgId == BG_ACTOR_MAX) {
|
if (this->dyna.bgId == BG_ACTOR_MAX) {
|
||||||
// "Warning : move BG login failed"
|
// "Warning : move BG login failed"
|
||||||
osSyncPrintf("Warning : move BG 登録失敗(%s %d)(arg_data 0x%04x)\n", "../z_bg_bombwall.c", 243,
|
osSyncPrintf("Warning : move BG 登録失敗(%s %d)(arg_data 0x%04x)\n", __FILE__, __LINE__,
|
||||||
this->dyna.actor.params);
|
this->dyna.actor.params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,8 +63,8 @@ void BgGndIceblock_Init(Actor* thisx, GlobalContext* globalCtx) {
|
||||||
this->dyna.actor.params = 1;
|
this->dyna.actor.params = 1;
|
||||||
sBlockPositions[1] = 14;
|
sBlockPositions[1] = 14;
|
||||||
} else {
|
} else {
|
||||||
LOG_FLOAT("thisx->world.position.x", this->dyna.actor.world.pos.x, "../z_bg_gnd_iceblock.c", 138);
|
LOG_FLOAT("thisx->world.position.x", this->dyna.actor.world.pos.x, __FILE__, __LINE__);
|
||||||
ASSERT(0, "0", "../z_bg_gnd_iceblock.c", 139);
|
ASSERT(0, "0", __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ void BgJyaKanaami_InitDynaPoly(BgJyaKanaami* this, GlobalContext* globalCtx, Col
|
||||||
CollisionHeader_GetVirtual(collision, &colHeader);
|
CollisionHeader_GetVirtual(collision, &colHeader);
|
||||||
this->dyna.bgId = DynaPoly_SetBgActor(globalCtx, &globalCtx->colCtx.dyna, &this->dyna.actor, colHeader);
|
this->dyna.bgId = DynaPoly_SetBgActor(globalCtx, &globalCtx->colCtx.dyna, &this->dyna.actor, colHeader);
|
||||||
if (this->dyna.bgId == BG_ACTOR_MAX) {
|
if (this->dyna.bgId == BG_ACTOR_MAX) {
|
||||||
osSyncPrintf("Warning : move BG 登録失敗(%s %d)(name %d)(arg_data 0x%04x)\n", "../z_bg_jya_kanaami.c", 145,
|
osSyncPrintf("Warning : move BG 登録失敗(%s %d)(name %d)(arg_data 0x%04x)\n", __FILE__, __LINE__,
|
||||||
this->dyna.actor.id, this->dyna.actor.params);
|
this->dyna.actor.id, this->dyna.actor.params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2460,23 +2460,23 @@ s32 func_80B5944C(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3f* p
|
||||||
Matrix_RotateZYX(rot->x, rot->y, rot->z, MTXMODE_APPLY);
|
Matrix_RotateZYX(rot->x, rot->y, rot->z, MTXMODE_APPLY);
|
||||||
Matrix_Push();
|
Matrix_Push();
|
||||||
Matrix_Translate(174.0f, -317.0f, 0.0f, MTXMODE_APPLY);
|
Matrix_Translate(174.0f, -317.0f, 0.0f, MTXMODE_APPLY);
|
||||||
Matrix_ToMtx(&mtx[0], "../z_en_zl3_inEscape.c", 2471);
|
Matrix_ToMtx(&mtx[0], __FILE__, __LINE__);
|
||||||
Matrix_Translate(-410.0f, -184.0f, 0.0f, MTXMODE_APPLY);
|
Matrix_Translate(-410.0f, -184.0f, 0.0f, MTXMODE_APPLY);
|
||||||
Matrix_ToMtx(&mtx[1], "../z_en_zl3_inEscape.c", 2474);
|
Matrix_ToMtx(&mtx[1], __FILE__, __LINE__);
|
||||||
Matrix_Translate(-1019.0f, -26.0f, 0.0f, MTXMODE_APPLY);
|
Matrix_Translate(-1019.0f, -26.0f, 0.0f, MTXMODE_APPLY);
|
||||||
Matrix_ToMtx(&mtx[2], "../z_en_zl3_inEscape.c", 2477);
|
Matrix_ToMtx(&mtx[2], __FILE__, __LINE__);
|
||||||
Matrix_Pop();
|
Matrix_Pop();
|
||||||
Matrix_Push();
|
Matrix_Push();
|
||||||
Matrix_Translate(40.0f, 264.0f, 386.0f, MTXMODE_APPLY);
|
Matrix_Translate(40.0f, 264.0f, 386.0f, MTXMODE_APPLY);
|
||||||
Matrix_ToMtx(&mtx[3], "../z_en_zl3_inEscape.c", 2483);
|
Matrix_ToMtx(&mtx[3], __FILE__, __LINE__);
|
||||||
Matrix_Translate(-446.0f, -52.0f, 84.0f, MTXMODE_APPLY);
|
Matrix_Translate(-446.0f, -52.0f, 84.0f, MTXMODE_APPLY);
|
||||||
Matrix_ToMtx(&mtx[4], "../z_en_zl3_inEscape.c", 2486);
|
Matrix_ToMtx(&mtx[4], __FILE__, __LINE__);
|
||||||
Matrix_Pop();
|
Matrix_Pop();
|
||||||
Matrix_Push();
|
Matrix_Push();
|
||||||
Matrix_Translate(40.0f, 264.0f, -386.0f, MTXMODE_APPLY);
|
Matrix_Translate(40.0f, 264.0f, -386.0f, MTXMODE_APPLY);
|
||||||
Matrix_ToMtx(&mtx[5], "../z_en_zl3_inEscape.c", 2492);
|
Matrix_ToMtx(&mtx[5], __FILE__, __LINE__);
|
||||||
Matrix_Translate(-446.0f, -52.0f, -84.0f, MTXMODE_APPLY);
|
Matrix_Translate(-446.0f, -52.0f, -84.0f, MTXMODE_APPLY);
|
||||||
Matrix_ToMtx(&mtx[6], "../z_en_zl3_inEscape.c", 2495);
|
Matrix_ToMtx(&mtx[6], __FILE__, __LINE__);
|
||||||
Matrix_Pop();
|
Matrix_Pop();
|
||||||
Matrix_Pop();
|
Matrix_Pop();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue