refactor(prx): name the FreeTypeOt stubs the NID database resolves #15687
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15687"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by ItsJustChrisE on 2026-11-04T05:23:27Z.
What
Names 4 of the 42
sceFreeTypeOtUnknown_*_nid_no_patchexports inlibSceFreeTypeOt/Export.cppthattools/nid_names.pyresolves through its pinned aerolib database (statusrename-ready), as #14884, #15405, #15673, #15677, #15678 and #15686 did for other libraries:FT_Glyph_StrokeBorder,FT_Glyph_To_Bitmap,FT_Glyph_TransformandFT_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 fromd46a7c7df4(sceFreeTypeOtGlyphCopy_nid_no_patch): it becomessceFreeTypeOt<Name>_nid_no_patchand keeps its explicitAPS5_EXPORTNID alias. Every body still throws throughNotImplemented_nid_no_patch, and the library exports the same NIDs as onmain. A title that reaches one now fails with the function's name instead of the placeholder's.ft_glyphslot_alloc_bitmap,ft_glyphslot_free_bitmapandft_glyphslot_set_bitmapstay as onmainbecause #16120 implements them, andft_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 ofsceFreeTypeOtUnknown_*exports left inExport.cpp(it reads 44 onmain, where 42 remain).Tested
Ubuntu 26.04.1 on WSL2, GCC 15.2.0, Release,
main8e34d2642d. No title or homebrew run.compute_nid(name) == nidfor all 4 (tools/nid_names.py).nm -Don the patchedlibSceFreeTypeOt.prxofmainand this branch, both from full builds: identical NID sets (154).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-treeof this branch with #16120 mergesExport.cppcleanly; #15052, #15053, #16120, #16121, #16122 and #16832 edit the unknown-count line ofdocs/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 withmain, so the tool could not compare them.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
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_EXPORTaliases are unchanged and every body still throws.ft_glyphslot_alloc_bitmap,ft_glyphslot_free_bitmapandft_glyphslot_set_bitmapin place of the same stubs (Export.cpplines 549-563), so the two PRs would conflict on those three. Please drop those three renames from this PR (keepsceFreeTypeOtUnknown_Ln9I6YfmYJU,_7cVMwHmN308and_AEU2tkjdZ2was onmain) and list #16120 in the PR body.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.mainnow; please rebase while you are there.