From e0bd123312977aebd661dad0bf68924169f0c550 Mon Sep 17 00:00:00 2001 From: mracsys Date: Sat, 30 Nov 2024 13:56:59 -0500 Subject: [PATCH] Document time-specific textures for Deku Tree and Gerudo Fortress similar to other scenes (#2310) * rename time-specific scene file textures * linter fixes --- assets/xml/scenes/dungeons/ydan.xml | 4 +-- assets/xml/scenes/dungeons/ydan_mq.xml | 4 +-- assets/xml/scenes/overworld/spot12.xml | 4 +-- .../xml/scenes/overworld/spot12_pal_n64.xml | 4 +-- src/code/z_scene_table.c | 34 +++++++++++-------- 5 files changed, 27 insertions(+), 23 deletions(-) diff --git a/assets/xml/scenes/dungeons/ydan.xml b/assets/xml/scenes/dungeons/ydan.xml index 465c5f0ca8..434f40a982 100644 --- a/assets/xml/scenes/dungeons/ydan.xml +++ b/assets/xml/scenes/dungeons/ydan.xml @@ -1,8 +1,8 @@ - - + + diff --git a/assets/xml/scenes/dungeons/ydan_mq.xml b/assets/xml/scenes/dungeons/ydan_mq.xml index c0a47d6dae..f982489d35 100644 --- a/assets/xml/scenes/dungeons/ydan_mq.xml +++ b/assets/xml/scenes/dungeons/ydan_mq.xml @@ -1,8 +1,8 @@ - - + + diff --git a/assets/xml/scenes/overworld/spot12.xml b/assets/xml/scenes/overworld/spot12.xml index 77b0cfb076..9f4efd31e8 100644 --- a/assets/xml/scenes/overworld/spot12.xml +++ b/assets/xml/scenes/overworld/spot12.xml @@ -2,8 +2,8 @@ - - + + diff --git a/assets/xml/scenes/overworld/spot12_pal_n64.xml b/assets/xml/scenes/overworld/spot12_pal_n64.xml index 09c16cb7c3..c771c2e825 100644 --- a/assets/xml/scenes/overworld/spot12_pal_n64.xml +++ b/assets/xml/scenes/overworld/spot12_pal_n64.xml @@ -2,8 +2,8 @@ - - + + diff --git a/src/code/z_scene_table.c b/src/code/z_scene_table.c index 24521f3aa3..a64932f423 100644 --- a/src/code/z_scene_table.c +++ b/src/code/z_scene_table.c @@ -215,9 +215,9 @@ void Scene_DrawConfigDefault(PlayState* play) { CLOSE_DISPS(play->state.gfxCtx, "../z_scene_table.c", 4735); } -void* D_8012A2F8[] = { - gYdanTex_00BA18, - gYdanTex_00CA18, +void* sDekuTreeEntranceTextures[] = { + gDekuTreeDayEntranceTex, + gDekuTreeNightEntranceTex, }; void Scene_DrawConfigDekuTree(PlayState* play) { @@ -233,7 +233,8 @@ void Scene_DrawConfigDekuTree(PlayState* play) { gDPPipeSync(POLY_XLU_DISP++); gDPSetEnvColor(POLY_XLU_DISP++, 128, 128, 128, 128); - gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(D_8012A2F8[((void)0, gSaveContext.save.nightFlag)])); + gSPSegment(POLY_OPA_DISP++, 0x08, + SEGMENTED_TO_VIRTUAL(sDekuTreeEntranceTextures[((void)0, gSaveContext.save.nightFlag)])); CLOSE_DISPS(play->state.gfxCtx, "../z_scene_table.c", 4783); } @@ -527,7 +528,7 @@ void Scene_DrawConfigThievesHideout(PlayState* play) { CLOSE_DISPS(play->state.gfxCtx, "../z_scene_table.c", 5507); } -void* D_8012A330[] = { +void* sWaterTempleEntranceTextures[] = { gWaterTempleDayEntranceTex, gWaterTempleNightEntranceTex, }; @@ -544,9 +545,11 @@ void Scene_DrawConfigWaterTemple(PlayState* play) { gameplayFrames = play->gameplayFrames; #if !OOT_MQ - gSPSegment(POLY_XLU_DISP++, 0x06, SEGMENTED_TO_VIRTUAL(D_8012A330[((void)0, gSaveContext.save.nightFlag)])); + gSPSegment(POLY_XLU_DISP++, 0x06, + SEGMENTED_TO_VIRTUAL(sWaterTempleEntranceTextures[((void)0, gSaveContext.save.nightFlag)])); #else - gSPSegment(POLY_XLU_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(D_8012A330[((void)0, gSaveContext.save.nightFlag)])); + gSPSegment(POLY_XLU_DISP++, 0x08, + SEGMENTED_TO_VIRTUAL(sWaterTempleEntranceTextures[((void)0, gSaveContext.save.nightFlag)])); #endif if (spB0 == 1) { @@ -966,11 +969,11 @@ void Scene_DrawConfigLonLonBuildings(PlayState* play) { CLOSE_DISPS(play->state.gfxCtx, "../z_scene_table.c", 6528); } -void* sGuardHouseView2Textures[] = { +void* sGuardHouseView1Textures[] = { gGuardHouseOutSideView1DayTex, gGuardHouseOutSideView1NightTex, }; -void* sGuardHouseView1Textures[] = { +void* sGuardHouseView2Textures[] = { gGuardHouseOutSideView2DayTex, gGuardHouseOutSideView2NightTex, }; @@ -986,8 +989,8 @@ void Scene_DrawConfigMarketGuardHouse(PlayState* play) { var = gSaveContext.save.nightFlag; } - gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sGuardHouseView1Textures[var])); - gSPSegment(POLY_OPA_DISP++, 0x09, SEGMENTED_TO_VIRTUAL(sGuardHouseView2Textures[var])); + gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sGuardHouseView2Textures[var])); + gSPSegment(POLY_OPA_DISP++, 0x09, SEGMENTED_TO_VIRTUAL(sGuardHouseView1Textures[var])); gDPPipeSync(POLY_OPA_DISP++); gDPSetEnvColor(POLY_OPA_DISP++, 128, 128, 128, 128); @@ -1377,15 +1380,16 @@ void Scene_DrawConfigDesertColossus(PlayState* play) { CLOSE_DISPS(play->state.gfxCtx, "../z_scene_table.c", 7339); } -void* D_8012A380[] = { - gSpot12_009678Tex, - gSpot12_00DE78Tex, +void* sGerudoFortressWallTextures[] = { + gGerudoFortressNightWallTex, + gGerudoFortressDayWallTex, }; void Scene_DrawConfigGerudosFortress(PlayState* play) { OPEN_DISPS(play->state.gfxCtx, "../z_scene_table.c", 7363); - gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(D_8012A380[((void)0, gSaveContext.save.nightFlag)])); + gSPSegment(POLY_OPA_DISP++, 0x08, + SEGMENTED_TO_VIRTUAL(sGerudoFortressWallTextures[((void)0, gSaveContext.save.nightFlag)])); CLOSE_DISPS(play->state.gfxCtx, "../z_scene_table.c", 7371); }