From c06d29d7e259ccec87831968273177bee7848ba1 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 17:05:52 -0500 Subject: [PATCH] cleanup(iplSystem): name ortho viewport float constants 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 eb40aab5..c4b3e6bb 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