[codex] Match NumInodesSaveDirRoot #8

Merged
coah80 merged 1 commits from worker-7-num-inodes-save-dir-root-20260921 into main 2026-09-21 19:28:00 +00:00
coah80 commented 2026-09-21 19:13:24 +00:00 (Migrated from github.com)

What changed

Move ret to the function-level local declarations in ipl::utility::ESMisc::NumInodesSaveDirRoot and assign it at the NAND read. This preserves behavior while matching MWCC's original register allocation.

Validation

  • Exact-name objdiff fuzzy match: 99.25926% baseline -> 100.0% candidate.
  • ctxdiff.py: 54/54 instructions, diffs 0: [].
  • Full 43U build passed.
  • DOL SHA-1: 26116613f624061ba99c8d1a299aaa6efa85670d.
  • pool_diff.py still reports the pre-existing first divergence at pool index 83 in later verifySavedataZD/DeleteTicketsForce data; this PR changes no code in that block.
  • No re-agent/reagent files are included.

The repository-wide completion checker remains incomplete because unrelated decompilation work is still outstanding.

Note

Move signed result variable to function scope in ESMisc.NumInodesSaveDirRoot

Hoists the signed result variable out of the ChangeUid-controlled block to function scope in iplESMisc.cpp, and updates the directory-read statement to assign to that existing variable. This matches the expected scoping so the result is visible for the full method.

Macroscope summarized 7f79952.

## What changed Move `ret` to the function-level local declarations in `ipl::utility::ESMisc::NumInodesSaveDirRoot` and assign it at the NAND read. This preserves behavior while matching MWCC's original register allocation. ## Validation - Exact-name objdiff fuzzy match: `99.25926%` baseline -> `100.0%` candidate. - `ctxdiff.py`: 54/54 instructions, `diffs 0: []`. - Full 43U build passed. - DOL SHA-1: `26116613f624061ba99c8d1a299aaa6efa85670d`. - `pool_diff.py` still reports the pre-existing first divergence at pool index 83 in later `verifySavedataZD`/`DeleteTicketsForce` data; this PR changes no code in that block. - No re-agent/reagent files are included. The repository-wide completion checker remains incomplete because unrelated decompilation work is still outstanding. <!-- 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 signed result variable to function scope in `ESMisc.NumInodesSaveDirRoot` > Hoists the signed result variable out of the `ChangeUid`-controlled block to function scope in [iplESMisc.cpp](https://github.com/coah80/wii-ipl/pull/8/files#diff-b8f46e0c2917099bae4e1c4954943fba2cd86dc3d5c793da7418fa2cc1e9bb79), and updates the directory-read statement to assign to that existing variable. This matches the expected scoping so the result is visible for the full method. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 7f79952.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.