refactor(prx): name six FreeTypeOt, LibreSsl3 and LibcInternal stubs the NID database resolves #18367

Merged
Gineex merged 1 commit from upstream-pr/18367 into main 2026-11-12 09:14:38 +00:00
Gineex commented 2026-11-11 12:29:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Gineex on 2026-11-11T12:29:00Z.


What

Names six placeholders after the symbols tools/nid_names.py resolves:

Library NID Placeholder Name
libSceFreeTypeOt (Export.cpp) 0rKmI1ZbMAc sceFreeTypeOtUnknown_0rKmI1ZbMAc_nid_no_patch FT_Glyph_Stroke
libSceFreeTypeOt (Export.cpp) WIvTHYs7ZQQ sceFreeTypeOtUnknown_WIvTHYs7ZQQ_nid_no_patch FT_New_GlyphSlot
libSceFreeTypeOt (Export.cpp) uK7vGxAQVxM sceFreeTypeOtUnknown_uK7vGxAQVxM_nid_no_patch FT_Set_Debug_Hook
libSceLibreSsl3 (AdditionalExports.cpp) 4pEl-5DmrrM Unknown_4pEl_minus_5DmrrM_nid_no_patch ERR_print_errors_fp
libSceLibreSsl3 (AdditionalExports.cpp) qGsc6uT6p1E Unknown_qGsc6uT6p1E_nid_no_patch ECDSA_do_verify
libSceLibcInternal (InventoryExports6.cpp) izmoTISVoF8 sceLibcInternalUnknown6_108_izmoTISVoF8_nid_no_patch _ZTv0_n24_NSt13basic_istreamIwSt11char_traitsIwEED0Ev (virtual thunk to basic_istream<wchar_t>::~basic_istream(), deleting)

tools/nid_names.py --name hashes each name to the placeholder's NID, so all three libraries export the same NIDs as on main. Each name is declared once: the three FreeTypeOt ones at the start of libSceFreeTypeOt.hpp's extern "C" block, the LibreSsl3 ones replace their placeholder declarations in include/Api.hpp, and the LibcInternal one is added to include/InventoryExports6.hpp. All bodies still throw through NotImplemented_nid_no_patch; a title that reaches one now fails with the function's name. Prototypes are not claimed.

On aece3f1a22, nid_names.py reports 123 placeholders as rename-ready; 114 of them are named by an open pull request (#17300, #17297, #17298, #15052 and others, found by scanning the added lines of every open PR that touches these libraries for the name or NID). Of the nine none of them name, three are left out because their lines are next to lines that open pull requests change, so either side would need a rebase: ft_module_get_service (uSNqxrARpEQ, below the helpers #16823 and #16825 add), FT_Lookup_Renderer (4LY5pyZ5IQk, below the block #17865 removes) and i2d_PUBKEY (A-Hs-8mau+8, above the declaration #17246 changes). They can follow once those are merged. git merge-tree --write-tree of this branch with #16823, #16825, #17246, #17580 and #17865 merges cleanly with each; the first version of this PR, with all nine, conflicted with all five.

Tested

Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 posix-seh UCRT r7, Release, BUILD_TESTING=ON.

  • Full build passes.
  • ctest -R 'public_headers|unknown_nids|[Ff]ree[Tt]ype|[Ll]ibre[Ss]sl|[Ll]ibc_?[Ii]nternal|nid': 334 of 334 passed.
  • python tools/nid_names.py: rename-ready goes from 123 to 117, none of the six is listed; --where --nid finds each NID at its new name.
  • python tools/check_conventions.py --base upstream/main: passed.

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:5259458521 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18367). Originally posted by [Gineex](https://github.com/Gineex) on 2026-11-11T12:29:00Z. --- ### What Names six placeholders after the symbols `tools/nid_names.py` resolves: | Library | NID | Placeholder | Name | |---|---|---|---| | `libSceFreeTypeOt` (`Export.cpp`) | `0rKmI1ZbMAc` | `sceFreeTypeOtUnknown_0rKmI1ZbMAc_nid_no_patch` | `FT_Glyph_Stroke` | | `libSceFreeTypeOt` (`Export.cpp`) | `WIvTHYs7ZQQ` | `sceFreeTypeOtUnknown_WIvTHYs7ZQQ_nid_no_patch` | `FT_New_GlyphSlot` | | `libSceFreeTypeOt` (`Export.cpp`) | `uK7vGxAQVxM` | `sceFreeTypeOtUnknown_uK7vGxAQVxM_nid_no_patch` | `FT_Set_Debug_Hook` | | `libSceLibreSsl3` (`AdditionalExports.cpp`) | `4pEl-5DmrrM` | `Unknown_4pEl_minus_5DmrrM_nid_no_patch` | `ERR_print_errors_fp` | | `libSceLibreSsl3` (`AdditionalExports.cpp`) | `qGsc6uT6p1E` | `Unknown_qGsc6uT6p1E_nid_no_patch` | `ECDSA_do_verify` | | `libSceLibcInternal` (`InventoryExports6.cpp`) | `izmoTISVoF8` | `sceLibcInternalUnknown6_108_izmoTISVoF8_nid_no_patch` | `_ZTv0_n24_NSt13basic_istreamIwSt11char_traitsIwEED0Ev` (virtual thunk to `basic_istream<wchar_t>::~basic_istream()`, deleting) | `tools/nid_names.py --name` hashes each name to the placeholder's NID, so all three libraries export the same NIDs as on `main`. Each name is declared once: the three FreeTypeOt ones at the start of `libSceFreeTypeOt.hpp`'s `extern "C"` block, the LibreSsl3 ones replace their placeholder declarations in `include/Api.hpp`, and the LibcInternal one is added to `include/InventoryExports6.hpp`. All bodies still throw through `NotImplemented_nid_no_patch`; a title that reaches one now fails with the function's name. Prototypes are not claimed. On `aece3f1a22`, `nid_names.py` reports 123 placeholders as rename-ready; 114 of them are named by an open pull request (#17300, #17297, #17298, #15052 and others, found by scanning the added lines of every open PR that touches these libraries for the name or NID). Of the nine none of them name, three are left out because their lines are next to lines that open pull requests change, so either side would need a rebase: `ft_module_get_service` (`uSNqxrARpEQ`, below the helpers #16823 and #16825 add), `FT_Lookup_Renderer` (`4LY5pyZ5IQk`, below the block #17865 removes) and `i2d_PUBKEY` (`A-Hs-8mau+8`, above the declaration #17246 changes). They can follow once those are merged. `git merge-tree --write-tree` of this branch with #16823, #16825, #17246, #17580 and #17865 merges cleanly with each; the first version of this PR, with all nine, conflicted with all five. ### Tested Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 posix-seh UCRT r7, Release, `BUILD_TESTING=ON`. - Full build passes. - `ctest -R 'public_headers|unknown_nids|[Ff]ree[Tt]ype|[Ll]ibre[Ss]sl|[Ll]ibc_?[Ii]nternal|nid'`: 334 of 334 passed. - `python tools/nid_names.py`: rename-ready goes from 123 to 117, none of the six is listed; `--where --nid` finds each NID at its new name. - `python tools/check_conventions.py --base upstream/main`: passed. ### 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)
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!18367
No description provided.