Improve board and focus object matching #30

Merged
coah80 merged 1 commits from codex/worker-board-focus-20260921 into main 2026-09-21 21:40:17 +00:00
coah80 commented 2026-09-21 21:39:33 +00:00 (Migrated from github.com)

Summary

  • restore the source form that makes ipl::scene::BoardObject::calc byte-identical
  • expand the T_Letter type check in focus_object::init_url_proc, matching the inline layout helper

Validation

  • BoardObject::calc: 928/928 bytes, ctxdiff 0
  • layout::Object::getTextDrawRect(const char*): 140/140 bytes, ctxdiff 0
  • both translation-unit string pools identical
  • full 43U build passed
  • DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d
  • overall exact code: 59.388374% -> 59.42403% (+1068 bytes)

check_decomp_complete.py remains intentionally incomplete globally; this PR is a bounded matching improvement.

Note

Improve board object position and focus object URL pane type matching

  • Switches the board-object layout position calculation in iplBoardObject.cpp to use the get2 movement-animation accessor instead of get, and qualifies the position vector with the ipl namespace
  • Replaces the nw4r::DynamicCast call in iplFocusObject.cpp URL text-box setup with an explicit RTTI lookup, derived-type check, and static cast before assigning the text pane
  • Risk: if the RTTI check in iplFocusObject.cpp fails to match the expected pane type, the URL tag processing pane may be left unassigned

Macroscope summarized f193888.

## Summary - restore the source form that makes `ipl::scene::BoardObject::calc` byte-identical - expand the `T_Letter` type check in `focus_object::init_url_proc`, matching the inline layout helper ## Validation - `BoardObject::calc`: 928/928 bytes, `ctxdiff` 0 - `layout::Object::getTextDrawRect(const char*)`: 140/140 bytes, `ctxdiff` 0 - both translation-unit string pools identical - full 43U build passed - DOL SHA1: `26116613f624061ba99c8d1a299aaa6efa85670d` - overall exact code: `59.388374% -> 59.42403%` (`+1068` bytes) `check_decomp_complete.py` remains intentionally incomplete globally; this PR is a bounded matching improvement. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Improve board object position and focus object URL pane type matching > - Switches the board-object layout position calculation in `iplBoardObject.cpp` to use the `get2` movement-animation accessor instead of `get`, and qualifies the position vector with the `ipl` namespace > - Replaces the `nw4r::DynamicCast` call in `iplFocusObject.cpp` URL text-box setup with an explicit RTTI lookup, derived-type check, and static cast before assigning the text pane > - Risk: if the RTTI check in `iplFocusObject.cpp` fails to match the expected pane type, the URL tag processing pane may be left unassigned > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized f193888.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.