From bb1587520be5201cf03b810cf642933d54ddf428 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 17:10:36 -0500 Subject: [PATCH 1/2] cleanup(iplDate): name calendar date pane/string labels Matching-only renames in scene/calendar/iplDate (+ symbols.txt). --- config/43U/symbols.txt | 20 ++++++------ src/scene/calendar/iplDate.cpp | 60 +++++++++++++++++----------------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 4701db6b..fbfc1450 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -15673,11 +15673,11 @@ lbl_8164C54E = .data:0x8164C54E; // type:object size:0x18 lbl_8164C566 = .data:0x8164C566; // type:object size:0xC lbl_8164C572 = .data:0x8164C572; // type:object size:0xA __vt__Q33ipl5scene8Calendar = .data:0x8164C57C; // type:object size:0xA4 -lbl_8164C620 = .data:0x8164C620; // type:object size:0xB data:string -lbl_8164C62C = .data:0x8164C62C; // type:object size:0x14 data:4byte -lbl_8164C640 = .data:0x8164C640; // type:object size:0x12 data:string -lbl_8164C652 = .data:0x8164C652; // type:object size:0xB data:string -lbl_8164C65D = .data:0x8164C65D; // type:object size:0x13 data:string +scN_CalDay_r = .data:0x8164C620; // type:object size:0xB data:string +scDateAnimPaneNames = .data:0x8164C62C; // type:object size:0x14 data:4byte +scMyIplTopFBrlan = .data:0x8164C640; // type:object size:0x12 data:string +scN_CalDay_t = .data:0x8164C652; // type:object size:0xB data:string +scSEDateFocus = .data:0x8164C65D; // type:object size:0x13 data:string __vt__Q33ipl5scene4Date = .data:0x8164C670; // type:object size:0x18 @12712 = .data:0x8164C688; // type:object size:0xC scope:local data:string ...data.0 = .data:0x8164C688; // type:label scope:local @@ -21785,11 +21785,11 @@ scPaneName_T_Stop = .sdata:0x816967B5; // type:object size:0x7 data:string lbl_816967C0 = .sdata:0x816967C0; // type:object size:0x4 data:string lbl_816967C4 = .sdata:0x816967C4; // type:object size:0x6 data:string lbl_816967CA = .sdata:0x816967CA; // type:object size:0x7 data:string -lbl_816967D8 = .sdata:0x816967D8; // type:object size:0x6 data:string -lbl_816967DE = .sdata:0x816967DE; // type:object size:0x6 data:string -lbl_816967E4 = .sdata:0x816967E4; // type:object size:0x7 data:string -lbl_816967EB = .sdata:0x816967EB; // type:object size:0x7 data:string -lbl_816967F2 = .sdata:0x816967F2; // type:object size:0x6 data:string +scW_Cal = .sdata:0x816967D8; // type:object size:0x6 data:string +scT_Cal = .sdata:0x816967DE; // type:object size:0x6 data:string +scCal_Ac = .sdata:0x816967E4; // type:object size:0x7 data:string +scInfo_a = .sdata:0x816967EB; // type:object size:0x7 data:string +scB_Cal = .sdata:0x816967F2; // type:object size:0x6 data:string @16087 = .sdata:0x816967F8; // type:object size:0x4 scope:local data:string @16350 = .sdata:0x816967FC; // type:object size:0x7 scope:local data:string @16351 = .sdata:0x81696803; // type:object size:0x7 scope:local data:string diff --git a/src/scene/calendar/iplDate.cpp b/src/scene/calendar/iplDate.cpp index 974aa4ec..2fc3a49b 100644 --- a/src/scene/calendar/iplDate.cpp +++ b/src/scene/calendar/iplDate.cpp @@ -7,40 +7,40 @@ namespace ipl { namespace scene { - extern "C" char lbl_816967D8[]; - extern "C" char lbl_816967DE[]; - extern "C" char lbl_816967E4[]; - extern "C" char lbl_816967EB[]; - extern "C" char lbl_816967F2[]; + extern "C" char scW_Cal[]; + extern "C" char scT_Cal[]; + extern "C" char scCal_Ac[]; + extern "C" char scInfo_a[]; + extern "C" char scB_Cal[]; #pragma push #pragma section const_type ".data" - extern "C" const char lbl_8164C620[] = "N_CalDay_r"; + extern "C" const char scN_CalDay_r[] = "N_CalDay_r"; #pragma pop // clang-format off - extern "C" const char* lbl_8164C62C[Date::ANIM_PANE_MAX] = { - lbl_8164C620, - lbl_816967D8, - lbl_816967DE, - lbl_816967E4, - lbl_816967EB, + extern "C" const char* scDateAnimPaneNames[Date::ANIM_PANE_MAX] = { + scN_CalDay_r, + scW_Cal, + scT_Cal, + scCal_Ac, + scInfo_a, }; #pragma push #pragma section const_type ".data" - extern "C" const char lbl_8164C640[] = "my_IplTop_f.brlan"; - extern "C" const char lbl_8164C652[] = "N_CalDay_t"; - extern "C" const char lbl_8164C65D[] = "WIPL_SE_DATE_FOCUS"; + extern "C" const char scMyIplTopFBrlan[] = "my_IplTop_f.brlan"; + extern "C" const char scN_CalDay_t[] = "N_CalDay_t"; + extern "C" const char scSEDateFocus[] = "WIPL_SE_DATE_FOCUS"; #pragma pop #pragma push #pragma section const_type ".sdata" - extern "C" char lbl_816967D8[] = "W_Cal"; - extern "C" char lbl_816967DE[] = "T_Cal"; - extern "C" char lbl_816967E4[] = "Cal_Ac"; - extern "C" char lbl_816967EB[] = "Info_a"; - extern "C" char lbl_816967F2[] = "B_Cal"; + extern "C" char scW_Cal[] = "W_Cal"; + extern "C" char scT_Cal[] = "T_Cal"; + extern "C" char scCal_Ac[] = "Cal_Ac"; + extern "C" char scInfo_a[] = "Info_a"; + extern "C" char scB_Cal[] = "B_Cal"; #pragma pop static const Date::AnmFrame scAnmFrame[] = { @@ -73,7 +73,7 @@ namespace ipl { // Bind animations for (int i = 0; i < ANIM_PANE_MAX; i++) { - mpPaneAnims[i] = mpLayout->bind(lbl_8164C640, lbl_8164C62C[i], false); + mpPaneAnims[i] = mpLayout->bind(scMyIplTopFBrlan, scDateAnimPaneNames[i], false); } mpLayout->finishBinding(); @@ -81,7 +81,7 @@ namespace ipl { mpGui = new gui::PaneManager(this, mpLayout->getDrawInfo(), NULL, NULL); mpGui->setupScene(mpLayout); mpGui->setAllComponentTriggerTarget(false); - mpGui->setTriggerTarget(mpLayout->FindPaneByName(lbl_816967F2), true); + mpGui->setTriggerTarget(mpLayout->FindPaneByName(scB_Cal), true); // Init date mpDate = new utility::Date(); @@ -128,19 +128,19 @@ namespace ipl { } void Date::setRotate(const nw4r::math::VEC3& vec) { - mpLayout->FindPaneByName(lbl_8164C652)->SetRotate(vec); + mpLayout->FindPaneByName(scN_CalDay_t)->SetRotate(vec); } void Date::setTranslate(const nw4r::math::VEC3& vec) { - mpLayout->FindPaneByName(lbl_8164C652)->SetTranslate(vec); + mpLayout->FindPaneByName(scN_CalDay_t)->SetTranslate(vec); } void Date::setVisible(bool visible) { - mpLayout->FindPaneByName(lbl_8164C62C[0])->SetVisible(visible); + mpLayout->FindPaneByName(scDateAnimPaneNames[0])->SetVisible(visible); } bool Date::getVisible() { - return mpLayout->FindPaneByName(lbl_8164C62C[0])->IsVisible(); + return mpLayout->FindPaneByName(scDateAnimPaneNames[0])->IsVisible(); } void Date::setAttribute(int attr) { @@ -209,13 +209,13 @@ namespace ipl { } void Date::start_point_event(const char* paneName, controller::Interface* con) { - if (strcmp(paneName, lbl_816967F2) == 0) { + if (strcmp(paneName, scB_Cal) == 0) { if (unk_0x3C == 0) { static_cast(System::getScene(SCENE_CALENDAR))->onPointDate(this); onCmdRecv(1); if (getVisible()) { - snd::getSystem()->startSE(lbl_8164C65D); + snd::getSystem()->startSE(scSEDateFocus); if (con != NULL) { con->rumble(1); } @@ -226,7 +226,7 @@ namespace ipl { } void Date::start_left_event(const char* paneName) { - if (strcmp(paneName, lbl_816967F2) == 0) { + if (strcmp(paneName, scB_Cal) == 0) { if (unk_0x3C == 1) { onCmdRecv(2); } @@ -262,7 +262,7 @@ namespace ipl { numStr[index++] = 0; - nw4r::lyt::TextBox* pane = nw4r::ut::DynamicCast(mpLayout->FindPaneByName(lbl_8164C62C[2])); + nw4r::lyt::TextBox* pane = nw4r::ut::DynamicCast(mpLayout->FindPaneByName(scDateAnimPaneNames[2])); pane->SetString(numStr); } -- 2.49.1 From 7d77c095c084b193c8c56004676e6aeac87de393 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 17:10:58 -0500 Subject: [PATCH 2/2] cleanup(iplSystem): name ortho viewport float constants (#508) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lbl_81694424..38 → scOrthoLeft/Right/Bottom/Top and scWideOrthoLeft/Right. --- config/43U/symbols.txt | 12 +++++------ src/system/iplSystem.cpp | 46 ++++++++++++++++++++-------------------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 4701db6b..84c73887 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -20107,12 +20107,12 @@ gDBCommTable = .data:0x816943C8; // type:object size:0x28 lbl_81694410 = .sdata2:0x81694410; // type:object size:0x4 align:4 data:float lbl_81694418 = .sdata2:0x81694418; // type:object size:0x8 align:8 data:double lbl_81694420 = .sdata2:0x81694420; // type:object size:0x4 align:4 data:float -lbl_81694424 = .sdata2:0x81694424; // type:object size:0x4 align:4 data:float -lbl_81694428 = .sdata2:0x81694428; // type:object size:0x4 align:4 data:float -lbl_8169442C = .sdata2:0x8169442C; // type:object size:0x4 align:4 data:float -lbl_81694430 = .sdata2:0x81694430; // type:object size:0x4 align:4 data:float -lbl_81694434 = .sdata2:0x81694434; // type:object size:0x4 align:4 data:float -lbl_81694438 = .sdata2:0x81694438; // type:object size:0x4 align:4 data:float +scOrthoLeft = .sdata2:0x81694424; // type:object size:0x4 align:4 data:float +scOrthoRight = .sdata2:0x81694428; // type:object size:0x4 align:4 data:float +scOrthoBottom = .sdata2:0x8169442C; // type:object size:0x4 align:4 data:float +scOrthoTop = .sdata2:0x81694430; // type:object size:0x4 align:4 data:float +scWideOrthoLeft = .sdata2:0x81694434; // type:object size:0x4 align:4 data:float +scWideOrthoRight = .sdata2:0x81694438; // type:object size:0x4 align:4 data:float lbl_81694440 = .sdata2:0x81694440; // type:object size:0x4 align:4 data:float lbl_81694444 = .sdata2:0x81694444; // type:object size:0x4 align:4 data:float lbl_81694448 = .sdata2:0x81694448; // type:object size:0x8 align:8 data:double diff --git a/src/system/iplSystem.cpp b/src/system/iplSystem.cpp index 14be104f..ded0b5a2 100644 --- a/src/system/iplSystem.cpp +++ b/src/system/iplSystem.cpp @@ -39,12 +39,12 @@ extern "C" ipl::System::Arg smArg__Q23ipl6System; extern "C" ipl::snd::System sSystem__Q23ipl3snd; extern "C" void initOnMemory__Q33ipl3snd6SystemFPCvPQ23EGG4HeapUl(); -extern "C" const f32 lbl_81694424; -extern "C" const f32 lbl_81694428; -extern "C" const f32 lbl_8169442C; -extern "C" const f32 lbl_81694430; -extern "C" const f32 lbl_81694434; -extern "C" const f32 lbl_81694438; +extern "C" const f32 scOrthoLeft; +extern "C" const f32 scOrthoRight; +extern "C" const f32 scOrthoBottom; +extern "C" const f32 scOrthoTop; +extern "C" const f32 scWideOrthoLeft; +extern "C" const f32 scWideOrthoRight; extern "C" void* m_handle__Q23ipl11TVRCManager; extern "C" void _savegpr_27(); extern "C" void _restgpr_27(); @@ -1139,7 +1139,7 @@ namespace ipl { bl VISetBlack lwz r3, 0xb0(r28) li r0, 1 - lfd f31, lbl_81694424-0xc + lfd f31, scOrthoLeft-0xc lis r30, 0x4330 lbz r29, 0x3d(r3) lis r31, sSystem__Q23ipl3snd@ha @@ -1162,7 +1162,7 @@ namespace ipl { bl makeRawData__Q33ipl7utility11JpegDecoderFv warning_run_no_jpeg: lwz r3, 0x74(r28) - lfs f1, lbl_81694424-0x14 + lfs f1, scOrthoLeft-0x14 lwz r27, 0(r3) stw r30, 8(r1) fmr f2, f1 @@ -1170,7 +1170,7 @@ namespace ipl { fmr f5, f1 lhz r0, 6(r27) stw r3, 0xc(r1) - lfs f6, lbl_81694424-0x4 + lfs f6, scOrthoLeft-0x4 lfd f0, 8(r1) stw r0, 0x14(r1) fsubs f3, f0, f31 @@ -1362,17 +1362,17 @@ namespace ipl { } void System::getProjectionRect4x3(nw4r::ut::Rect* rect) { - rect->left = *((volatile const f32*)&lbl_81694424); - rect->right = *((volatile const f32*)&lbl_81694428); - rect->bottom = *((volatile const f32*)&lbl_8169442C); - rect->top = *((volatile const f32*)&lbl_81694430); + rect->left = *((volatile const f32*)&scOrthoLeft); + rect->right = *((volatile const f32*)&scOrthoRight); + rect->bottom = *((volatile const f32*)&scOrthoBottom); + rect->top = *((volatile const f32*)&scOrthoTop); } void System::getProjectionRect16x9(nw4r::ut::Rect* rect) { - rect->left = *((volatile const f32*)&lbl_81694434); - rect->right = *((volatile const f32*)&lbl_81694438); - rect->bottom = *((volatile const f32*)&lbl_8169442C); - rect->top = *((volatile const f32*)&lbl_81694430); + rect->left = *((volatile const f32*)&scWideOrthoLeft); + rect->right = *((volatile const f32*)&scWideOrthoRight); + rect->bottom = *((volatile const f32*)&scOrthoBottom); + rect->top = *((volatile const f32*)&scOrthoTop); } GXRenderModeObj* System::getRenderModeObj() { @@ -1516,11 +1516,11 @@ namespace ipl { #ifdef __MWERKS__ #pragma force_active on -extern "C" const f32 lbl_81694424 = -304.0f; -extern "C" const f32 lbl_81694428 = 304.0f; -extern "C" const f32 lbl_8169442C = 228.0f; -extern "C" const f32 lbl_81694430 = -228.0f; -extern "C" const f32 lbl_81694434 = -416.0f; -extern "C" const f32 lbl_81694438 = 416.0f; +extern "C" const f32 scOrthoLeft = -304.0f; +extern "C" const f32 scOrthoRight = 304.0f; +extern "C" const f32 scOrthoBottom = 228.0f; +extern "C" const f32 scOrthoTop = -228.0f; +extern "C" const f32 scWideOrthoLeft = -416.0f; +extern "C" const f32 scWideOrthoRight = 416.0f; #pragma force_active off #endif -- 2.49.1