feat(libSceNpManager): implement sceNpCheckNpAvailability #1241
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1241"
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 izzangalaxybyte on 2026-10-07T19:08:19Z.
What
Implements
sceNpCheckNpAvailability, which threwNotImplemented. PSN is not emulated and every user is signed out, so it now matchessceNpCheckNpReachability:SCE_NP_ERROR_INVALID_ARGUMENTSCE_NP_ERROR_SIGNED_OUTSource: shadPS4
src/core/libraries/np/np_manager.cpp(PS4) returnsINVALID_ARGUMENTfor a null online ID and completes the request withSIGNED_OUTwhen the user is not signed in to PSN.libSceNpManager gets its own
CMakeLists.txt(same shape as libSceErrorDialog) so it can register the newguest_np_managerCTest.The third parameter (
result) is kept as declared and unused; shadPS4 declares the function with two parameters.Overlap: #924 is merged and this branch merges
main;GuestNpManager.cppkeeps itssceNpGetNpIdcases and adds thesceNpCheckNpAvailabilityones. #926 adds the same test file (itsCMakeLists.txtis identical) with no shared exports; whichever merges second appends its cases to the other's test.Tested
Linux x86-64 (Ubuntu 24.04, GCC 13.3, Docker
linux/amd64emulated on an Apple Silicon Mac), configured as inbuild.ymlwithout ccache: build andlibstarget succeed,guest_np_managerpasses, 395/400 tests pass.The 5 failures are from the emulated container, not this change:
guest_accessandguest_memory(userfaultfdnot permitted, no free range above the mapping hint),guest_dynamic_loader(permission denied copying into the bind-mounted build directory),amd64_only_converter(SHA-1 stub changed a register or RFLAGS under emulation),linux_entry_argv(exit -5). No title tested.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 oneandonlydean on 2026-10-08T02:44:41Z.
Closing: no title is shown to reach
sceNpCheckNpAvailabilityon main. If one does, comment here with the title ID and the log line where it stops, and it can be reopened (rebased without the merge commit).Pull request closed