feat(Party): export the Party module's functions #15945

Merged
ItsJustChrisE merged 2 commits from upstream-pr/15945 into main 2026-11-13 05:33:03 +00:00
ItsJustChrisE commented 2026-11-05 02:08:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ItsJustChrisE on 2026-11-05T02:08:58Z.


What

Adds a Party library that exports the 26 functions titles import from the Party module. Their names and signatures are unknown (no sceParty* or sceNpParty* candidate name hashes to any of them), so each one is a literal NID alias that throws through NotImplemented_nid_no_patch. The NIDs are listed in docs/dev/debt/Party.md.

Without this library a Windows build stops before the entry point with Failed to load module: libs\Party.prx (GetLastError 126), because each Windows import is bound to the library it names. 16 of these NIDs are already exported by libkernel as sceKernelUnknown03–sceKernelUnknown19, but those copies cannot satisfy imports that name Party. I left libkernel unchanged.

Tested

Windows 11 Pro 10.0.26300, Ryzen 7 7700X, RTX 3080 (Selected GPU name=NVIDIA GeForce RTX 3080), WinLibs GCC 15.2.0 r7, Release. Street Fighter 6, PPSA02632, content version 01.000.000, dumped from my own copy.

  • On main c21eb9a4d0 without this change, the converted title exits at start-up with Failed to load module: ...\libs\Party.prx, GetLastError 126.
  • On this branch (rebased on acac7c8541), tools/audit_dump.py --windows exits 0 with no absent imports and no missing libraries. The title then ran for the full 300 s cap with no crash. [present] went from 27–79 presents per 10 s while loading to a steady 115 per 10 s at the end. Empty shader caches; APS5_PROFILE_DRAW=1, APS5_LOG_TIMESTAMPS=1, ANYPS5_HOST_REPORT=1, ANYPS5_GPU=RTX 3080; no input sent. I did not check what was on screen.
  • No Party export was called during the run: the log has no not implemented line.
  • tools/check_conventions.py --base origin/main passed; tools/pr_overlap.py found no overlap.

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: PPSA02632 https://github.com/boykopovar/AnyPS5/discussions/8229
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5164866630 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15945). Originally posted by [ItsJustChrisE](https://github.com/ItsJustChrisE) on 2026-11-05T02:08:58Z. --- ### What Adds a `Party` library that exports the 26 functions titles import from the `Party` module. Their names and signatures are unknown (no `sceParty*` or `sceNpParty*` candidate name hashes to any of them), so each one is a literal NID alias that throws through `NotImplemented_nid_no_patch`. The NIDs are listed in `docs/dev/debt/Party.md`. Without this library a Windows build stops before the entry point with `Failed to load module: libs\Party.prx` (GetLastError 126), because each Windows import is bound to the library it names. 16 of these NIDs are already exported by libkernel as `sceKernelUnknown03`–`sceKernelUnknown19`, but those copies cannot satisfy imports that name `Party`. I left libkernel unchanged. ### Tested Windows 11 Pro 10.0.26300, Ryzen 7 7700X, RTX 3080 (`Selected GPU name=NVIDIA GeForce RTX 3080`), WinLibs GCC 15.2.0 r7, Release. Street Fighter 6, PPSA02632, content version 01.000.000, dumped from my own copy. - On `main` c21eb9a4d0 without this change, the converted title exits at start-up with `Failed to load module: ...\libs\Party.prx`, GetLastError 126. - On this branch (rebased on acac7c8541), `tools/audit_dump.py --windows` exits 0 with no absent imports and no missing libraries. The title then ran for the full 300 s cap with no crash. `[present]` went from 27–79 presents per 10 s while loading to a steady 115 per 10 s at the end. Empty shader caches; `APS5_PROFILE_DRAW=1`, `APS5_LOG_TIMESTAMPS=1`, `ANYPS5_HOST_REPORT=1`, `ANYPS5_GPU=RTX 3080`; no input sent. I did not check what was on screen. - No `Party` export was called during the run: the log has no `not implemented` line. - `tools/check_conventions.py --base origin/main` passed; `tools/pr_overlap.py` found no overlap. ### 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: PPSA02632 https://github.com/boykopovar/AnyPS5/discussions/8229 - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Superseabas commented 2026-11-05 11:51:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Superseabas on 2026-11-05T11:51:28Z.

Review: APPROVED


Head f0d461044b merged onto current main e772fb25cc (clean merge, local only): code read, build and export check on Windows. I don't have the title, so the start-up fix itself isn't reproduced here.

Windows 11 Home 10.0.26200, WinLibs GCC 16.2.0 (x86_64-ucrt-posix-seh, r3), Release, BUILD_TESTING=ON.

  • Build. After a CMake reconfigure, the full build produces core/libs/libs/unpatched/Party.prx and the patched core/libs/libs/Party.prx. A reconfigure is needed because prx/* is collected by file(GLOB …); a fresh CI configure isn't affected.
  • Exports. objdump -p on the patched Party.prx lists 52 names:
    • exactly the 26 NIDs in docs/dev/debt/Party.md, each once;
    • plus the 26 PartyUnknown_*_nid_no_patch host symbols, the same pattern other modules show, for example libSceMbus.
  • Source. The 26 APS5_EXPORT NIDs, the 26 functions and the 26 declarations in include/InventoryExports.hpp are the same sets. Each body calls NotImplemented_nid_no_patch(__func__). 16 of the NIDs are also exported by libkernel, as the description says.
  • Checks. ctest -R '(nid|export|inventory|public_headers$|audit|debt|duplicate|registration|unbuilt)' selects 86 tests. The result is the same on main and on the merge: 85 pass, and test_registration fails on this machine for the unrelated symbolic-link privilege gap that #15652 fixes. public_headers passes on the merge, and check_conventions.py --base main passes.

Read through the change: add_library(Party SHARED EXCLUDE_FROM_ALL Export.cpp) follows the same pattern as the other prx libraries (148 of them use EXCLUDE_FROM_ALL). The literal-NID aliases that throw are what CONTRIBUTING asks for when names and signatures are unknown, and the debt entry lists all 26 NIDs. I found nothing to change.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5784464592 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15945#pullrequestreview-5784464592). Originally posted by [Superseabas](https://github.com/Superseabas) on 2026-11-05T11:51:28Z. **Review:** APPROVED --- Head `f0d461044b` merged onto current `main` `e772fb25cc` (clean merge, local only): code read, build and export check on Windows. I don't have the title, so the start-up fix itself isn't reproduced here. Windows 11 Home 10.0.26200, WinLibs GCC 16.2.0 (`x86_64-ucrt-posix-seh`, r3), Release, `BUILD_TESTING=ON`. - **Build.** After a CMake reconfigure, the full build produces `core/libs/libs/unpatched/Party.prx` and the patched `core/libs/libs/Party.prx`. A reconfigure is needed because `prx/*` is collected by `file(GLOB …)`; a fresh CI configure isn't affected. - **Exports.** `objdump -p` on the patched `Party.prx` lists 52 names: - exactly the 26 NIDs in `docs/dev/debt/Party.md`, each once; - plus the 26 `PartyUnknown_*_nid_no_patch` host symbols, the same pattern other modules show, for example `libSceMbus`. - **Source.** The 26 `APS5_EXPORT` NIDs, the 26 functions and the 26 declarations in `include/InventoryExports.hpp` are the same sets. Each body calls `NotImplemented_nid_no_patch(__func__)`. 16 of the NIDs are also exported by libkernel, as the description says. - **Checks.** `ctest -R '(nid|export|inventory|public_headers$|audit|debt|duplicate|registration|unbuilt)'` selects 86 tests. The result is the same on `main` and on the merge: 85 pass, and `test_registration` fails on this machine for the unrelated symbolic-link privilege gap that #15652 fixes. `public_headers` passes on the merge, and `check_conventions.py --base main` passes. Read through the change: `add_library(Party SHARED EXCLUDE_FROM_ALL Export.cpp)` follows the same pattern as the other prx libraries (148 of them use `EXCLUDE_FROM_ALL`). The literal-NID aliases that throw are what CONTRIBUTING asks for when names and signatures are unknown, and the debt entry lists all 26 NIDs. I found nothing to change. AI-assisted: yes (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!15945
No description provided.