feat(libSceFreeTypeOt): return 7 from the two LCD filter calls as firmware 13.42 does #16832
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16832"
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 BunnyFl on 2026-11-07T17:34:44Z.
What
The two
libSceFreeTypeOtexports with the NIDs ofFT_Library_SetLcdFilter(VW4GD-TaIUc) andFT_Library_SetLcdFilterWeights(GiuNQjoj4fs) threw. In firmware 13.42 both return 7 at once, and this change does the same:sceFreeTypeOtLibrarySetLcdFilter_nid_no_patchVW4GD-TaIUcmov $0x7,%eax; retat0x115a0sceFreeTypeOtLibrarySetLcdFilterWeights_nid_no_patchGiuNQjoj4fsmov $0x7,%eax; retat0x11590FT_Library_SetLcdFilterandFT_Library_SetLcdFilterWeights(theleaf_scan.pyNID function). At837505d0bathe exports keep their placeholder names and no-parameterintdeclarations (core/libs/prx/libSceFreeType/include/Api.hpp:158-159): the bodies at0x115a0and0x11590(Source section) read no argument register, so they settle nothing about the parameters, and anintclaims only the 32 bitsmov $0x7,%eaxwrites.837505d0bathese are the Ot module's own exports (core/libs/prx/libSceFreeTypeOt/Export.cpp:156and:161). At837505d0balibSceFreeType'sFT_Library_SetLcdFilter_nid_postfixandFT_Library_SetLcdFilterWeights_nid_postfix(core/libs/prx/libSceFreeType/include/Api.hpp:140-141) are not changed.docs/dev/debt/libSceFreeTypeOt.md:837505d0baa new entry (docs/dev/debt/libSceFreeTypeOt.md:31) states the gap first (console prototypes unverified, only the 32-bit return claimed) and records the 13.42 reading.5c555f674bthe long list of identified names that throw isdocs/dev/debt/libSceFreeTypeOt.md:5, and that second commit takes the two names out of it. That list has no count. At837505d0bathe two bodies are atcore/libs/prx/libSceFreeTypeOt/Export.cpp:156and:161, both returning 7.Source
Firmware 13.42
system/common/lib/libSceFreeTypeOt.sprx(sha2565c5dd90618603c07987c3df49ad5dbf194017473a5e89369b328162d87a6b164), read from disassembly, not run on a console. The module's dynamic symbol table givesGiuNQjoj4fsat0x11590andVW4GD-TaIUcat0x115a0. Each body, every instruction to its return, with theint3padding after it:Neither body at
0x11590or0x115a0reads an argument register or touches memory (listed above).Tested
Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
1963dea648(main62c2f3cc57merged in):docs/dev/debt/libSceFreeTypeOt.mdconflicted again, in one place: the unverified-names bullet and thesceFreeTypeOtUnknown_*count bullet below it. The resolution keepsmain's text and removes only this PR's own two names again. Againstmain62c2f3cc57the branch's diff is three files, 7 lines added and 3 removed: the two bodies, the two test rows, the two names and the new debt entry.Export.cppholds 44sceFreeTypeOtUnknown_*mentions, two per export, giving 22, the numbermain's bullet states.freetype_ot|freetypeottests rebuilt at this head and thelibSceFreeTypeOtlibrary target built.tools/check_conventions.py --base upstream/mainon the committed head1963dea648: all checks pass.review-tools/sig_users.py HEAD --build: noAPS5_VABIdeclaration changes its signature.tools/pr_overlap.py --branch feat/freetypeot-lcd-filter-returns --jobs 8at this head, against 2,006 open pull requests: 15 share files with the branch, and the 5 it could compare have no conflicting line. The run failed closed (exit 2) on 10 that conflict withmainthemselves and compared none of them. All 10 were then checked by hand at this head, searching every added and removed line forsceFreeTypeOtLibrarySetLcdFilter_nid_no_patch,sceFreeTypeOtLibrarySetLcdFilterWeights_nid_no_patch,FT_Library_SetLcdFilter,FT_Library_SetLcdFilterWeightsand the NIDsVW4GD-TaIUcandGiuNQjoj4fs. Four are clean: #10611, #14212, #15052, #17779. Six - #10606, #10897, #16122, #16978, #17776, #17865 - rewrite the same unverified-names bullet indocs/dev/debt/libSceFreeTypeOt.md, and each has exactly one removed and one added line carrying the twoFT_Library_SetLcdFilter*names, both copies of that bullet. None of the six implements, renames or exports either function, and none names the twosceFreeTypeOt*exports or their NIDs.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
6ad1f80fd5(main1e67c2782dmerged in):docs/dev/debt/libSceFreeTypeOt.mdconflicted again, in two places this time. In the unverified-names bullet and thesceFreeTypeOtUnknown_*count bullet below it, the resolution keepsmain's text and removes only this PR's own two names again. Next to this PR's LCD-filter entry,mainrewrote theFT_Raccess_Get_HeaderInfoentry and added anFT_Raccess_Guessentry; the resolution keeps this PR's entry and takesmain's two entries whole. Againstmain1e67c2782dthe branch's diff is three files, 7 lines added and 3 removed: the two bodies, the two test rows, the two names and the new debt entry.Export.cppholds 52sceFreeTypeOtUnknown_*mentions, two per export, giving 26, the numbermain's bullet states.main1e67c2782dalso has a second count sentence near the top of that file that says 136; this PR leaves it asmainhas it.freetype_ot|freetypeottests rebuilt at this head and thelibSceFreeTypeOtlibrary target built. The set is 10 where it was 9:mainaddedguest_freetype_ot_system.tools/check_conventions.py --base upstream/mainon the committed head6ad1f80fd5: all checks pass.review-tools/sig_users.py HEAD --build: noAPS5_VABIdeclaration changes its signature.tools/pr_overlap.py --branch feat/freetypeot-lcd-filter-returns --jobs 8at this head, against 1,983 open pull requests: 17 share files with the branch, and the 4 it could compare have no conflicting line. The run failed closed (exit 2) on 13 that conflict withmainthemselves and compared none of them. All 13 were then checked by hand at this head, searching every added and removed line forsceFreeTypeOtLibrarySetLcdFilter_nid_no_patch,sceFreeTypeOtLibrarySetLcdFilterWeights_nid_no_patch,FT_Library_SetLcdFilter,FT_Library_SetLcdFilterWeightsand the NIDsVW4GD-TaIUcandGiuNQjoj4fs. Six are clean: #10611, #14212, #15052, #15687, #17572, #17779. Seven - #10606, #10897, #16122, #16978, #17715, #17776, #17865 - rewrite the same unverified-names bullet indocs/dev/debt/libSceFreeTypeOt.md, and each has exactly one removed and one added line carrying the twoFT_Library_SetLcdFilter*names, both copies of that bullet. None of the seven implements, renames or exports either function, and none names the twosceFreeTypeOt*exports or their NIDs.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
94029256b7(main9d3b86b420merged in):docs/dev/debt/libSceFreeTypeOt.mdconflicted again, this time on the unverified-names bullet alone:mainimplementedFT_Request_Size,FT_New_Sizeand theFT_Stroker_*family and rewrote that bullet, while thesceFreeTypeOtUnknown_*count bullet merged cleanly. The resolution keepsmain's bullet and removes only this PR's own two names from it again.Export.cppholds 72sceFreeTypeOtUnknown_*mentions, two per export, giving 36, which is the number the cleanly merged bullet already carried. Neither of this PR's two exports is asceFreeTypeOtUnknown_*one.freetype_ot|freetypeottests rebuilt at this head and thelibSceFreeTypeOtlibrary target built.tools/check_conventions.py --base upstream/mainon the committed head94029256b7: all checks pass.review-tools/sig_users.py HEAD --build: noAPS5_VABIdeclaration changes its signature.tools/pr_overlap.py --branch feat/freetypeot-lcd-filter-returns --jobs 8at this head, against 1,942 open pull requests: 17 share files with the branch, and none of the ones it could compare has a conflicting line. The run failed closed (exit 2) on 15 that conflict withmainthemselves and compared none of them. All 15 were then checked by hand at this head, searching every added and removed line forsceFreeTypeOtLibrarySetLcdFilter_nid_no_patch,sceFreeTypeOtLibrarySetLcdFilterWeights_nid_no_patch,FT_Library_SetLcdFilter,FT_Library_SetLcdFilterWeightsand the NIDsVW4GD-TaIUcandGiuNQjoj4fs. Nine are clean. Six - #10606, #10611, #10897, #16122, #16978 and #17715 - rewrite the same unverified-names bullet indocs/dev/debt/libSceFreeTypeOt.md, which carries bothFT_Library_SetLcdFilter*names, so those two names move on their removed and added copies of that one line. None of the six implements, renames or exports either function, and none names the twosceFreeTypeOt*exports or their NIDs. The earlier read at5c555f674bbelow found none of them implementing, renaming or naming the two exports.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
837505d0ba(main0dd2fffe35merged in):docs/dev/debt/libSceFreeTypeOt.mdonly. The resolution keepsmain's two bullets and re-applies this branch's own change to them:FT_Library_SetLcdFilterandFT_Library_SetLcdFilterWeightsleave the identified-names list, and thesceFreeTypeOtUnknown_*count is derived from the mergedExport.cppinstead of being carried over from either side - 72 mentions, two per export, giving 36, the same numbermain's line holds at0dd2fffe35. Neither name is left in the mergedExport.cpp.freetype_ot|freetypeottests rebuilt at this head and thelibSceFreeTypeOtlibrary target built. The set is 9 rather than the 2 of the earlier heads above: those runs matched onlyguest_freetype_ot_constants, andmainhas since addedguest_freetype_ot_size_metrics.tools/check_conventions.py --base upstream/mainon the committed head837505d0ba: all checks pass.review-tools/sig_users.py HEAD --build: noAPS5_VABIdeclaration changes its signature.tools/pr_overlap.py --branch feat/freetypeot-lcd-filter-returns --jobs 8at this head, against 1,953 open pull requests: 17 share files with the branch. The one it could compare line by line has no conflicting line. The other 16 conflict withmainthemselves, were not compared line by line, and their diffs were not re-searched at this head: for those 16, overlap is not verified. The read at5c555f674babove found none of them implementing, renaming or naming the two exports. They are #10606, #10611, #10613, #10897, #12004, #12370, #12373, #14212, #15052, #15687, #16121, #16122, #16823, #16825, #16978, #17572, each sharingcore/libs/prx/libSceFreeTypeOt/Export.cpp,docs/dev/debt/libSceFreeTypeOt.mdor both; whichever lands later merges the shared debt lines.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
429c53a27c(main6b733c4ef2merged in):docs/dev/debt/libSceFreeTypeOt.mdonly, on the line-5 list of identified names, whichmainchanged with016aaa560e(theFT_Outline_Renderalias). The resolution takesmain's line and dropsFT_Library_SetLcdFilterandFT_Library_SetLcdFilterWeightsfrom it again; againstmain, the branch's debt changes are those two names and the new entry.guest_freetype_ot_constantsandpublic_headers. ThelibSceFreeTypeOtlibrary target builds too.tools/check_conventions.py --base upstream/mainon the committed head429c53a27c: all checks pass.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
5c555f674b(onmaindd00a9c54e):guest_freetype_ot_constantsandpublic_headers. ThelibSceFreeTypeOtlibrary target builds too (at695fcb168c; the second commit only edits the debt file).guest_freetype_ot_constantschecks that both return 7 (core/libs/tests/GuestFreeTypeOtConstants.cpp:20-21at5c555f674b).695fcb168c(same code and test), each rebuilt and run, each failingguest_freetype_ot_constants(1 of 1 failed):NotImplemented_nid_no_patch(__func__)put back at the top of both bodies, which ismain's behaviour, with this branch's test: it aborts withsceFreeTypeOtLibrarySetLcdFilter_nid_no_patch not implemented.GiuNQjoj4fsexport returning 0.tools/check_conventions.py --base upstream/mainon the committed head5c555f674b: all checks pass.tools/pr_overlap.py --branch feat/freetypeot-lcd-filter-returns --jobs 4at5c555f674b, against 1,734 open pull requests: 17 share files with the branch; the run could compare none of them line by line and listed all 17 as conflicting with the base. I read the added and removed lines of each incore/libs/prx/libSceFreeTypeOt/Export.cpp,docs/dev/debt/libSceFreeTypeOt.md,core/libs/prx/libSceFreeTypeandcore/libs/tests: none implements, renames or names the two exports. Seven edit the same line-5 list ofdocs/dev/debt/libSceFreeTypeOt.md(#10606, #10611, #10897, #12370, #15687, #16120, #16122), each removing its own names, so whichever lands later merges that line; five of them still carry the two LCD filter names there, which should stay out. #14212 rewrites other sentences of that file.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