[codex] Match DeleteEmptyTitles #5

Merged
coah80 merged 1 commits from codex/delete-empty-titles-43u-20260921-iso into main 2026-09-21 19:27:44 +00:00
coah80 commented 2026-09-21 19:05:05 +00:00 (Migrated from github.com)

Summary

  • match ipl::utility::ESMisc::DeleteEmptyTitles(EGG::Heap*)
  • keep the ES title-id handling in the reference source shape so MWCC emits the original instruction sequence

Validation

  • object build: passed
  • pool_diff.py: first divergence remains at index 83, after this function's emitted strings
  • ctxdiff.py: 121/121 instructions, diffs 0
  • objdiff: target fuzzy_match_percent 100.0; iplESMisc unit fuzzy score 95.866430%

Only src/utility/iplESMisc.cpp is changed.

Note

Use ESTitleId and NANDTitleIdHi in ESMisc::DeleteEmptyTitles

Refactors the empty-title cleanup to iterate over the typed ESTitleId array populated by ES_ListTitlesOnCard, replacing manual high/low 32-bit word extraction with NANDTitleIdHi for the system-title check. Each title ID is forwarded directly to CheckSafeDeleteTitle and DeleteTitle.

Macroscope summarized c161f9c.

## Summary - match `ipl::utility::ESMisc::DeleteEmptyTitles(EGG::Heap*)` - keep the ES title-id handling in the reference source shape so MWCC emits the original instruction sequence ## Validation - object build: passed - `pool_diff.py`: first divergence remains at index 83, after this function's emitted strings - `ctxdiff.py`: `121/121` instructions, `diffs 0` - objdiff: target `fuzzy_match_percent` `100.0`; `iplESMisc` unit fuzzy score `95.866430%` Only `src/utility/iplESMisc.cpp` is changed. <!-- 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] > ### Use `ESTitleId` and `NANDTitleIdHi` in `ESMisc::DeleteEmptyTitles` > Refactors the empty-title cleanup to iterate over the typed `ESTitleId` array populated by `ES_ListTitlesOnCard`, replacing manual high/low 32-bit word extraction with `NANDTitleIdHi` for the system-title check. Each title ID is forwarded directly to `CheckSafeDeleteTitle` and `DeleteTitle`. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized c161f9c.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.