Match Address button helpers #45

Merged
coah80 merged 2 commits from codex/address-button-helpers-20260921 into main 2026-09-21 22:52:16 +00:00
coah80 commented 2026-09-21 22:52:06 +00:00 (Migrated from github.com)

Summary

  • match Address::get_button_no
  • match Address::get_button_space_no
  • restore the complete Address string pool needed by the functions

Validation

  • exact code: 1,388/23,988 bytes
  • exact functions: 29/101
  • both new functions: 116/116 bytes, zero context diffs
  • pool diff: identical, 81 strings
  • full 43U build passed after integrating PR #44
  • DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d

Note

Add get_button_no and get_button_space_no address scene lookup helpers

  • Adds exported C-linkage name tables, string pools, and a 26-entry function-pointer dispatch table for the address layout in iplAddress.cpp
  • Adds get_button_no, which maps a button pane name to index 0-4 or -1 if no match
  • Adds get_button_space_no, which maps a button-space pane name to index 0-3 or -1 if no match
  • Behavioral Change: all 26 dispatch-table entries invoke the same layout-object calculation routine rather than per-entry logic

Macroscope summarized 88e8008.

## Summary - match Address::get_button_no - match Address::get_button_space_no - restore the complete Address string pool needed by the functions ## Validation - exact code: 1,388/23,988 bytes - exact functions: 29/101 - both new functions: 116/116 bytes, zero context diffs - pool diff: identical, 81 strings - full 43U build passed after integrating PR #44 - DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d <!-- 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 `get_button_no` and `get_button_space_no` address scene lookup helpers > - Adds exported C-linkage name tables, string pools, and a 26-entry function-pointer dispatch table for the address layout in [iplAddress.cpp](https://github.com/coah80/wii-ipl/pull/45/files#diff-b3414531de53b522b97ea93a663b4425148ead606a4c0ad87ef48ba0b28864c9) > - Adds `get_button_no`, which maps a button pane name to index 0-4 or -1 if no match > - Adds `get_button_space_no`, which maps a button-space pane name to index 0-3 or -1 if no match > - Behavioral Change: all 26 dispatch-table entries invoke the same layout-object calculation routine rather than per-entry logic > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 88e8008.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.