fix(exports): export the calls PPSA01530, PPSA23827 and PPSA13356 import #3337

Merged
reyani-dev merged 4 commits from upstream-pr/3337 into main 2026-10-11 09:16:46 +00:00
reyani-dev commented 2026-10-11 08:06:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-11T08:06:16Z.


What

Carries the first two commits of @xXPBSXx's #3177 branch (the author is under the intake threshold). Both commits are theirs, unchanged (e5831c99, 2eb35317). They export the imports that keep three retail titles from loading on Windows.

  • Puyo Puyo Tetris 2 (PPSA01530):
    • _sceUltWaitingQueueResourcePoolCreate and _sceUltSemaphoreCreate are forwarded to the existing calls, like the other underscore Ult exports.
    • sceNetShowIfconfig and sce::Json::Value::setNullAccessCallBack are declared and throw "not implemented".
    • With these, the title loads and stops later at a compute-shader storage-image error (#1409).
  • Cloudberry Kingdom (PPSA23827): kqueue and kevent are declared and throw "not implemented".
  • Raiden III (PPSA13356): the pad import with no known name (n3kSX62fgNo) is exported under its NID and throws.

After this, the relinker audit reports no absent imports for PPSA01530 and PPSA13356. The unknown signatures are listed in TechnicalDebt.md.

I left out the branch's third commit, which replaces the throwing kqueue/kevent with EVFILT_VNODE watches that never fire. That one needs more discussion (see my note on #3177), and it belongs in its own PR.

A third commit of mine addresses the review:

  • it drops the sceNpWebApi2GetMemoryPoolStats stub, which #3296 implements;
  • it registers guest_ppsa01530_exports in core/libs/CMakeLists.txt next to the other cross-library guest tests;
  • it removes a duplicate include in Equeue.cpp.

Rebased onto current main.

Part of #3177.

Tested

Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON, on main 2bb78d2c.

  • guest_ppsa01530_exports, the guest_ult_thread_* tests (including the new guest_ult_thread_underscoredcreate) and guest_pad pass 3/3.
  • ctest -E "^agc_|video_out" on the rebased head: 442/442.
  • check_conventions.py passes. pr_overlap.py reports only #3315, which appends a different line at the end of TechnicalDebt.md.

The title results are xXPBSXx's runs from #3177; danzaio confirmed the branch's tests on Windows there.

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 in TechnicalDebt
  • 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: #3296 (sceNpWebApi2GetMemoryPoolStats)
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4817610264 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3337). Originally posted by [reyani-dev](https://github.com/reyani-dev) on 2026-10-11T08:06:16Z. --- ### What Carries the first two commits of @xXPBSXx's #3177 branch (the author is under the intake threshold). Both commits are theirs, unchanged (`e5831c99`, `2eb35317`). They export the imports that keep three retail titles from loading on Windows. - **Puyo Puyo Tetris 2 (PPSA01530):** - `_sceUltWaitingQueueResourcePoolCreate` and `_sceUltSemaphoreCreate` are forwarded to the existing calls, like the other underscore Ult exports. - `sceNetShowIfconfig` and `sce::Json::Value::setNullAccessCallBack` are declared and throw "not implemented". - With these, the title loads and stops later at a compute-shader storage-image error (#1409). - **Cloudberry Kingdom (PPSA23827):** `kqueue` and `kevent` are declared and throw "not implemented". - **Raiden III (PPSA13356):** the pad import with no known name (`n3kSX62fgNo`) is exported under its NID and throws. After this, the relinker audit reports no absent imports for PPSA01530 and PPSA13356. The unknown signatures are listed in `TechnicalDebt.md`. I left out the branch's third commit, which replaces the throwing `kqueue`/`kevent` with `EVFILT_VNODE` watches that never fire. That one needs more discussion (see my note on #3177), and it belongs in its own PR. A third commit of mine addresses the review: - it drops the `sceNpWebApi2GetMemoryPoolStats` stub, which #3296 implements; - it registers `guest_ppsa01530_exports` in `core/libs/CMakeLists.txt` next to the other cross-library guest tests; - it removes a duplicate include in `Equeue.cpp`. Rebased onto current `main`. Part of #3177. ### Tested Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, Release, `BUILD_TESTING=ON`, on `main` `2bb78d2c`. - `guest_ppsa01530_exports`, the `guest_ult_thread_*` tests (including the new `guest_ult_thread_underscoredcreate`) and `guest_pad` pass 3/3. - `ctest -E "^agc_|video_out"` on the rebased head: 442/442. - `check_conventions.py` passes. `pr_overlap.py` reports only #3315, which appends a different line at the end of `TechnicalDebt.md`. The title results are xXPBSXx's runs from #3177; danzaio confirmed the branch's tests on Windows there. ### 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`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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: #3296 (`sceNpWebApi2GetMemoryPoolStats`) - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-11 08:09:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T08:09:27Z.


Progress report (90c152e → 3c8c02f)

📉 System libraries: 85.45% (-0.12%, +2 implemented, +5 declared functions)

✅ 2 implemented
Library Name
libSceUlt _sceUltSemaphoreCreate
libSceUlt _sceUltWaitingQueueResourcePoolCreate
🆕 5 declared as stubs
Library Name
libSceJson2 _ZN3sce4Json5Value21setNullAccessCallBackEPFRKS1_NS0_9ValueTypeEPS2_PvES6_
libSceNet sceNetShowIfconfig
libScePad scePadUnknown_n3kSX62fgNo
libkernel kevent_nid_postfix
libkernel kqueue_nid_postfix
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106989588 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3337#issuecomment-6106989588). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T08:09:27Z. --- <!-- progress-report --> ### Progress report (90c152e → 3c8c02f) 📉 **System libraries**: 85.45% (-0.12%, +2 implemented, +5 declared functions) <details> <summary>✅ 2 implemented</summary> | Library | Name | | - | - | | libSceUlt | `_sceUltSemaphoreCreate` | | libSceUlt | `_sceUltWaitingQueueResourcePoolCreate` | </details> <details> <summary>🆕 5 declared as stubs</summary> | Library | Name | | - | - | | libSceJson2 | `_ZN3sce4Json5Value21setNullAccessCallBackEPFRKS1_NS0_9ValueTypeEPS2_PvES6_` | | libSceNet | `sceNetShowIfconfig` | | libScePad | `scePadUnknown_n3kSX62fgNo` | | libkernel | `kevent_nid_postfix` | | libkernel | `kqueue_nid_postfix` | </details>
adriadam10 commented 2026-10-11 08:45:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T08:45:17Z.

Review: CHANGES_REQUESTED


Built on Linux merged onto current main: guest_ult_thread_* (including underscoredcreate) and guest_ppsa01530_exports pass. Three things to fix:

  • sceNpWebApi2GetMemoryPoolStats is already implemented by open #3296 (core/libs/prx/libSceNpWebApi2/Export.cpp, same export). Drop the throwing stub here, its entry in GuestPPSA01530Exports.cpp (lines 9 and 25) and its name in the TechnicalDebt.md line, and list #3296 under Depends on. The rest of the PR can stay.
  • core/libs/prx/libkernel/Equeue/Equeue.cpp:2 adds #include "prx/libc/include/General.hpp", which is already included on line 4. Remove it.
  • core/libs/prx/libSceHmd2/CMakeLists.txt: the new test is registered in the Hmd2 directory, which has nothing to do with it. Register it where its own libraries live (or in core/libs/CMakeLists.txt next to the other cross-library guest tests).
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5482609015 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3337#pullrequestreview-5482609015). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T08:45:17Z. **Review:** CHANGES_REQUESTED --- Built on Linux merged onto current `main`: `guest_ult_thread_*` (including `underscoredcreate`) and `guest_ppsa01530_exports` pass. Three things to fix: - `sceNpWebApi2GetMemoryPoolStats` is already implemented by open #3296 (`core/libs/prx/libSceNpWebApi2/Export.cpp`, same export). Drop the throwing stub here, its entry in `GuestPPSA01530Exports.cpp` (lines 9 and 25) and its name in the `TechnicalDebt.md` line, and list #3296 under **Depends on**. The rest of the PR can stay. - `core/libs/prx/libkernel/Equeue/Equeue.cpp:2` adds `#include "prx/libc/include/General.hpp"`, which is already included on line 4. Remove it. - `core/libs/prx/libSceHmd2/CMakeLists.txt`: the new test is registered in the Hmd2 directory, which has nothing to do with it. Register it where its own libraries live (or in `core/libs/CMakeLists.txt` next to the other cross-library guest tests).
reyani-dev commented 2026-10-11 09:01:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-11T09:01:39Z.


Thanks @adriadam10, all three are done in a4d66236 (rebased onto current main):

  • The sceNpWebApi2GetMemoryPoolStats stub is gone, along with its two test lines and its name in the TechnicalDebt line. #3296 is listed under Depends on.
  • The duplicate General.hpp include in Equeue.cpp is removed.
  • guest_ppsa01530_exports is registered in core/libs/CMakeLists.txt next to the other cross-library guest tests. It no longer links libSceNpWebApi2, and libSceHmd2/CMakeLists.txt is unchanged from main.

Windows 11 / GCC 15.2: the PR's tests pass 3/3 and ctest -E "^agc_|video_out" passes 442/442.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107382809 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3337#issuecomment-6107382809). Originally posted by [reyani-dev](https://github.com/reyani-dev) on 2026-10-11T09:01:39Z. --- Thanks @adriadam10, all three are done in `a4d66236` (rebased onto current `main`): - The `sceNpWebApi2GetMemoryPoolStats` stub is gone, along with its two test lines and its name in the TechnicalDebt line. #3296 is listed under Depends on. - The duplicate `General.hpp` include in `Equeue.cpp` is removed. - `guest_ppsa01530_exports` is registered in `core/libs/CMakeLists.txt` next to the other cross-library guest tests. It no longer links libSceNpWebApi2, and `libSceHmd2/CMakeLists.txt` is unchanged from `main`. Windows 11 / GCC 15.2: the PR's tests pass 3/3 and `ctest -E "^agc_|video_out"` passes 442/442.
adriadam10 commented 2026-10-11 09:12:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T09:12:37Z.

Review: APPROVED


Checked on Linux merged onto current main: guest_ppsa01530_exports and guest_ult_thread_* (including underscoredcreate) pass, and the test does not link without the change. The export names exist in the NID database.

Added on top of your branch:

  • docs/dev/TechnicalDebt.md: moved the line from the end of the file into "Unknown function info" (everyone appends at the end, so it conflicts), and noted that the _sceUlt*Create forwards take their argument lists from the sibling underscore exports, not from a measurement.

Merging once CI is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5482706929 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3337#pullrequestreview-5482706929). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T09:12:37Z. **Review:** APPROVED --- Checked on Linux merged onto current `main`: `guest_ppsa01530_exports` and `guest_ult_thread_*` (including `underscoredcreate`) pass, and the test does not link without the change. The export names exist in the NID database. Added on top of your branch: - `docs/dev/TechnicalDebt.md`: moved the line from the end of the file into "Unknown function info" (everyone appends at the end, so it conflicts), and noted that the `_sceUlt*Create` forwards take their argument lists from the sibling underscore exports, not from a measurement. Merging once CI is green.
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!3337
No description provided.