refactor(prx): name the NKWebKitRequirements export aliases the NID databases resolve #17298

Merged
dkdhanda8 merged 2 commits from upstream-pr/17298 into main 2026-11-21 15:49:36 +00:00
dkdhanda8 commented 2026-11-08 17:27:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by dkdhanda8 on 2026-11-08T17:27:31Z.


What

11 of libSceNKWebKitRequirements's import-resolution placeholders resolve in the pinned public symbol databases and are renamed after their resolved symbols: the WPE loader and key-code helpers (wpe_key_code_to_unicode, wpe_loader_get_loaded_implementation_library_name, wpe_loader_init and eight siblings). Each placeholder's explicit APS5_EXPORT comes off and the bare resolved name hashes to the same NID; the debt entry's naming sentence is updated to say the 11 resolved entries carry their export names.

Every resolved name was verified by reproducing its NID with tools/nid_names.py's compute_nid and matching it against aerolib.csv and the ps5rs catalog. No behavior changes; every stub still throws through NotImplemented_nid_no_patch.

Tested

  • tools/check_conventions.py --base origin/main passes; git diff --check is clean.
  • Compiles with -fsyntax-only (MinGW g++ 15); this environment cannot link standalone throw-using objects or build the full CMake tree, so test/CI execution is deferred to the project's rig.

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); no silent stubs added
  • 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 (naming refactor)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5213464753 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17298). Originally posted by [dkdhanda8](https://github.com/dkdhanda8) on 2026-11-08T17:27:31Z. --- ### What 11 of `libSceNKWebKitRequirements`'s import-resolution placeholders resolve in the pinned public symbol databases and are renamed after their resolved symbols: the WPE loader and key-code helpers (`wpe_key_code_to_unicode`, `wpe_loader_get_loaded_implementation_library_name`, `wpe_loader_init` and eight siblings). Each placeholder's explicit `APS5_EXPORT` comes off and the bare resolved name hashes to the same NID; the debt entry's naming sentence is updated to say the 11 resolved entries carry their export names. Every resolved name was verified by reproducing its NID with `tools/nid_names.py`'s `compute_nid` and matching it against [aerolib.csv](https://github.com/zecoxao/sce_symbols/blob/2883963a0a514ba6e77407a08ef4730a65e88254/aerolib.csv) and the [ps5rs catalog](https://github.com/claimore22/ps5rs/blob/2304be5131221bae0dac24b9767cabffda33f747/data/nids.csv). No behavior changes; every stub still throws through `NotImplemented_nid_no_patch`. ### Tested - `tools/check_conventions.py --base origin/main` passes; `git diff --check` is clean. - Compiles with `-fsyntax-only` (MinGW g++ 15); this environment cannot link standalone throw-using objects or build the full CMake tree, so test/CI execution is deferred to the project's rig. ### Checklist - [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`); no silent stubs added - [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 (naming refactor) - [x] AI-assisted: yes
gabichuuuuu commented 2026-11-08 19:20:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-08T19:20:34Z.

Review: COMMENTED


Windows build of this head merged onto main 9fabd4aa7e, in one tree with the other open NID-naming PRs in this series (#17271, #17254, #17297, #17298 and #17303, which contains #17299); all merged cleanly. Setup: Windows 11, WinLibs GCC 15.2, Release, BUILD_TESTING=ON.

  • The library builds and links. All 138 guest_hmd2*, guest_user_service*, guest_icu*, guest_nkwebkit_requirements* and guest_libre_ssl* tests pass.
  • Same exports. I listed every NID the library exports before and after, using tools/nid_names.py's own rules: APS5_EXPORT literals, plus compute_nid of each APS5_VABI, assembly and data definition that isn't _nid_no_patch. The set is identical to main's, with no NID defined twice.
  • The 11 renamed NIDs were throwing Unknown stubs, and they still throw under their real wpe_* names.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5819297833 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17298#pullrequestreview-5819297833). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-08T19:20:34Z. **Review:** COMMENTED --- Windows build of this head merged onto `main` `9fabd4aa7e`, in one tree with the other open NID-naming PRs in this series (#17271, #17254, #17297, #17298 and #17303, which contains #17299); all merged cleanly. Setup: Windows 11, WinLibs GCC 15.2, Release, `BUILD_TESTING=ON`. - The library builds and links. All 138 `guest_hmd2*`, `guest_user_service*`, `guest_icu*`, `guest_nkwebkit_requirements*` and `guest_libre_ssl*` tests pass. - **Same exports.** I listed every NID the library exports before and after, using `tools/nid_names.py`'s own rules: `APS5_EXPORT` literals, plus `compute_nid` of each `APS5_VABI`, assembly and data definition that isn't `_nid_no_patch`. The set is identical to `main`'s, with no NID defined twice. - The 11 renamed NIDs were throwing `Unknown` stubs, and they still throw under their real `wpe_*` names.
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!17298
No description provided.