decomp(inputform): recover pane lookup and animation slot flow #1002

Merged
coah80 merged 1 commits from agent/bittle/input-form-resource-flow into main 2026-10-03 00:15:58 +00:00
coah80 commented 2026-10-03 00:14:11 +00:00 (Migrated from github.com)

Source reconstruction

The first language-pane lookup now follows the target's root-pane FindPaneByName path rather than the Layout getPane virtual slot. The animation loop retains a reference to the existing files[] pointer slot, allowing its target-observed reload after resource/transform calls. Cursor geometry uses the already defined Rect::GetWidth accessor (right minus left).

Independent verification

  • LayoutByNW4R::create: 95.02809% → 96.40169%; source 352 → 356 instructions, target 356
  • Base::calcCursorPos: 91.622696% → 93.05215%; 326/326 instructions
  • Unit fuzzy: 99.578094% → 99.6535%; 218/221 objdiff-exact symbols, exact code 46980/50656 and data 3772/3772 unchanged
  • Parent independently compared all 218 previously exact symbol instruction streams against rebuilt baseline: all unchanged. This preserves existing relocation-alias distinctions; it does not claim raw ctxdiff zero for every alias-normalized symbol
  • All 1027 source objects compared: only tiInputForm .text changes; all allocated non-text bytes and normalized relocations unchanged; no report regressions
  • Parent reran extracted-production cursor bodies: 159,320 terminating cases agree in result, helper traces and wrap counters. Another 680 synthetic states hit the same model limit with identical traces; no termination claim for those states
  • Tests use deterministic font/scale/wrap stubs, not Wii UI execution. Layout creation is checked against target call/load evidence and actual 43U compilation
  • Pool 20/20 identical; literal audit 20 arguments across 221 functions with no errors/candidates
  • Full 43U all_source/report/progress/DOL and worktree/diff checks pass

Partial reconstruction only. No header, source-data, metadata, linking, assembly or new helper change.

Parent baseline: 14a8b23adb
Tested tree: 9ad18a2a95
DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d

User priority is decompilation, then matching, then linking. No merge performed or requested by this author.

Note

Fix pane lookup and animation slot flow in LayoutByNW4R::create

  • LayoutByNW4R::create now finds the initial language text pane by searching recursively from the layout root instead of the previous getPane path, with the fallback lookup unchanged.
  • The animation-file local is now a const reference to the selected files[] slot, so later uses keep pointing at that slot after resource and animation-transform calls.
  • Base::calcCursorPos uses Rect::GetWidth instead of manual right-minus-left math for glyph widths, form widths, and cursor advancement across the normal, word-wrap, and width-wrap paths.
  • Adds a reconstruction log in allhands-input-form.attempts.md covering retained changes, rejected alternatives, and validation limits.

Macroscope summarized 75b71df.

## Source reconstruction The first language-pane lookup now follows the target's root-pane FindPaneByName path rather than the Layout getPane virtual slot. The animation loop retains a reference to the existing files[] pointer slot, allowing its target-observed reload after resource/transform calls. Cursor geometry uses the already defined Rect::GetWidth accessor (right minus left). ## Independent verification - LayoutByNW4R::create: 95.02809% → 96.40169%; source 352 → 356 instructions, target 356 - Base::calcCursorPos: 91.622696% → 93.05215%; 326/326 instructions - Unit fuzzy: 99.578094% → 99.6535%; 218/221 objdiff-exact symbols, exact code 46980/50656 and data 3772/3772 unchanged - Parent independently compared all 218 previously exact symbol instruction streams against rebuilt baseline: all unchanged. This preserves existing relocation-alias distinctions; it does not claim raw ctxdiff zero for every alias-normalized symbol - All 1027 source objects compared: only tiInputForm .text changes; all allocated non-text bytes and normalized relocations unchanged; no report regressions - Parent reran extracted-production cursor bodies: 159,320 terminating cases agree in result, helper traces and wrap counters. Another 680 synthetic states hit the same model limit with identical traces; no termination claim for those states - Tests use deterministic font/scale/wrap stubs, not Wii UI execution. Layout creation is checked against target call/load evidence and actual 43U compilation - Pool 20/20 identical; literal audit 20 arguments across 221 functions with no errors/candidates - Full 43U all_source/report/progress/DOL and worktree/diff checks pass Partial reconstruction only. No header, source-data, metadata, linking, assembly or new helper change. Parent baseline: 14a8b23adbd5e72873acdce882ded87eae1c2a2b Tested tree: 9ad18a2a95f3b0c8a8012ceb888d13654f63e259 DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d User priority is decompilation, then matching, then linking. No merge performed or requested by this author. <!-- 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] > ### Fix pane lookup and animation slot flow in `LayoutByNW4R::create` > - `LayoutByNW4R::create` now finds the initial language text pane by searching recursively from the layout root instead of the previous getPane path, with the fallback lookup unchanged. > - The animation-file local is now a `const` reference to the selected `files[]` slot, so later uses keep pointing at that slot after resource and animation-transform calls. > - `Base::calcCursorPos` uses `Rect::GetWidth` instead of manual right-minus-left math for glyph widths, form widths, and cursor advancement across the normal, word-wrap, and width-wrap paths. > - Adds a reconstruction log in [allhands-input-form.attempts.md](https://github.com/coah80/wii-ipl/pull/1002/files#diff-b015e5d967a1852777b4270df318ecbd070b94d1272434f6684ebf1f82815df9) covering retained changes, rejected alternatives, and validation limits. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 75b71df.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 00:15:56 +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.