[codex] Match ESMisc meta content deletion #9

Merged
coah80 merged 1 commits from codex/worker9-delete-meta-content-20260921 into main 2026-09-21 19:28:14 +00:00
coah80 commented 2026-09-21 19:14:11 +00:00 (Migrated from github.com)

Summary

  • Adjust ESMisc::DeleteMetaContent local layout and title-ID temporaries to reproduce the original MWCC output.
  • Keep the target title.met string-pool entry unchanged and aligned.

Validation

  • DeleteMetaContent objdiff fuzzy match: 70.0% baseline -> 100.0% candidate.
  • main/src/utility/iplESMisc unit fuzzy match: 95.756780% -> 96.121070%.
  • ctxdiff: 27/27 instructions, diffs 0.
  • Target pool entry matched at index 55, offset 0x94d.
  • Full 43U build passed; build/43U/main.dol SHA-1: 26116613f624061ba99c8d1a299aaa6efa85670d.

The global pool_diff.py check still reports an unrelated first divergence at index 83 (verifySavedataZD versus Failed to ES_ListTitlesOnCard1); that adjacent pool ordering was not changed.

Note

Match ESMisc::DeleteMetaContent buffer size and snprintf bound

Updates iplESMisc.cpp to match the original implementation. The local path buffer is now 0x41 (65) bytes instead of 64, title-ID components are stored in local variables, and the snprintf bound is set to the explicit value 0x40 instead of sizeof(metaPath). This means the buffer can hold 65 bytes but snprintf only writes up to 64, matching the original binary's behavior.

Macroscope summarized 23cad03.

## Summary - Adjust `ESMisc::DeleteMetaContent` local layout and title-ID temporaries to reproduce the original MWCC output. - Keep the target `title.met` string-pool entry unchanged and aligned. ## Validation - `DeleteMetaContent` objdiff fuzzy match: 70.0% baseline -> 100.0% candidate. - `main/src/utility/iplESMisc` unit fuzzy match: 95.756780% -> 96.121070%. - `ctxdiff`: 27/27 instructions, `diffs 0`. - Target pool entry matched at index 55, offset `0x94d`. - Full 43U build passed; `build/43U/main.dol` SHA-1: `26116613f624061ba99c8d1a299aaa6efa85670d`. The global `pool_diff.py` check still reports an unrelated first divergence at index 83 (`verifySavedataZD` versus `Failed to ES_ListTitlesOnCard1`); that adjacent pool ordering was not 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] > ### Match `ESMisc::DeleteMetaContent` buffer size and `snprintf` bound > Updates [iplESMisc.cpp](https://github.com/coah80/wii-ipl/pull/9/files#diff-b8f46e0c2917099bae4e1c4954943fba2cd86dc3d5c793da7418fa2cc1e9bb79) to match the original implementation. The local path buffer is now `0x41` (65) bytes instead of 64, title-ID components are stored in local variables, and the `snprintf` bound is set to the explicit value `0x40` instead of `sizeof(metaPath)`. This means the buffer can hold 65 bytes but `snprintf` only writes up to 64, matching the original binary's behavior. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 23cad03.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.