feat(libSceNpManager): implement sceNpCheckCallbackForLib #9085
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9085"
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-21T12:00:54Z.
What
sceNpCheckCallbackForLibthrew. It now delivers the pending NP state callbacks, assceNpCheckCallbackalready does here: each registered state callback getsSIGNED_OUTonce, and a second check delivers nothing new. In shadPS4's np_manager.cppsceNpCheckCallbackForLibdispatches the same pending state events; itssceNpCheckCallbackalso runs other registered NP callbacks, which this library does not keep, so the two calls are the same here.Not measured on a PS5; the debt entry says so, and the pending-declaration line that named only this function is removed.
Tested
Linux (Fedora 44, GCC, Ninja,
-DBUILD_TESTING=ON), based onmain47fa6eecf8:guest_np_manager(core/libs/tests/GuestNpManager.cpp):CheckStateCallbacksAnow delivers the state to a callback registered again throughsceNpCheckCallbackForLib, then checks that neither call delivers it a second time. It aborts onmain, and fails whensceNpCheckCallbackForLibreturns 0 without dispatching.ctest: 1790 of 1798 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.01%, 1 function implemented, none lost.tools/check_conventions.py --base upstream/mainpasses.tools/pr_overlap.pylists #6977, #7412 and #6044 as editing the same files; none of them implements this function.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-21T12:01:44Z.
Progress report (47fa6ee →
fcc7f2a)📈 System libraries: 48.68% (+0.01%, +1 implemented functions)
✅ 1 implemented
sceNpCheckCallbackForLibImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T12:11:37Z.
Some 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-21T16:14:37Z.
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:
fcc7f2aba92f3e467b1b3a530abe782c8ce3ded4.Results (3 runs each):
guest_np_managerpasses 3/3.core/libs/prx/libSceNpManager/Export.cppwith the version from the PR's merge base (47fa6eecf8), then rebuilt. The test fails 3/3 (exit 0xc0000409). I restored the PR's files afterwards.GPU: the run output has no
Selected GPUline; no GPU claim is made.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:29Z.
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:46Z.
@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:37:54Z.
@YossiYad thanks, it's in my review queue now. I'll come back here with the result.