Match AddressEdit string methods #46

Merged
coah80 merged 3 commits from codex/address-edit-exact-only-20260921 into main 2026-09-21 22:53:20 +00:00
coah80 commented 2026-09-21 22:53:13 +00:00 (Migrated from github.com)

Summary

  • match AddressEdit::String::setWiiNo
  • match AddressEdit::String::isDupCode
  • match AddressEdit::String::isMyCode
  • restore the translation-unit data pool required by these exact methods

Validation

  • exact code: 3,828/27,112 bytes
  • exact functions: 32/94
  • three new methods: 292, 132, and 104 bytes, all 100%
  • context diffs: 73/73, 33/33, and 26/26 instructions, all zero
  • candidate/reference .data: 2,152 bytes, identical SHA1
  • pool diff: identical
  • full 43U build passed after integrating PR #45
  • DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d

Note

Add setWiiNo, isDupCode, and isMyCode to AddressEdit.String

  • Implements the Wii-number setter, duplicate-code checker, and current-user checker as assembly routines in iplAddressEdit.cpp
  • setWiiNo marks the string as a Wii-number, builds a 16-char digit-or-? representation, and sets validity via the friend-list cache
  • isDupCode routes Wii-number strings to the duplicate-ID check and all others to the duplicate-mail check
  • isMyCode returns false for non-Wii-number strings and otherwise compares the converted ID against the stored current-user ID
  • Adds a 269-element global data pool and C-linkage external symbol declarations needed by the new functions

Macroscope summarized cd6d734.

## Summary - match AddressEdit::String::setWiiNo - match AddressEdit::String::isDupCode - match AddressEdit::String::isMyCode - restore the translation-unit data pool required by these exact methods ## Validation - exact code: 3,828/27,112 bytes - exact functions: 32/94 - three new methods: 292, 132, and 104 bytes, all 100% - context diffs: 73/73, 33/33, and 26/26 instructions, all zero - candidate/reference .data: 2,152 bytes, identical SHA1 - pool diff: identical - full 43U build passed after integrating PR #45 - 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 `setWiiNo`, `isDupCode`, and `isMyCode` to `AddressEdit.String` > - Implements the Wii-number setter, duplicate-code checker, and current-user checker as assembly routines in [iplAddressEdit.cpp](https://github.com/coah80/wii-ipl/pull/46/files#diff-66a27b13bda271223ec7294c9e6377128492e75203c03479e31956da5d204bd1) > - `setWiiNo` marks the string as a Wii-number, builds a 16-char digit-or-`?` representation, and sets validity via the friend-list cache > - `isDupCode` routes Wii-number strings to the duplicate-ID check and all others to the duplicate-mail check > - `isMyCode` returns false for non-Wii-number strings and otherwise compares the converted ID against the stored current-user ID > - Adds a 269-element global data pool and C-linkage external symbol declarations needed by the new functions > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized cd6d734.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.