feat(libSceNpAuth): implement the remaining signed-out request calls #925
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/925"
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 Adin-bima on 2026-10-06T17:20:39Z.
What
Implements the last three libSceNpAuth stubs on the existing signed-out model of the library:
sceNpAuthCreateRequestreturns a new request id from the same counter assceNpAuthCreateAsyncRequest.sceNpAuthGetIdTokenV3returnsSCE_NP_ERROR_INVALID_ARGUMENTfor a null parameter or token, elseSCE_NP_ERROR_SIGNED_OUTwith the token untouched, assceNpAuthGetAuthorizationCodeV3does.sceNpAuthWaitAsyncanswers assceNpAuthPollAsync: finished, withSCE_NP_ERROR_SIGNED_OUTas the result.prosper gives the same answers (a fresh id,
SIGNED_OUT). shadPS4 also reportsSIGNED_OUTwhen not signed in, but tracks request state (unknown ids, async completion) and uses the NpAuth-specific invalid-argument code; that tracking is not modelled here, matching the existing calls of this library.libSceNpAuth gets its own
CMakeLists.txt(same shape as libSceNpSessionSignaling) to register the newguest_np_authtest.Tested
Linux (GCC), new
guest_np_authtest: distinct positive request ids, signed-out and invalid-argument answers ofsceNpAuthGetIdTokenV3with the token unchanged, thesceNpAuthWaitAsyncresult. Fullctest: 358/360 passed;agc_driver_lds_atomics64andagc_driver_scalar_sop1fail the same way on unmodifiedmainon this machine (RTX 5070 Ti). Not tested with a title.Checklist
main; no other open PR implements the same functions — #346 (opened earlier) implements the same functions; this is offered as a replacement if #346 is not continuedNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-07T20:33:10Z.
Review: CHANGES_REQUESTED
Built and ran it merged onto current
main: full ctest green, andguest_np_authfails withExport.cppreverted, so the test does exercise the change. A few things don't match the references (KytyPS5libNet.cpp, shadPS4np_auth.cpp, fpPS4np_error.pas):sceNpAuthWaitAsyncwith a nullresult(Export.cpp:54, pinned byGuestNpAuth.cpp:43): KytyPS5 (np_auth_wait_or_poll_async) and shadPS4 both returnSCE_NP_AUTH_ERROR_INVALID_ARGUMENT(0x80550301), not 0. SinceWaitAsyncdelegates tosceNpAuthPollAsync, the null check belongs there and fixes both.sceNpAuthGetIdTokenV3with a nullparam/id_token(Export.cpp:43, test lines 38-39) returns the generic NP code0x80550003. shadPS4 returns the NpAuth code0x80550301, and fpPS4 has the same constant.GetAuthorizationCodeV3onmainhas the same mismatch; switching both would keep them consistent.GuestNpAuth.cpp:42waits onfirst, which comes from the synchronoussceNpAuthCreateRequest. Both references returnSCE_NP_AUTH_ERROR_INVALID_ID(0x80550307) for a non-async request, so the test currently pins behaviour they reject. Please wait on the id fromsceNpAuthCreateAsyncRequestinstead.docs/dev/TechnicalDebt.mdsaying so, and the line shouldn't go at the end of its section.Also, no CI ran on this head. Please push the fixes so the fork CI runs.
Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T19:50:47Z.
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
0917ada2, alone onmain8b393b6e.guest_np_authpasses 3 of 3.libSceNpAuth/CMakeLists.txtwas only picked up after rerunning CMake in the existing build directory. A fresh configure, as in CI, isn't affected.libSceNpAuth/CMakeLists.txtand changesGuestNpAuth.cpp.No title was run.
🤖 Addressed by Claude Code
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T01:07:32Z.
Closing for now: the points from 2026-10-07 are still open. If you pick it back up, please comment here and it can be reopened.
Pull request closed