feat(libSceNpWebApi2): implement sceNpWebApi2GetMemoryPoolStats #3296
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3296"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by SynnZer0 on 2026-10-11T06:04:04Z.
What
Implements
sceNpWebApi2GetMemoryPoolStats(Xweb+naPZ8Y). PPSA21703 (Vampire Survivors, Unity) imports it from its PSN plugin, and on Windows it did not start (FAIL: unresolved ELF import Xweb+naPZ8Y from libSceNpWebApi2.prx).tools/import_audit.pyreported it as the title's only absent import. The name was identified by hashing candidate names with the NID formula.sceNpWebApi2Initializerecords the pool size of the returned context;sceNpWebApi2Terminateforgets it.sceNpWebApi2GetMemoryPoolStats(int libCtxId, stats*)fills{pool_size, max_inuse_size, current_inuse_size, reserved}with the recorded size and 0 use, assceHttp2GetMemoryPoolStatsdoes, since nothing is allocated from the pool. A null output or an unknown context throws, because the error codes are unknown.docs/dev/TechnicalDebt.md: the signature and layout are assumed from the Http2 statistics, not confirmed.libSceNpWebApi2/CMakeLists.txt(new) builds the library exactly as the generic rule did, to registerguest_np_web_api2.tests/GuestNpWebApi2.cpp(new): two contexts report their own pool sizes, a null output throws, and a terminated context throws.Tested
Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs 15.2.0posix-14.0.0-ucrt-r7), full build with
BUILD_TESTING=ON:ctest: 769/769 passed (includesguest_np_web_api2andguest_http2).python tools/check_conventions.py --base origin/main: passed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T06:04:14Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T08:09:32Z.
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.
main)sceNpWebApi2GetMemoryPoolStatsImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T08:39:26Z.
Progress report (
71dda5b→c5bcc08)📈 System libraries: 85.55% (+0.01%, +1 implemented functions)
✅ 1 implemented
sceNpWebApi2GetMemoryPoolStatsImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T08:45:38Z.
Rebased onto current
main(single conflict indocs/dev/TechnicalDebt.md, adjacent to the Http2/Ssl/Net pool stats line that main now documents as measured on a PS5). I reworded your line to say the layout is assumed for NpWebApi2, not measured. No code changes.Checked on the rebased tree: scoped build and ctest green,
guest_np_web_api2andguest_http2pass, unknown signature/errors documented in TechnicalDebt, null output and unknown context throw. Merging once CI is green.Note: #3337 declares the same export as an unimplemented stub; it should drop it after this lands.