Match ChannelTitle RSO control flow #21

Merged
coah80 merged 2 commits from agent/channel-title-20260921 into main 2026-09-21 20:07:43 +00:00
coah80 commented 2026-09-21 20:07:24 +00:00 (Migrated from github.com)

Summary

Match ChannelTitle::calcChannelRso() to the 43U reference control-flow shape by returning before the module-state switch for the three zoom-in states.

Objdiff

  • ChannelTitle unit fuzzy match: 99.78811% -> 99.80339%
  • Exact functions: 88/95 -> 89/95
  • calcChannelRso: 190/190 instructions, 0 differing positions
  • Pool diff: identical through entry 77

Validation

python3 configure.py --version 43U
/home/cole/projects/tests/.venv/bin/ninja -C .
build/tools/objdiff-cli report generate -p . -o build/43U/report.json -f json
python3 tools/decomp_status.py build/43U/report.json --output /tmp/channel-title-decomp-status-final.json --summary /tmp/channel-title-decomp-summary-final.txt
python3 tools/check_decomp_complete.py --dol build/43U/main.dol build/43U/report.json
sha1sum build/43U/main.dol

The full build passed and the DOL matched 26116613f624061ba99c8d1a299aaa6efa85670d. The repository-wide completion check remains nonzero because unrelated units are incomplete; final tree status is 44.73% fully linked.

Commit: b57b33b0

Note

Rewrite calcChannelRso guard as early return in ChannelTitle

Changes the state guard in iplChannelTitle.cpp from a negated conjunction wrapping the module-state switch to an early return for the three excluded channel states. The switch is moved outside the conditional block. The logic is equivalent to the prior implementation.

Macroscope summarized f93b82a.

## Summary Match `ChannelTitle::calcChannelRso()` to the 43U reference control-flow shape by returning before the module-state switch for the three zoom-in states. ## Objdiff - ChannelTitle unit fuzzy match: 99.78811% -> 99.80339% - Exact functions: 88/95 -> 89/95 - `calcChannelRso`: 190/190 instructions, 0 differing positions - Pool diff: identical through entry 77 ## Validation ```text python3 configure.py --version 43U /home/cole/projects/tests/.venv/bin/ninja -C . build/tools/objdiff-cli report generate -p . -o build/43U/report.json -f json python3 tools/decomp_status.py build/43U/report.json --output /tmp/channel-title-decomp-status-final.json --summary /tmp/channel-title-decomp-summary-final.txt python3 tools/check_decomp_complete.py --dol build/43U/main.dol build/43U/report.json sha1sum build/43U/main.dol ``` The full build passed and the DOL matched `26116613f624061ba99c8d1a299aaa6efa85670d`. The repository-wide completion check remains nonzero because unrelated units are incomplete; final tree status is 44.73% fully linked. Commit: `b57b33b0` <!-- 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] > ### Rewrite `calcChannelRso` guard as early return in `ChannelTitle` > Changes the state guard in [iplChannelTitle.cpp](https://github.com/coah80/wii-ipl/pull/21/files#diff-4cec7ad01aca14a50216a5b11a857ff1b673a2ed3570a4e15d80e65ce9b54289) from a negated conjunction wrapping the module-state switch to an early return for the three excluded channel states. The switch is moved outside the conditional block. The logic is equivalent to the prior implementation. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized f93b82a.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.