Correct memo Manager title setter vtable relocation #715

Merged
coah80 merged 1 commits from agent/bittle/memo-title-vtable into main 2026-10-02 02:35:20 +00:00
coah80 commented 2026-10-02 02:34:41 +00:00 (Migrated from github.com)

Genuine data-reference correction (no score gain claimed)

The original MyTiManager object has an R_PPC_ADDR32 relocation at .data + 0x2C8 (original address 0x81668100) to setTitleText__Q29textinput7ManagerFPw. The source instead targets the nonexistent const-parameter spelling ...FPCw.

The implementation in tiKeyboard.cpp, and the original symbol at 0x814386C8, take wchar_t*. Extend the existing implementation-specific declaration to MYTIMANAGER_IMPLEMENTATION, so the memo Manager vtable points to that actual function. This is not an omitted/deduplicated weak vtable or an address/extent change.

Shared-header scope and verification

This does change the shared include/keyboard/tiManager.h, by two lines. Other views remain unchanged. Making the signature universal was tested and rejected because existing unrelated scene callers pass const strings; this PR does not widen into that API cleanup.

After deleting every source object and rebuilding all 43U source:

  • Audited allocated-section bytes and normalized relocations in all 1,027 source objects against freshly built main: exactly one change, the vtable relocation above
  • .data: all 944 source bytes identical to the reference prefix; 170/170 relocations now identical, previously one wrong target
  • All source .text bytes and relocations unchanged; unit remains 91/91 exact functions, 20,196/20,196 code bytes
  • String pool 7/7 identical
  • All unit report measures unchanged; no matched/linked byte gain claimed
  • Workflow/pool/jump-table tests 7/8/27 pass; diff and main/leaf worktree checks pass
  • Full all_source/progress/report/DOL build passes; SHA1 26116613f624061ba99c8d1a299aaa6efa85670d

The unit remains NonMatching/unlinked. Its reference .data has an additional 40 zero bytes, and BSS/extent attribution remains unresolved; these have not been fabricated or padded to lift the score. Reported data stays 76/1,132. This PR fixes only the demonstrably incorrect relocation.

Rebased on 137edaff. Published tree b38a6bd86180fe9cb6004d9bae59cf913d3f2b83 equals the locally tested tree. No assembly, symbol/split edits, or added padding.

Note

Add MYTIMANAGER_IMPLEMENTATION branch for Manager.setTitleText declaration

Adds a preprocessor branch in tiManager.h that declares textinput.Manager.setTitleText with a mutable wchar_t* parameter when MYTIMANAGER_IMPLEMENTATION is defined. Builds using TIMANAGER_IMPLEMENTATION already use the mutable signature; other consumers still see the const wchar_t* declaration.

Macroscope summarized 5e14312.

## Genuine data-reference correction (no score gain claimed) The original `MyTiManager` object has an `R_PPC_ADDR32` relocation at `.data + 0x2C8` (original address `0x81668100`) to `setTitleText__Q29textinput7ManagerFPw`. The source instead targets the nonexistent const-parameter spelling `...FPCw`. The implementation in `tiKeyboard.cpp`, and the original symbol at `0x814386C8`, take `wchar_t*`. Extend the existing implementation-specific declaration to `MYTIMANAGER_IMPLEMENTATION`, so the memo Manager vtable points to that actual function. This is not an omitted/deduplicated weak vtable or an address/extent change. ## Shared-header scope and verification This **does change the shared `include/keyboard/tiManager.h`**, by two lines. Other views remain unchanged. Making the signature universal was tested and rejected because existing unrelated scene callers pass const strings; this PR does not widen into that API cleanup. After deleting every source object and rebuilding all 43U source: - Audited allocated-section bytes and normalized relocations in **all 1,027 source objects** against freshly built main: **exactly one change**, the vtable relocation above - `.data`: all **944 source bytes** identical to the reference prefix; **170/170 relocations now identical**, previously one wrong target - All source `.text` bytes and relocations unchanged; unit remains **91/91 exact functions, 20,196/20,196 code bytes** - String pool **7/7 identical** - All unit report measures unchanged; **no matched/linked byte gain claimed** - Workflow/pool/jump-table tests **7/8/27 pass**; diff and main/leaf worktree checks pass - Full all_source/progress/report/DOL build passes; SHA1 **26116613f624061ba99c8d1a299aaa6efa85670d** The unit remains NonMatching/unlinked. Its reference `.data` has an additional **40 zero bytes**, and BSS/extent attribution remains unresolved; these have not been fabricated or padded to lift the score. Reported data stays **76/1,132**. This PR fixes only the demonstrably incorrect relocation. Rebased on `137edaff`. Published tree `b38a6bd86180fe9cb6004d9bae59cf913d3f2b83` equals the locally tested tree. No assembly, symbol/split edits, or added padding. <!-- 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 `MYTIMANAGER_IMPLEMENTATION` branch for `Manager.setTitleText` declaration > Adds a preprocessor branch in [tiManager.h](https://github.com/coah80/wii-ipl/pull/715/files#diff-fbd4bccd6c391ce72a849d7eb22b80f56bacdf2560e400250e553be972e58f4e) that declares `textinput.Manager.setTitleText` with a mutable `wchar_t*` parameter when `MYTIMANAGER_IMPLEMENTATION` is defined. Builds using `TIMANAGER_IMPLEMENTATION` already use the mutable signature; other consumers still see the `const wchar_t*` declaration. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 5e14312.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-02 02:35:18 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.