Fix keyboard prediction and animation jump tables #638

Merged
coah80 merged 1 commits from agent/bittle/input-language-dispatch into main 2026-10-01 23:22:04 +00:00
coah80 commented 2026-10-01 23:19:11 +00:00 (Migrated from github.com)

Case-label corrections grounded in original relocations

Two instruction-exact functions emitted incorrect table destinations.

Base::setLanguage / jumptable_8165CA30
The old source selected German prediction for French, Italian for German, Dutch for Italian, and French for Dutch. Restore the four case labels so DE → PM_De, IT → PM_It, NL → PM_Nl, and FR → the existing regional French branch. Shared enum values, handler bodies and block order are unchanged.

NormalButtonAnmPane::onAnmEvent / jumptable_8165CC5C
Restore the original positions of the ANM_FocusOut and ANM_FadeIn case labels. Those two blocks have equivalent bodies; this second fix matches their original addresses rather than claiming a behavior change.

  • Language table 6/10 → 10/10 exact (40 bytes).
  • Animation table 5/7 → 7/7 exact (28 bytes).
  • All 17 relocation targets/addends/types match; exactly six .data relocations changed, with all other source relocations unchanged.
  • Entire compiled .text unchanged; ctxdiff 76/76 and 147/147 instructions, both zero differences.
  • Pool 20/20 identical; remaining unit mismatches untouched.

Validation on freshly rebuilt efda1f00: full all_source, report and build/43U/ok pass; DOL SHA-1 26116613f624061ba99c8d1a299aaa6efa85670d. Workflow guards 7/7, pool tests 8/8, diff/worktree checks pass. Entire source .text and global report measures are unchanged; no aggregate percentage-gain claim. Unit remains NonMatching, so the linked DOL still uses the original object. No metadata, header, padding, forced-data or new-assembly changes. Left for Cole's review and merge.

Note

Fix language-to-prediction-mode mapping in Base::setLanguage and swap NormalButtonAnmPane::onAnmEvent labels

  • Base::setLanguage in tiInputForm.cpp now maps German, Italian, and Dutch to their own prediction modes (PM_De, PM_It, PM_Nl). French maps to PM_Fr for the EU destination and PM_USFr otherwise.
  • Swaps the FadeIn and FocusOut case labels in NormalButtonAnmPane::onAnmEvent. The conditions and resulting states in both blocks are unchanged.
  • Behavioral Change: German, Italian, Dutch, and French keyboards now use correct per-language prediction instead of whatever mode the old switch branches selected.

Macroscope summarized 2aca301.

## Case-label corrections grounded in original relocations Two instruction-exact functions emitted incorrect table destinations. **Base::setLanguage / jumptable_8165CA30** The old source selected German prediction for French, Italian for German, Dutch for Italian, and French for Dutch. Restore the four case labels so **DE → PM_De**, **IT → PM_It**, **NL → PM_Nl**, and **FR → the existing regional French branch**. Shared enum values, handler bodies and block order are unchanged. **NormalButtonAnmPane::onAnmEvent / jumptable_8165CC5C** Restore the original positions of the **ANM_FocusOut** and **ANM_FadeIn** case labels. Those two blocks have equivalent bodies; this second fix matches their original addresses rather than claiming a behavior change. - Language table **6/10 → 10/10 exact** (40 bytes). - Animation table **5/7 → 7/7 exact** (28 bytes). - All **17 relocation targets/addends/types** match; exactly **six `.data` relocations changed**, with all other source relocations unchanged. - Entire compiled `.text` unchanged; ctxdiff **76/76** and **147/147 instructions**, both **zero differences**. - Pool **20/20 identical**; remaining unit mismatches untouched. Validation on freshly rebuilt **efda1f00**: full `all_source`, report and `build/43U/ok` pass; DOL SHA-1 **26116613f624061ba99c8d1a299aaa6efa85670d**. Workflow guards **7/7**, pool tests **8/8**, diff/worktree checks pass. Entire source `.text` and global report measures are unchanged; no aggregate percentage-gain claim. Unit remains NonMatching, so the linked DOL still uses the original object. No metadata, header, padding, forced-data or new-assembly changes. Left for Cole's review and merge. <!-- 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 language-to-prediction-mode mapping in `Base::setLanguage` and swap `NormalButtonAnmPane::onAnmEvent` labels > - `Base::setLanguage` in [tiInputForm.cpp](https://github.com/coah80/wii-ipl/pull/638/files#diff-35206cad0cbb3d42d7f5c03ef80e2d5f014b18d63e0bbff2d9f16111742ce06a) now maps German, Italian, and Dutch to their own prediction modes (PM_De, PM_It, PM_Nl). French maps to `PM_Fr` for the EU destination and `PM_USFr` otherwise. > - Swaps the FadeIn and FocusOut case labels in `NormalButtonAnmPane::onAnmEvent`. The conditions and resulting states in both blocks are unchanged. > - Behavioral Change: German, Italian, Dutch, and French keyboards now use correct per-language prediction instead of whatever mode the old switch branches selected. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 2aca301.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-01 23:22:01 +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.