refactor(prx): name the NKWebKit legacy stubs the NID database resolves #15686

Merged
ItsJustChrisE merged 1 commit from upstream-pr/15686 into main 2026-11-07 22:58:53 +00:00
ItsJustChrisE commented 2026-11-04 04:53:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ItsJustChrisE on 2026-11-04T04:53:15Z.


What

Names 2161 of the 2393 older callable libSceNKWebKitLegacyUnknown_* exports in libSceNKWebKit/Export.cpp that tools/nid_names.py resolves through its pinned aerolib database (status rename-ready), as #14884, #15673, #15677 and #15678 did for other libraries. 1967 are WebCore symbols; the rest are the WebKit C API (WK*), Nicosia, PAL, JavaScriptCore and WTF. Each takes the symbol the database gives for its NID, with no suffix, as the other 6446 named NKWebKit exports do. The declarations in include/LegacyExports.hpp are renamed with them.

Every body still throws through NotImplemented_nid_no_patch, and the library exports the same NIDs as on main. A title that reaches one now fails with the function's name instead of the placeholder's. The other 232 older placeholders resolve to no name and stay as they are. The debt file gains one entry after the older callable exports, and the existing entries are unchanged.

Tested

Ubuntu 26.04 on WSL2, GCC 15.2.0, Release, main c2eafe4461. No title or homebrew run.

  • compute_nid(name) == nid for all 2161.
  • nm -D on the patched libSceNKWebKit.prx of main and this branch, ignoring the removed _nid_no_patch helper names: identical NID sets (11578).
  • ctest -R 'public_headers|patched_librar|nkwebkit|webkit': 77 of 77 passed.
  • tools/check_conventions.py --base origin/main: passed.
  • tools/progress.py --module libSceNKWebKit: 1302/11248 on both main and this branch.
  • tools/pr_overlap.py --branch: 1829 open pull requests probed. All 87 that share a file merge into this branch without conflicts, and none share exports. 12 already conflict with main (#13486, #13515, #14138, #14212, #14259, #15173, #15175, #15184, #15216, #15217, #15218, #15224), so the tool could not compare them. Merging each of them into main and into this branch gives the same conflict hunks in every shared file, so this branch adds no conflict for them.
  • Not run: Windows, the wider test suite.

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:5149082330 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15686). Originally posted by [ItsJustChrisE](https://github.com/ItsJustChrisE) on 2026-11-04T04:53:15Z. --- ### What Names 2161 of the 2393 older callable `libSceNKWebKitLegacyUnknown_*` exports in `libSceNKWebKit/Export.cpp` that `tools/nid_names.py` resolves through its pinned [aerolib database](https://github.com/zecoxao/sce_symbols/blob/2883963a0a514ba6e77407a08ef4730a65e88254/aerolib.csv) (status `rename-ready`), as #14884, #15673, #15677 and #15678 did for other libraries. 1967 are WebCore symbols; the rest are the WebKit C API (`WK*`), Nicosia, PAL, JavaScriptCore and WTF. Each takes the symbol the database gives for its NID, with no suffix, as the other 6446 named NKWebKit exports do. The declarations in `include/LegacyExports.hpp` are renamed with them. Every body still throws through `NotImplemented_nid_no_patch`, and the library exports the same NIDs as on `main`. A title that reaches one now fails with the function's name instead of the placeholder's. The other 232 older placeholders resolve to no name and stay as they are. The debt file gains one entry after the older callable exports, and the existing entries are unchanged. ### 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. --> Ubuntu 26.04 on WSL2, GCC 15.2.0, Release, `main` `c2eafe4461`. No title or homebrew run. - `compute_nid(name) == nid` for all 2161. - `nm -D` on the patched `libSceNKWebKit.prx` of `main` and this branch, ignoring the removed `_nid_no_patch` helper names: identical NID sets (11578). - `ctest -R 'public_headers|patched_librar|nkwebkit|webkit'`: 77 of 77 passed. - `tools/check_conventions.py --base origin/main`: passed. - `tools/progress.py --module libSceNKWebKit`: 1302/11248 on both `main` and this branch. - `tools/pr_overlap.py --branch`: 1829 open pull requests probed. All 87 that share a file merge into this branch without conflicts, and none share exports. 12 already conflict with `main` (#13486, #13515, #14138, #14212, #14259, #15173, #15175, #15184, #15216, #15217, #15218, #15224), so the tool could not compare them. Merging each of them into `main` and into this branch gives the same conflict hunks in every shared file, so this branch adds no conflict for them. - Not run: Windows, the wider test suite. ### 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!15686
No description provided.