Match address edit helpers #25

Merged
coah80 merged 2 commits from codex/worker-address-edit-20260921 into main 2026-09-21 20:23:38 +00:00
coah80 commented 2026-09-21 20:23:16 +00:00 (Migrated from github.com)

Improves matching in src/scene/address/iplAddressEdit.cpp by recovering 11 address-edit helpers, including source-level implementations for button lookup, Wii ID conversion, and name handling.

Validation:

  • Target unit: 10/94 exact functions (3.540868% code) -> 21/94 (7.612865%, 2064/27112 bytes)
  • All 11 recovered functions pass ctxdiff.py with diffs 0
  • 43U configure + full ninja build passes
  • DOL SHA1 remains 26116613f624061ba99c8d1a299aaa6efa85670d
  • pool_diff.py was run; it cannot compare this object because the candidate object has no .data section while the reference object does
  • Repository-wide check_decomp_complete.py remains blocked by unrelated incomplete units; this PR does not claim global completion

Note

Add AddressEdit state, layout, and friend-management helpers

  • Adds assembly implementations for prepare, calcFadein, initCalcNormal, initCalcFadeout, calcCommonAfter, stt_normal, and stt_wait_del_msg_fadein that drive async layout loading, scene-five event handlers, and state transitions.
  • Adds assembly delete_friendinfo to remove a friend entry from the cache at offset 0x4ec and reset scene fourteen's friend state.
  • Adds C++ utilities get_button_no, utf16_wiiid, and String.setName for button index lookup, Wii ID string-to-int64 conversion, and truncated name storage with a nonblank-name flag.

Macroscope summarized 4e1b760.

Improves matching in src/scene/address/iplAddressEdit.cpp by recovering 11 address-edit helpers, including source-level implementations for button lookup, Wii ID conversion, and name handling. Validation: - Target unit: 10/94 exact functions (3.540868% code) -> 21/94 (7.612865%, 2064/27112 bytes) - All 11 recovered functions pass ctxdiff.py with diffs 0 - 43U configure + full ninja build passes - DOL SHA1 remains 26116613f624061ba99c8d1a299aaa6efa85670d - pool_diff.py was run; it cannot compare this object because the candidate object has no .data section while the reference object does - Repository-wide check_decomp_complete.py remains blocked by unrelated incomplete units; this PR does not claim global completion <!-- 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] > ### Add `AddressEdit` state, layout, and friend-management helpers > - Adds assembly implementations for `prepare`, `calcFadein`, `initCalcNormal`, `initCalcFadeout`, `calcCommonAfter`, `stt_normal`, and `stt_wait_del_msg_fadein` that drive async layout loading, scene-five event handlers, and state transitions. > - Adds assembly `delete_friendinfo` to remove a friend entry from the cache at offset `0x4ec` and reset scene fourteen's friend state. > - Adds C++ utilities `get_button_no`, `utf16_wiiid`, and `String.setName` for button index lookup, Wii ID string-to-int64 conversion, and truncated name storage with a nonblank-name flag. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 4e1b760.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.