refactor(prx): name the libfreetype and NpTcs stubs the NID database resolves #14827

Merged
RyanIsAinmDom merged 1 commit from upstream-pr/14827 into main 2026-11-03 05:10:24 +00:00
RyanIsAinmDom commented 2026-11-01 18:51:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by RyanIsAinmDom on 2026-11-01T18:51:19Z.


What

tools/nid_names.py resolves the 24 libfreetype and 8 libSceNpTcs *Unknown_* exports on main through its pinned aerolib database, and every suggestion passes its compute_nid(name) == nid check (status rename-ready). They are the only rename-ready placeholders in libraries that no open pull request touches, and this names all 32, as #12457 did for libSceXml, libSceNKWebKit, libSceJsc and libSceFreeTypeOl. Behaviour is unchanged: every body still throws through NotImplemented_nid_no_patch, and each library exports the same NIDs as on main. A title that reaches one of them now fails with the function's name instead of the placeholder's.

Library Named Form
libfreetype 24 helper <prefix><Name>_nid_no_patch that keeps its NID alias: the five 3.20 exports FT_Get_Color_Glyph_Layer, FT_Get_Var_Axis_Flags, FT_Palette_Data_Get, FT_Palette_Select and FT_Set_Default_Properties as libfreetype<Name>, the 19 older ones (FTC_Manager_New, FT_Bitmap_Blend, FT_Error_String, FT_Gzip_Uncompress, FT_New_Glyph, FT_Stream_OpenGzip and others) as freetypeLegacy<Name>
libSceNpTcs 8 function named after its symbol, so its NID is derived from the name and the alias goes away: sceNpTcsIntAbortRequest, sceNpTcsIntCreateContext, sceNpTcsIntCreateRequest, sceNpTcsIntDestroyContext, sceNpTcsIntDestroyRequest, sceNpTcsIntUploadDataToNewSlot, sceNpTcsIntUploadDataToNewSlotEnd, sceNpTcsIntUploadDataToNewSlotWrite
  • libfreetype follows libSceFreeTypeOt and libSceFreeTypeOl: libSceFreeType links FreeType's own FT_* symbols, so a same-named export here would be a duplicate. Each helper is its placeholder with Unknown_<NID> replaced by the symbol without FT_ (FTC_Manager_New becomes FtcManagerNew, as FTA_ became Fta in #12457), and its declaration stays in InventoryExports.hpp or LegacyExports.hpp.
  • libSceNpTcs follows its three named exports and #12457's other libraries; the declarations are renamed in place in LegacyExports.hpp, so each name keeps exactly one header declaration.
  • As an independent check, hashing every identifier of the bundled FreeType 2.13.3 tree (3rdparty/freetype) gives the same 24 names for the libfreetype NIDs. The libSceNpTcs names come from the database only.
  • The two debt entries name the database and say the NID of each name matches; signatures and behaviour stay unverified.

Left out on purpose:

  • libkernel_web _dup2 (W8f1adVl+48): nid_names.py reports name-in-use.
  • libSceAbstractStorage, libSceIpmi and libSceTEEClient (#14212 edits their debt files), libSceCustomMusicPlayReady4 (#14454 edits its debt file), libSceAbstractYoutube and libSceJsc (#13132 and #13135 edit them) and the other resolvable libraries, whose Export.cpp open pull requests edit.

Tested

CachyOS x86-64, GCC 16.2.1, Release build, on main f2d874c1fd with and without this commit.

  • Built libfreetype.prx and libSceNpTcs.prx and their NID-patched copies: the patched export tables hold the same NIDs on main and on this branch (24 and 11). On the branch, libSceNpTcs no longer carries the eight npTcsLegacyUnknown_* helper symbols.
  • Both patched libraries load with RTLD_NOW. Calling C3-qsnriefE, qCyybpSyZzI, 3ruFwEv4KQg and xSse4lLrSNA still throws, now as freetypeLegacyBitmapBlend_nid_no_patch not implemented, libfreetypePaletteSelect_nid_no_patch not implemented, sceNpTcsIntCreateContext not implemented and sceNpTcsIntCreateRequest not implemented.
  • tools/nid_names.py lists no placeholder in either library afterwards (rename-ready 4,623 to 4,591 tree-wide), and --where finds each NID under its new name.
  • test_public_headers.py --audit-only (399 libraries), check_conventions.py --base origin/main with this title and description, git diff --check.
  • tools/pr_overlap.py --branch: no overlap with open pull requests (2,023 probed).
  • Not run: the full libs build, Windows, macOS, a console, any title.

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:5110475788 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14827). Originally posted by [RyanIsAinmDom](https://github.com/RyanIsAinmDom) on 2026-11-01T18:51:19Z. --- ### What `tools/nid_names.py` resolves the 24 libfreetype and 8 libSceNpTcs `*Unknown_*` exports on `main` through its pinned [aerolib database](https://github.com/zecoxao/sce_symbols/blob/2883963a0a514ba6e77407a08ef4730a65e88254/aerolib.csv), and every suggestion passes its `compute_nid(name) == nid` check (status `rename-ready`). They are the only `rename-ready` placeholders in libraries that no open pull request touches, and this names all 32, as #12457 did for libSceXml, libSceNKWebKit, libSceJsc and libSceFreeTypeOl. Behaviour is unchanged: every body still throws through `NotImplemented_nid_no_patch`, and each library exports the same NIDs as on `main`. A title that reaches one of them now fails with the function's name instead of the placeholder's. | Library | Named | Form | |---|---|---| | libfreetype | 24 | helper `<prefix><Name>_nid_no_patch` that keeps its NID alias: the five 3.20 exports `FT_Get_Color_Glyph_Layer`, `FT_Get_Var_Axis_Flags`, `FT_Palette_Data_Get`, `FT_Palette_Select` and `FT_Set_Default_Properties` as `libfreetype<Name>`, the 19 older ones (`FTC_Manager_New`, `FT_Bitmap_Blend`, `FT_Error_String`, `FT_Gzip_Uncompress`, `FT_New_Glyph`, `FT_Stream_OpenGzip` and others) as `freetypeLegacy<Name>` | | libSceNpTcs | 8 | function named after its symbol, so its NID is derived from the name and the alias goes away: `sceNpTcsIntAbortRequest`, `sceNpTcsIntCreateContext`, `sceNpTcsIntCreateRequest`, `sceNpTcsIntDestroyContext`, `sceNpTcsIntDestroyRequest`, `sceNpTcsIntUploadDataToNewSlot`, `sceNpTcsIntUploadDataToNewSlotEnd`, `sceNpTcsIntUploadDataToNewSlotWrite` | - libfreetype follows libSceFreeTypeOt and libSceFreeTypeOl: libSceFreeType links FreeType's own `FT_*` symbols, so a same-named export here would be a duplicate. Each helper is its placeholder with `Unknown_<NID>` replaced by the symbol without `FT_` (`FTC_Manager_New` becomes `FtcManagerNew`, as `FTA_` became `Fta` in #12457), and its declaration stays in `InventoryExports.hpp` or `LegacyExports.hpp`. - libSceNpTcs follows its three named exports and #12457's other libraries; the declarations are renamed in place in `LegacyExports.hpp`, so each name keeps exactly one header declaration. - As an independent check, hashing every identifier of the bundled FreeType 2.13.3 tree (`3rdparty/freetype`) gives the same 24 names for the libfreetype NIDs. The libSceNpTcs names come from the database only. - The two debt entries name the database and say the NID of each name matches; signatures and behaviour stay unverified. Left out on purpose: - libkernel_web `_dup2` (`W8f1adVl+48`): `nid_names.py` reports `name-in-use`. - libSceAbstractStorage, libSceIpmi and libSceTEEClient (#14212 edits their debt files), libSceCustomMusicPlayReady4 (#14454 edits its debt file), libSceAbstractYoutube and libSceJsc (#13132 and #13135 edit them) and the other resolvable libraries, whose `Export.cpp` open pull requests edit. ### 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. --> CachyOS x86-64, GCC 16.2.1, Release build, on `main` `f2d874c1fd` with and without this commit. - Built `libfreetype.prx` and `libSceNpTcs.prx` and their NID-patched copies: the patched export tables hold the same NIDs on `main` and on this branch (24 and 11). On the branch, libSceNpTcs no longer carries the eight `npTcsLegacyUnknown_*` helper symbols. - Both patched libraries load with `RTLD_NOW`. Calling `C3-qsnriefE`, `qCyybpSyZzI`, `3ruFwEv4KQg` and `xSse4lLrSNA` still throws, now as `freetypeLegacyBitmapBlend_nid_no_patch not implemented`, `libfreetypePaletteSelect_nid_no_patch not implemented`, `sceNpTcsIntCreateContext not implemented` and `sceNpTcsIntCreateRequest not implemented`. - `tools/nid_names.py` lists no placeholder in either library afterwards (`rename-ready` 4,623 to 4,591 tree-wide), and `--where` finds each NID under its new name. - `test_public_headers.py --audit-only` (399 libraries), `check_conventions.py --base origin/main` with this title and description, `git diff --check`. - `tools/pr_overlap.py --branch`: no overlap with open pull requests (2,023 probed). - Not run: the full `libs` build, Windows, macOS, a console, any title. ### 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: <!-- #PR, or none --> none - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> none - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> n/a - [x] AI-assisted: <!-- yes / no --> yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-11-01 19:11:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T19:11:36Z.

Review: COMMENTED


Reviewed — no blocking findings

Every NID survives the renames: the eight NpTcs names hash to the NIDs they replace, and the FreeType helpers keep their explicit aliases. Approval waits for the hosted jobs, which had not finished at review time.

What I ran

  • Head c464590c219c7a1ef2300b542e939b364d22c4db; base f2d874c1fd (merge base is the same commit). 7 files, +91/-99: libSceNpTcs (2 files), libfreetype (3 files), and two debt files. I read the whole diff.
  • NID check with tools/nid_names.py compute_nid: the eight NpTcs names (sceNpTcsInt…) hash to the eight NIDs the old helpers carried, 8 of 8. For libfreetype, the FT_ names hash to the explicit NIDs they keep, 10 of 10 sampled. The C helper identifiers do not hash, which is expected because those exports keep their explicit alias.
  • Each new identifier appears in exactly one definition and one header declaration; none is declared twice in core/.
  • Bodies are unchanged: each still throws through NotImplemented_nid_no_patch.
  • Precheck report at this exact head (head and base unchanged at completion). Its ABI and test-quality rows failed because their helpers are not in the head tree; I reran the ABI audit by hand. Details below.

Results

Check Result Note
Diff check passed
Conventions and PR template passed
Mergeability and dependencies passed
NIDs of renamed libSceNpTcs exports passed 8 of 8 names hash to the NIDs they replace
NIDs of renamed libfreetype exports passed explicit aliases kept; FT_ names hash to them, 10 of 10 sampled
Duplicate identifiers passed each name in one definition and one header declaration
Export ABI audit (by hand) passed 67 symbols; 32 renamed identifiers reported as removed, with NIDs kept
Test quality not applicable no test sources change
Build and runtime tests not run no build
Negative controls not run no test changes
Hosted CI not run conventions, intake and labels passed; other jobs had not run at review time
Commands and unedited precheck output

Commands:

  • Precheck: python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14827 --output-dir <scratch>/precheck/14827 (report.md in that directory).
  • ABI audit, by hand, from the main checkout: python3 tools/pr_abi_audit.py --base f2d874c1fd --head c464590c219c7a1ef2300b542e939b364d22c4db --json. Result: passed_with_warnings; 67 symbols; 32 export-removed findings, which are the 32 renamed identifiers. The audit's "0 alias mismatches" does not cover the helpers, because their computed NIDs are null; the NID check above is the evidence for them.
  • NID check: tools/nid_names.py compute_nid on each new name against the NID in the explicit alias (or against the NID the old name carried).

Precheck table (unedited):

Check Status Command / reason
build_and_compile not_applicable The precheck deliberately does not configure, build, or compile AnyPS5.
diff_check passed git diff --check f2d874c1fdccf781c0fa5d86619bb5dd8894b958...c464590c219c7a1ef2300b542e939b364d22c4db
conventions_and_pr_template passed /marc/Conlyse-VIEJO/.venv/bin/python3 tools/check_conventions.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head c464590c219c7a1ef2300b542e939b364d22c4db --title refactor(prx): name the libfreetype and NpTcs stubs the NID database resolves --body /dev/shm/reviewer-run/precheck/14827/pr-body.md
changed_export_abi_audit failed /marc/Conlyse-VIEJO/.venv/bin/python3 tools/pr_abi_audit.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head c464590c219c7a1ef2300b542e939b364d22c4db --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.
python_test_registration not_applicable No changed test_*.py files.
live_dependency_and_mergeability_check passed /marc/Conlyse-VIEJO/.venv/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14827 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14827/stack
build_dependent_cpp_tests not_applicable Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.
test_quality_heuristics failed /marc/Conlyse-VIEJO/.venv/bin/python3 /dev/shm/reviewer-run/precheck/14827/head-c464590c219c-b351aad9/tools/pr_test_quality.py --root /dev/shm/reviewer-run/precheck/14827/head-c464590c219c-b351aad9 --json core/libs/prx/libSceNpTcs/Export.cpp core/libs/prx/libSceNpTcs/include/LegacyExports.hpp core/libs/prx/libfreetype/Export.cpp core/libs/prx/libfreetype/include/InventoryExports.hpp core/libs/prx/libfreetype/include/LegacyExports.hpp docs/dev/debt/libSceNpTcs.md docs/dev/debt/libfreetype.md
negative_controls not_applicable No changed Python test module in tools/ can be run as a no-build base-source control.

Negative control

Not run. The change has no test to control.

Findings

Blocking

None.

Non-blocking

  • The eight libSceNpTcs functions take their NIDs from their names now, so renaming any of them again changes its export. The debt file's claim that the NID of each name matches is correct; it is worth a comment in the source, or a check in nid_names.py, so the next rename does not break it.
  • The libfreetype helper identifiers differ from the FreeType names (libfreetypePaletteDataGet for FT_Palette_Data_Get). That is the design the PR body describes, and the NIDs are kept by the explicit aliases.

Sources

Not verified

  • The NIDs were checked against the pinned aerolib name database through the repository's compute_nid, not against a console.
  • Signatures and behaviour of the stubs are unknown (the debt entries say so).
  • No build, no Windows or macOS run; the hosted jobs had not finished at review time.

To get this to a good state

  • Nothing blocking. Approval waits for the hosted jobs to pass on this head.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5729795667 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14827#pullrequestreview-5729795667). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T19:11:36Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Every NID survives the renames: the eight NpTcs names hash to the NIDs they replace, and the FreeType helpers keep their explicit aliases. Approval waits for the hosted jobs, which had not finished at review time. ## What I ran - Head `c464590c219c7a1ef2300b542e939b364d22c4db`; base `f2d874c1fd` (merge base is the same commit). 7 files, +91/-99: libSceNpTcs (2 files), libfreetype (3 files), and two debt files. I read the whole diff. - NID check with `tools/nid_names.py` `compute_nid`: the eight NpTcs names (`sceNpTcsInt…`) hash to the eight NIDs the old helpers carried, 8 of 8. For libfreetype, the `FT_` names hash to the explicit NIDs they keep, 10 of 10 sampled. The C helper identifiers do not hash, which is expected because those exports keep their explicit alias. - Each new identifier appears in exactly one definition and one header declaration; none is declared twice in `core/`. - Bodies are unchanged: each still throws through `NotImplemented_nid_no_patch`. - Precheck report at this exact head (head and base unchanged at completion). Its ABI and test-quality rows failed because their helpers are not in the head tree; I reran the ABI audit by hand. Details below. ## Results | Check | Result | Note | | --- | --- | --- | | Diff check | passed | | | Conventions and PR template | passed | | | Mergeability and dependencies | passed | | | NIDs of renamed libSceNpTcs exports | passed | 8 of 8 names hash to the NIDs they replace | | NIDs of renamed libfreetype exports | passed | explicit aliases kept; FT_ names hash to them, 10 of 10 sampled | | Duplicate identifiers | passed | each name in one definition and one header declaration | | Export ABI audit (by hand) | passed | 67 symbols; 32 renamed identifiers reported as removed, with NIDs kept | | Test quality | not applicable | no test sources change | | Build and runtime tests | not run | no build | | Negative controls | not run | no test changes | | Hosted CI | not run | conventions, intake and labels passed; other jobs had not run at review time | <details><summary>Commands and unedited precheck output</summary> Commands: - Precheck: `python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14827 --output-dir <scratch>/precheck/14827` (report.md in that directory). - ABI audit, by hand, from the main checkout: `python3 tools/pr_abi_audit.py --base f2d874c1fd --head c464590c219c7a1ef2300b542e939b364d22c4db --json`. Result: passed_with_warnings; 67 symbols; 32 export-removed findings, which are the 32 renamed identifiers. The audit's "0 alias mismatches" does not cover the helpers, because their computed NIDs are null; the NID check above is the evidence for them. - NID check: `tools/nid_names.py` `compute_nid` on each new name against the NID in the explicit alias (or against the NID the old name carried). Precheck table (unedited): | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check f2d874c1fdccf781c0fa5d86619bb5dd8894b958...c464590c219c7a1ef2300b542e939b364d22c4db` | | conventions_and_pr_template | passed | `/marc/Conlyse-VIEJO/.venv/bin/python3 tools/check_conventions.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head c464590c219c7a1ef2300b542e939b364d22c4db --title refactor(prx): name the libfreetype and NpTcs stubs the NID database resolves --body /dev/shm/reviewer-run/precheck/14827/pr-body.md` | | changed_export_abi_audit | failed | `/marc/Conlyse-VIEJO/.venv/bin/python3 tools/pr_abi_audit.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head c464590c219c7a1ef2300b542e939b364d22c4db --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/marc/Conlyse-VIEJO/.venv/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14827 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14827/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/marc/Conlyse-VIEJO/.venv/bin/python3 /dev/shm/reviewer-run/precheck/14827/head-c464590c219c-b351aad9/tools/pr_test_quality.py --root /dev/shm/reviewer-run/precheck/14827/head-c464590c219c-b351aad9 --json core/libs/prx/libSceNpTcs/Export.cpp core/libs/prx/libSceNpTcs/include/LegacyExports.hpp core/libs/prx/libfreetype/Export.cpp core/libs/prx/libfreetype/include/InventoryExports.hpp core/libs/prx/libfreetype/include/LegacyExports.hpp docs/dev/debt/libSceNpTcs.md docs/dev/debt/libfreetype.md` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | </details> ## Negative control Not run. The change has no test to control. ## Findings **Blocking** None. **Non-blocking** - The eight libSceNpTcs functions take their NIDs from their names now, so renaming any of them again changes its export. The debt file's claim that the NID of each name matches is correct; it is worth a comment in the source, or a check in `nid_names.py`, so the next rename does not break it. - The libfreetype helper identifiers differ from the FreeType names (`libfreetypePaletteDataGet` for `FT_Palette_Data_Get`). That is the design the PR body describes, and the NIDs are kept by the explicit aliases. ## Sources - libSceNpTcs renamed functions: https://github.com/boykopovar/AnyPS5/blob/c464590c219c7a1ef2300b542e939b364d22c4db/core/libs/prx/libSceNpTcs/Export.cpp#L30-L58 - libSceNpTcs declarations: https://github.com/boykopovar/AnyPS5/blob/c464590c219c7a1ef2300b542e939b364d22c4db/core/libs/prx/libSceNpTcs/include/LegacyExports.hpp - libfreetype renamed helpers: https://github.com/boykopovar/AnyPS5/blob/c464590c219c7a1ef2300b542e939b364d22c4db/core/libs/prx/libfreetype/Export.cpp - Debt entries: https://github.com/boykopovar/AnyPS5/blob/c464590c219c7a1ef2300b542e939b364d22c4db/docs/dev/debt/libSceNpTcs.md and https://github.com/boykopovar/AnyPS5/blob/c464590c219c7a1ef2300b542e939b364d22c4db/docs/dev/debt/libfreetype.md ## Not verified - The NIDs were checked against the pinned aerolib name database through the repository's `compute_nid`, not against a console. - Signatures and behaviour of the stubs are unknown (the debt entries say so). - No build, no Windows or macOS run; the hosted jobs had not finished at review time. ## To get this to a good state - Nothing blocking. Approval waits for the hosted jobs to pass on this head.
MarcZX10 commented 2026-11-01 19:12:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T19:12:07Z.

Review: APPROVED


Reviewed — looks good

The export rename preserves the 32 existing NIDs at head c464590c219c7a1ef2300b542e939b364d22c4db; the required hosted checks passed.

What I ran

Reviewed head c464590c219c7a1ef2300b542e939b364d22c4db against base f2d874c1fdccf781c0fa5d86619bb5dd8894b958; the exact-head merge preview was clean. Environment: Debian GNU/Linux 12, Python 3.11.2, Git 2.39.5. No build or compiler run.

git diff --check f2d874c1fdccf781c0fa5d86619bb5dd8894b958...c464590c219c7a1ef2300b542e939b364d22c4db
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14827
python3 tools/pr_stack_check.py 14827 --repo boykopovar/AnyPS5
python3 tools/pr_abi_audit.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head c464590c219c7a1ef2300b542e939b364d22c4db --json
python3 tools/nid_names.py --db /tmp/AnyPS5-aerolib-2883963a.csv --nid <the 24 FreeType NIDs>
python3 tools/nid_names.py --db /tmp/AnyPS5-aerolib-2883963a.csv --name <the 8 NpTcs names>

Results

Check Result Note
Diff and conventions passed No whitespace errors; hosted conventions passed
NID mapping passed All 32 names map to the existing NIDs
Merge preview passed Clean against current main
Hosted CI passed Intake, conventions and labels
Isolated precheck failed Two optional local audit helpers are absent from the PR snapshot
Build and runtime not run No build required for initial review
Commands and raw results

git diff --check ...: no output; exit status 0.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14827:

Conclusion: checks failed
Head unchanged at completion: True
Base unchanged at completion: True
conventions_and_pr_template: passed — All conventions checks passed.
changed_export_abi_audit: failed — tools/pr_abi_audit.py is absent from the isolated PR snapshot.
live_dependency_and_mergeability_check: passed
build_dependent_cpp_tests: not_applicable — exact-head binaries require a build.
test_quality_heuristics: failed — tools/pr_test_quality.py is absent from the isolated PR snapshot.

Local ABI audit status: passed_with_warnings; its 32 warnings are removals of the old placeholder names, which this rename intentionally replaces. Manual source comparison confirmed each target definition and declaration. The merge report says: All heads unchanged: True; PR #14827: clean against current base.

Pinned database lookup for the eight NpTcs names:

NAME                                     NID
sceNpTcsIntUploadDataToNewSlot           -Bbx0u2xR4Q
sceNpTcsIntCreateContext                 3ruFwEv4KQg
sceNpTcsIntUploadDataToNewSlotEnd        Mlt9z-KrFc4
sceNpTcsIntDestroyContext                ORvFvy4FTvs
sceNpTcsIntAbortRequest                  Qx4CWBw5quY
sceNpTcsIntDestroyRequest                YTUqdMJrU6Q
sceNpTcsIntUploadDataToNewSlotWrite      ik-uhY6YvWk
sceNpTcsIntCreateRequest                 xSse4lLrSNA

The FreeType lookup returned 24 suggestions and 0 names already in use; their explicit APS5_EXPORT aliases are unchanged in the diff. Hosted checks at this head: conventions pass, intake pass, labels pass.

Negative control

Not applicable: this PR changes export names and declarations only; it adds no tests or assertions to exercise with a negative control.

Findings

Blocking

None found in the reviewed diff.

Non-blocking

The automated ABI audit flags the old export names as removed; manual comparison confirms each is replaced by the intended name while preserving the NID mapping.

Sources

Not verified

No local build, full C++ test suite, Windows/macOS build, console runtime, or title-level behavior was run. The build and RTLD_NOW results in the PR description are author-reported, not independently reproduced here.

To get this to a good state

No changes are required based on this review. If the head changes, I will repeat the diff, NID mapping and relevant checks on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5729797357 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14827#pullrequestreview-5729797357). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T19:12:07Z. **Review:** APPROVED --- # Reviewed — looks good The export rename preserves the 32 existing NIDs at head `c464590c219c7a1ef2300b542e939b364d22c4db`; the required hosted checks passed. ## What I ran Reviewed head `c464590c219c7a1ef2300b542e939b364d22c4db` against base `f2d874c1fdccf781c0fa5d86619bb5dd8894b958`; the exact-head merge preview was clean. Environment: Debian GNU/Linux 12, Python 3.11.2, Git 2.39.5. No build or compiler run. ```sh git diff --check f2d874c1fdccf781c0fa5d86619bb5dd8894b958...c464590c219c7a1ef2300b542e939b364d22c4db python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14827 python3 tools/pr_stack_check.py 14827 --repo boykopovar/AnyPS5 python3 tools/pr_abi_audit.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head c464590c219c7a1ef2300b542e939b364d22c4db --json python3 tools/nid_names.py --db /tmp/AnyPS5-aerolib-2883963a.csv --nid <the 24 FreeType NIDs> python3 tools/nid_names.py --db /tmp/AnyPS5-aerolib-2883963a.csv --name <the 8 NpTcs names> ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | No whitespace errors; hosted conventions passed | | NID mapping | passed | All 32 names map to the existing NIDs | | Merge preview | passed | Clean against current `main` | | Hosted CI | passed | Intake, conventions and labels | | Isolated precheck | failed | Two optional local audit helpers are absent from the PR snapshot | | Build and runtime | not run | No build required for initial review | <details><summary>Commands and raw results</summary> `git diff --check ...`: no output; exit status 0. `python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14827`: ```text Conclusion: checks failed Head unchanged at completion: True Base unchanged at completion: True conventions_and_pr_template: passed — All conventions checks passed. changed_export_abi_audit: failed — tools/pr_abi_audit.py is absent from the isolated PR snapshot. live_dependency_and_mergeability_check: passed build_dependent_cpp_tests: not_applicable — exact-head binaries require a build. test_quality_heuristics: failed — tools/pr_test_quality.py is absent from the isolated PR snapshot. ``` Local ABI audit status: `passed_with_warnings`; its 32 warnings are removals of the old placeholder names, which this rename intentionally replaces. Manual source comparison confirmed each target definition and declaration. The merge report says: `All heads unchanged: True`; `PR #14827: clean against current base`. Pinned database lookup for the eight NpTcs names: ```text NAME NID sceNpTcsIntUploadDataToNewSlot -Bbx0u2xR4Q sceNpTcsIntCreateContext 3ruFwEv4KQg sceNpTcsIntUploadDataToNewSlotEnd Mlt9z-KrFc4 sceNpTcsIntDestroyContext ORvFvy4FTvs sceNpTcsIntAbortRequest Qx4CWBw5quY sceNpTcsIntDestroyRequest YTUqdMJrU6Q sceNpTcsIntUploadDataToNewSlotWrite ik-uhY6YvWk sceNpTcsIntCreateRequest xSse4lLrSNA ``` The FreeType lookup returned 24 suggestions and `0 names already in use`; their explicit `APS5_EXPORT` aliases are unchanged in the diff. Hosted checks at this head: `conventions pass`, `intake pass`, `labels pass`. </details> ## Negative control Not applicable: this PR changes export names and declarations only; it adds no tests or assertions to exercise with a negative control. ## Findings ### Blocking None found in the reviewed diff. ### Non-blocking The automated ABI audit flags the old export names as removed; manual comparison confirms each is replaced by the intended name while preserving the NID mapping. ## Sources - [PR export and declaration changes at the reviewed head](https://github.com/boykopovar/AnyPS5/commit/c464590c219c7a1ef2300b542e939b364d22c4db) - [Pinned aerolib NID database](https://github.com/zecoxao/sce_symbols/blob/2883963a0a514ba6e77407a08ef4730a65e88254/aerolib.csv) ## Not verified No local build, full C++ test suite, Windows/macOS build, console runtime, or title-level behavior was run. The build and RTLD_NOW results in the PR description are author-reported, not independently reproduced here. ## To get this to a good state No changes are required based on this review. If the head changes, I will repeat the diff, NID mapping and relevant checks on the new head.
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!14827
No description provided.