feat(libSceNpCppWebApi): align stub signatures with demangled symbols #8843

Merged
christophermonterocortes-cr merged 1 commit from upstream-pr/8843 into main 2026-10-21 10:00:19 +00:00
christophermonterocortes-cr commented 2026-10-21 02:34:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by christophermonterocortes-cr on 2026-10-21T02:34:00Z.


What

In core/libs/prx/libSceNpCppWebApi/Export.cpp, 93 unimplemented export stubs were previously generated with placeholder int (void) / () signatures. Using the verified demangled symbol information exported by contributor XatiX in #8143 (confirmed by NID matching against PS4-era symbols), their signatures are now aligned with their demangled C++ prototypes:

  • Member functions receive const void* self (for const methods) or void* self as their first parameter.
  • Destructors and constructors (Transaction<...>::{C1, D1}) return void.
  • Parameter objects and IsSet queries return bool.
  • Getters and accessors return their respective primitive, pointer (const char*, const void*, void*), or count/size types (std::size_t, std::uint64_t, std::uint32_t, std::int64_t, int).
  • Multi-argument member functions (Vector::operator[], Iterator::operator!=, Transaction::getResponse, TransactionBase::start) declare their full parameter list.
  • Unimplemented paths continue to throw NotImplemented_nid_no_patch(__func__).
  • The 37 functions touched by open #8264 are left untouched to prevent overlap.
  • docs/dev/debt/libSceNpCppWebApi.md is updated to record the alignment with the demangled signatures from #8143.

Tested

  • python tools/check_conventions.py --base upstream/main: All conventions checks passed.
  • python tools/pr_overlap.py --branch HEAD --base main: 0 shared exports with open PRs.
  • python -m unittest tools.tests.test_nid_names: 37/37 tests passed.
  • python -m unittest tools.tests.test_check_conventions_unknown_nids: 10/10 tests passed.
  • NID calculation: verified every modified export symbol computes to the exact expected NID.

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: #8143
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4945480075 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8843). Originally posted by [christophermonterocortes-cr](https://github.com/christophermonterocortes-cr) on 2026-10-21T02:34:00Z. --- ### What In `core/libs/prx/libSceNpCppWebApi/Export.cpp`, 93 unimplemented export stubs were previously generated with placeholder `int (void)` / `()` signatures. Using the verified demangled symbol information exported by contributor XatiX in #8143 (confirmed by NID matching against PS4-era symbols), their signatures are now aligned with their demangled C++ prototypes: - Member functions receive `const void* self` (for `const` methods) or `void* self` as their first parameter. - Destructors and constructors (`Transaction<...>::{C1, D1}`) return `void`. - Parameter objects and `IsSet` queries return `bool`. - Getters and accessors return their respective primitive, pointer (`const char*`, `const void*`, `void*`), or count/size types (`std::size_t`, `std::uint64_t`, `std::uint32_t`, `std::int64_t`, `int`). - Multi-argument member functions (`Vector::operator[]`, `Iterator::operator!=`, `Transaction::getResponse`, `TransactionBase::start`) declare their full parameter list. - Unimplemented paths continue to throw `NotImplemented_nid_no_patch(__func__)`. - The 37 functions touched by open #8264 are left untouched to prevent overlap. - `docs/dev/debt/libSceNpCppWebApi.md` is updated to record the alignment with the demangled signatures from #8143. ### Tested - `python tools/check_conventions.py --base upstream/main`: All conventions checks passed. - `python tools/pr_overlap.py --branch HEAD --base main`: 0 shared exports with open PRs. - `python -m unittest tools.tests.test_nid_names`: 37/37 tests passed. - `python -m unittest tools.tests.test_check_conventions_unknown_nids`: 10/10 tests passed. - NID calculation: verified every modified export symbol computes to the exact expected NID. ### 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: #8143 - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-21 02:45:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T02:45:03Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 8264 docs/dev/debt/libSceNpCppWebApi.md L17
PR 8561 docs/dev/debt/libSceNpCppWebApi.md L16-17
PR 8959 docs/dev/debt/libSceNpCppWebApi.md L17
PR 9015 docs/dev/debt/libSceNpCppWebApi.md L17
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6306721120 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8843#issuecomment-6306721120). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-21T02:45:03Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 8264](https://www.github.com/boykopovar/AnyPS5/pull/8264) | `docs/dev/debt/libSceNpCppWebApi.md` [L17](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/docs/dev/debt/libSceNpCppWebApi.md#L17) | | | | [PR 8561](https://www.github.com/boykopovar/AnyPS5/pull/8561) | `docs/dev/debt/libSceNpCppWebApi.md` [L16-17](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/docs/dev/debt/libSceNpCppWebApi.md#L16-L17) | | | | [PR 8959](https://www.github.com/boykopovar/AnyPS5/pull/8959) | `docs/dev/debt/libSceNpCppWebApi.md` [L17](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/docs/dev/debt/libSceNpCppWebApi.md#L17) | | | | [PR 9015](https://www.github.com/boykopovar/AnyPS5/pull/9015) | `docs/dev/debt/libSceNpCppWebApi.md` [L17](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/docs/dev/debt/libSceNpCppWebApi.md#L17) | | |
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!8843
No description provided.