fix(keyboard): declare cellphone reset on its owning class #1015

Merged
coah80 merged 1 commits from agent/bittle/cellphone-reset-ownership into main 2026-10-03 01:32:23 +00:00
coah80 commented 2026-10-03 01:30:02 +00:00 (Migrated from github.com)

Correct method ownership

Remove the conditional resetHoldingButton declaration from cellphonetype::Base, where no definition exists, and expose the existing LayoutByNW4R declaration to the same previously covered implementation cases. No new method body or call-site cast is introduced.

Manager's stored field/getters/setter use LayoutByNW4R pointers, and the factory returns a derived Sample. Original onCommand calls at +0xA04, +0xAC0 and +0xB28 all target the existing LayoutByNW4R method at 0x8141B0B0. Parent independently verified source ELF, original ELF and raw DOL agree after correction.

Independent verification

  • Parent deleted and rebuilt all 1027 configured source objects for this shared-header change
  • Exactly one object changes: tiInputForm, with exactly three corrected callee relocations; all allocated code/data payload bytes remain identical
  • All other 1026 objects are byte-identical on the clean-build baseline; complete report measures unchanged
  • The nonvirtual declaration move changes no fields, base classes, virtual slots, object layout or source bodies
  • Pool 20/20, literal audit 20 arguments across 221 functions, worktree/diff checks and full 43U all_source/report/progress/DOL pass

Correctness/API-contract repair with no percentage gain claimed. Existing unrelated symbol/alias differences are not hidden or changed. No metadata or linking flag changes.

Parent baseline: 674722c158
Tested tree: 55b12256c2
DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d

No merge performed or requested by this author.

Note

Move resetHoldingButton declaration to LayoutByNW4R in cellphone headers

Moves the resetHoldingButton declaration from the conditional block in tiCellPhone.h to LayoutByNW4R's shared implementation-specific interface in tiCellPhoneLayout.h. The declaration stays available for TIINPUTFORM_IMPLEMENTATION, TIHWKEYBOARD_IMPLEMENTATION, and TIMANAGER_IMPLEMENTATION, and is now also covered for TI_CELLPHONE_IMPLEMENTATION through the shared interface. A duplicate TI_CELLPHONE_IMPLEMENTATION declaration in the class-specific section was removed.

Macroscope summarized b5d90df.

## Correct method ownership Remove the conditional resetHoldingButton declaration from cellphonetype::Base, where no definition exists, and expose the existing LayoutByNW4R declaration to the same previously covered implementation cases. No new method body or call-site cast is introduced. Manager's stored field/getters/setter use LayoutByNW4R pointers, and the factory returns a derived Sample. Original onCommand calls at +0xA04, +0xAC0 and +0xB28 all target the existing LayoutByNW4R method at 0x8141B0B0. Parent independently verified source ELF, original ELF and raw DOL agree after correction. ## Independent verification - Parent deleted and rebuilt all 1027 configured source objects for this shared-header change - Exactly one object changes: tiInputForm, with exactly three corrected callee relocations; all allocated code/data payload bytes remain identical - All other 1026 objects are byte-identical on the clean-build baseline; complete report measures unchanged - The nonvirtual declaration move changes no fields, base classes, virtual slots, object layout or source bodies - Pool 20/20, literal audit 20 arguments across 221 functions, worktree/diff checks and full 43U all_source/report/progress/DOL pass Correctness/API-contract repair with no percentage gain claimed. Existing unrelated symbol/alias differences are not hidden or changed. No metadata or linking flag changes. Parent baseline: 674722c158ff057be7a5110841cf18b50d1cb631 Tested tree: 55b12256c25701f8c6f2ce38cc586d203815c938 DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d 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] > ### Move `resetHoldingButton` declaration to `LayoutByNW4R` in cellphone headers > Moves the `resetHoldingButton` declaration from the conditional block in [tiCellPhone.h](https://github.com/coah80/wii-ipl/pull/1015/files#diff-f9ba489e7484f36545335b8d3f2c581139957c35d628687e0fa62d194b291b97) to `LayoutByNW4R`'s shared implementation-specific interface in [tiCellPhoneLayout.h](https://github.com/coah80/wii-ipl/pull/1015/files#diff-4079d8287e5937bcf246560388fc76afc91884495b7ea302947f5057730672dc). The declaration stays available for `TIINPUTFORM_IMPLEMENTATION`, `TIHWKEYBOARD_IMPLEMENTATION`, and `TIMANAGER_IMPLEMENTATION`, and is now also covered for `TI_CELLPHONE_IMPLEMENTATION` through the shared interface. A duplicate `TI_CELLPHONE_IMPLEMENTATION` declaration in the class-specific section was removed. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized b5d90df.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 01:32:21 +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.