refactor(prx): name the FreeTypeOt stubs the NID database resolves #15687

Merged
ItsJustChrisE merged 1 commit from upstream-pr/15687 into main 2026-11-10 21:49:47 +00:00
ItsJustChrisE commented 2026-11-04 05:23:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ItsJustChrisE on 2026-11-04T05:23:27Z.


What

Names 4 of the 42 sceFreeTypeOtUnknown_*_nid_no_patch exports in libSceFreeTypeOt/Export.cpp that tools/nid_names.py resolves through its pinned aerolib database (status rename-ready), as #14884, #15405, #15673, #15677, #15678 and #15686 did for other libraries: FT_Glyph_StrokeBorder, FT_Glyph_To_Bitmap, FT_Glyph_Transform and FT_New_Library.

The FreeType names are declared with other signatures in libSceFreeType/include/Api.hpp, which this library includes, so each helper follows the library's existing convention from d46a7c7df4 (sceFreeTypeOtGlyphCopy_nid_no_patch): it becomes sceFreeTypeOt<Name>_nid_no_patch and keeps its explicit APS5_EXPORT NID alias. Every body still throws through NotImplemented_nid_no_patch, and the library exports the same NIDs as on main. A title that reaches one now fails with the function's name instead of the placeholder's.

ft_glyphslot_alloc_bitmap, ft_glyphslot_free_bitmap and ft_glyphslot_set_bitmap stay as on main because #16120 implements them, and ft_module_get_service (uSNqxrARpEQ) stays too because it sits directly after them and renaming it conflicts with #16120's hunk. The other resolvable placeholders are left alone because open PRs already implement or rename them. The debt file adds the 4 names in their own identified-NID entry and sets the unknown count to 38, the number of sceFreeTypeOtUnknown_* exports left in Export.cpp (it reads 44 on main, where 42 remain).

Tested

Ubuntu 26.04.1 on WSL2, GCC 15.2.0, Release, main 8e34d2642d. No title or homebrew run.

  • compute_nid(name) == nid for all 4 (tools/nid_names.py).
  • nm -D on the patched libSceFreeTypeOt.prx of main and this branch, both from full builds: identical NID sets (154).
  • Full build, then ctest -R 'public_headers|patched_librar': 66 of 66 passed.
  • tools/check_conventions.py --base origin/main: passed.
  • tools/pr_overlap.py --branch: 1976 open pull requests probed. None share exports. git merge-tree of this branch with #16120 merges Export.cpp cleanly; #15052, #15053, #16120, #16121, #16122 and #16832 edit the unknown-count line of docs/dev/debt/libSceFreeTypeOt.md, which this PR has to change to keep the count right. #10606, #10611, #10613, #10897, #12004, #12370, #12373, #13486, #14212 and #16978 already conflict with main, so the tool could not compare them.
  • Not run: Windows, the wider test suite.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5149351523 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15687). Originally posted by [ItsJustChrisE](https://github.com/ItsJustChrisE) on 2026-11-04T05:23:27Z. --- ### What Names 4 of the 42 `sceFreeTypeOtUnknown_*_nid_no_patch` exports in `libSceFreeTypeOt/Export.cpp` that `tools/nid_names.py` resolves through its pinned [aerolib database](https://github.com/zecoxao/sce_symbols/blob/2883963a0a514ba6e77407a08ef4730a65e88254/aerolib.csv) (status `rename-ready`), as #14884, #15405, #15673, #15677, #15678 and #15686 did for other libraries: `FT_Glyph_StrokeBorder`, `FT_Glyph_To_Bitmap`, `FT_Glyph_Transform` and `FT_New_Library`. The FreeType names are declared with other signatures in `libSceFreeType/include/Api.hpp`, which this library includes, so each helper follows the library's existing convention from d46a7c7df4 (`sceFreeTypeOtGlyphCopy_nid_no_patch`): it becomes `sceFreeTypeOt<Name>_nid_no_patch` and keeps its explicit `APS5_EXPORT` NID alias. Every body still throws through `NotImplemented_nid_no_patch`, and the library exports the same NIDs as on `main`. A title that reaches one now fails with the function's name instead of the placeholder's. `ft_glyphslot_alloc_bitmap`, `ft_glyphslot_free_bitmap` and `ft_glyphslot_set_bitmap` stay as on `main` because #16120 implements them, and `ft_module_get_service` (`uSNqxrARpEQ`) stays too because it sits directly after them and renaming it conflicts with #16120's hunk. The other resolvable placeholders are left alone because open PRs already implement or rename them. The debt file adds the 4 names in their own identified-NID entry and sets the unknown count to 38, the number of `sceFreeTypeOtUnknown_*` exports left in `Export.cpp` (it reads 44 on `main`, where 42 remain). ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Ubuntu 26.04.1 on WSL2, GCC 15.2.0, Release, `main` `8e34d2642d`. No title or homebrew run. - `compute_nid(name) == nid` for all 4 (`tools/nid_names.py`). - `nm -D` on the patched `libSceFreeTypeOt.prx` of `main` and this branch, both from full builds: identical NID sets (154). - Full build, then `ctest -R 'public_headers|patched_librar'`: 66 of 66 passed. - `tools/check_conventions.py --base origin/main`: passed. - `tools/pr_overlap.py --branch`: 1976 open pull requests probed. None share exports. `git merge-tree` of this branch with #16120 merges `Export.cpp` cleanly; #15052, #15053, #16120, #16121, #16122 and #16832 edit the unknown-count line of `docs/dev/debt/libSceFreeTypeOt.md`, which this PR has to change to keep the count right. #10606, #10611, #10613, #10897, #12004, #12370, #12373, #13486, #14212 and #16978 already conflict with `main`, so the tool could not compare them. - Not run: Windows, the wider test suite. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
adriadam10 commented 2026-11-07 14:59:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-11-07T14:59:30Z.

Review: CHANGES_REQUESTED


Thanks, the rename itself is fine: the NIDs and APS5_EXPORT aliases are unchanged and every body still throws.

  • #16120 is open and implements ft_glyphslot_alloc_bitmap, ft_glyphslot_free_bitmap and ft_glyphslot_set_bitmap in place of the same stubs (Export.cpp lines 549-563), so the two PRs would conflict on those three. Please drop those three renames from this PR (keep sceFreeTypeOtUnknown_Ln9I6YfmYJU, _7cVMwHmN308 and _AEU2tkjdZ2w as on main) and list #16120 in the PR body.
  • With that change, update docs/dev/debt/libSceFreeTypeOt.md: remove those three names from the identified-NID entry on line 3 and set the unknown count on line 4 to 63.
  • The branch also conflicts with main now; please rebase while you are there.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5813045364 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15687#pullrequestreview-5813045364). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-11-07T14:59:30Z. **Review:** CHANGES_REQUESTED --- Thanks, the rename itself is fine: the NIDs and `APS5_EXPORT` aliases are unchanged and every body still throws. - #16120 is open and implements `ft_glyphslot_alloc_bitmap`, `ft_glyphslot_free_bitmap` and `ft_glyphslot_set_bitmap` in place of the same stubs (`Export.cpp` lines 549-563), so the two PRs would conflict on those three. Please drop those three renames from this PR (keep `sceFreeTypeOtUnknown_Ln9I6YfmYJU`, `_7cVMwHmN308` and `_AEU2tkjdZ2w` as on `main`) and list #16120 in the PR body. - With that change, update `docs/dev/debt/libSceFreeTypeOt.md`: remove those three names from the identified-NID entry on line 3 and set the unknown count on line 4 to 63. - The branch also conflicts with `main` now; please rebase while you are there.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!15687
No description provided.