feat(libSceFreeTypeOt): resolve the exports libSceFreeType already implements #17865
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17865"
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 AlfaRojo on 2026-11-09T19:18:55Z.
What
libSceFreeTypeOt exported ten NIDs as throwing placeholders:
Dr3F3qrSQ2c(sceFreeTypeOtGlyphCopy),x8y0qzLiYOU(sceFreeTypeOtHasPSGlyphNames),5qqbXOGlHw4(sceFreeTypeOtLibraryVersion),BqGJsJcFYaM(sceFreeTypeOtOutlineDone),QH2emcgeFck(sceFreeTypeOtOutlineNew),9km02mPqPJE(sceFreeTypeOtOutlineRender),8fAMdZCnewA(sceFreeTypeOtPropertyGet),LsB538+IPrE(sceFreeTypeOtPropertySet),hz-J3hohXW8(sceFreeTypeOtQAlloc) and5ipBcLYVc2k(sceFreeTypeOtRemoveModule).tools/nid_names.pyshows they are exactlyFT_Glyph_Copy,FT_Has_PS_Glyph_Names,FT_Library_Version,FT_Outline_Done,FT_Outline_New,FT_Outline_Render,FT_Property_Get,FT_Property_Set,FT_QAllocandFT_Remove_Module, which libSceFreeType implements.FT_Stroker_Export(2rcvKZfm5rI) is left out because #17580 implements it. The module's other library, face and outline exports (FT_Init_FreeType,FT_New_Memory_Face,FT_Load_Glyph,FT_Outline_Check, …) already reach those libSceFreeType wrappers, so libraries, faces and outlines are shared objects between the two modules.ForwardExports.cppgets ten typed thunks with the same NIDs, in the file's alphabetical order.libSceFreeType/include/Api.hppand from the module's owninclude/MemoryAllocation.hpp, which keeps theFT_ReallocandFT_QReallocplaceholder declarations #12373 added.libSceFreeType.prx, which the patched test resolves symbols from.The names leave the debt file's "provider-specific prototypes unverified" lists and get an entry saying their prototypes are assumed to be FreeType's public ones, unverified for the provider's version, with results, limits and throws those of the libSceFreeType wrappers over the bundled FreeType 2.15.0; it names the visible consequence,
FT_Library_Versionreporting 2.15.0 where a device reported 2.4.11. This is the same approach as #17776 forFT_Open_Faceand the glyph-slot synthesis exports; the PRs touch neighbouring lines of the debt file and the test and merge together.Tested
Windows 11 Pro (10.0.26200), WinLibs GCC 15.2.0 r7 UCRT, Ninja, Release,
BUILD_TESTING=ON, onmain4b71464421. After buildingguest_freetype_ot_testsandguest_freetype_ot_libraries,guest_freetype_otandguest_freetype_ot_patchedpass in 3 of 3 runs. The libSceFreeType tests the forwards rely on,guest_freetype_glyph,guest_freetype_stroker,guest_freetype_outline_render,guest_freetype_module_properties,guest_freetype_module_properties_nid,guest_freetype_memory_allocation,guest_freetype_memory_allocation_nid,guest_freetype_stroker_outputsandguest_freetype_stroker_outputs_nid, pass (run at the branch's first commit0a294acf32, beforemainwas merged).public_headerspasses,tools/check_test_registration.pyreports everyAPS5_VABIsource compiled, andtools/check_conventions.py --base upstream/mainis clean.main4b71464421(which brought #12373's Realloc/QRealloc placeholders next to the removed ones): same results.tools/pr_overlap.pylists #17580, which implementsFT_Stroker_Export, so that NID is left out of this PR; #17776, #17772, #16122 and #17779, which remove neighbouring placeholders in the same files, so whichever merges second resolves adjacent-hunk conflicts, none of them adding these ten exports; and #14212, the repository-wide debt reformat.Linux and macOS not run; there the ten NIDs resolve through the module's libSceFreeType dependency as the other forwarded exports do.
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)