feat(libSceNpManager): implement sceNpIsPlusMember and sceNpSetContentRestriction #9225
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9225"
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 YossiYad on 2026-10-21T15:38:59Z.
What
sceNpIsPlusMemberandsceNpSetContentRestrictionthrew. They now follow shadPS4's np_manager.cpp:sceNpIsPlusMember(user id, bool*)writesfalse, since PSN is not emulated. A null output returnsSCE_NP_ERROR_INVALID_ARGUMENT.sceNpSetContentRestrictionreads shadPS4's 0x18-byte layout through the existing opaqueNpContentRestriction:INVALID_ARGUMENTSCE_NP_ERROR_INVALID_SIZE(0x80550011)INVALID_ARGUMENTNot measured on a PS5; the debt entry says so.
sceNpIsPlusMemberwas one of the 150 pending declarations, so that count drops to 149.Tested
Linux (Fedora 44, GCC, Ninja,
-DBUILD_TESTING=ON), based onmaincecb540a63:guest_np_manager(core/libs/tests/GuestNpManager.cpp) gainsCheckPlusAndContentRestriction. It checks the Plus answer and its null case, a valid restriction with and without age entries, the 256 limit on both sides, and each refusal. It aborts onmain.ctest: 1793 of 1801 pass. The 8 failures fail the same way onmainon this machine and do not link libSceNpManager:application_heap_scripting,application_heap_lazy,agc_driver_guest_memory_lifetime,agc_driver_image_array_window_past_layer_limit,agc_driver_tessellationand the threenet_dontwait_blocking_*cases.tools/progress.py --compare: libraries +0.02%, 2 functions implemented, none lost.tools/check_conventions.py --base upstream/mainpasses.tools/pr_overlap.pyfinds #9144 on the pending count line of the debt file andcore/libs/CMakeLists.txt; my #9085 edits another part of the same test and debt file.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T15:39:49Z.
Progress report (
cecb540→3cf57aa)📈 System libraries: 42.12% (+0.02%, +2 implemented functions)
✅ 2 implemented
sceNpIsPlusMembersceNpSetContentRestrictionImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T16:45:12Z.
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)docs/dev/debt/libSceNpManager.mdL9docs/dev/debt/libSceNpManager.mdL8-9Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/tests/GuestNpManager.cppcore/libs/prx/libSceNpManager/Export.cppcore/libs/tests/GuestNpManager.cppcore/libs/prx/libSceNpManager/Export.cppImported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-21T19:18:30Z.
Independent Windows run of this PR (data only).
Environment: Windows 10 Pro 10.0.19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. Merge-tree of the PR head against
mainis clean. I built onlyguest_np_manager_tests;ctest -N -R guest_np_managerlists exactly one test.PR head tested:
3cf57aa463ccbe7c5b159825ae3de4a29fdf8a17.Results (3 runs each):
guest_np_managerpasses 3/3.core/libs/prx/libSceNpManager/Export.cppwith the version from the PR's merge base (cecb540a63), then rebuilt. The test fails 3/3 (exit 0xc0000409). I restored the PR's files afterwards.Not run: other platforms, the other tests in the same family, the full repository CTest, and any title or console run.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-21T19:43:25Z.
Thanks @xXPBSXx for the Windows run, and for the baseline with
Export.cppreverted that shows the test fails without the change.Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-22T05:34:48Z.
@oneandonlydean @adriadam10 ready from my side: CI is green, it merges cleanly, and xXPBSXx's Windows run shows the test passing here and failing with
main's library code.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-22T05:48:51Z.
@YossiYad thanks, it's in my review queue now. I'll come back here with the result.