feat(libSceNpAuth): return the signed-out error from sceNpAuthGetAuthorizedAppCode #4218
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4218"
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 Mouad-Scriptz-0 on 2026-10-12T01:39:40Z.
What
After its sign-in dialog Minecraft (PPSA17221) calls
sceNpAuthGetAuthorizedAppCode, which #4118 declares as a throwing stub because the title fails to load without the import. There is no PSN sign-in, so it now returnsSCE_NP_ERROR_SIGNED_OUTwithout reading its unknown parameters, and the title treats that as offline play. The request, token and wait calls this PR implemented earlier are left to #3604, which models them per request and is further along in review.sceNpAuthGetAuthorizedAppCodereturnsSCE_NP_ERROR_SIGNED_OUT.guest_np_auth_authorized_app_code_tests(guest_np_auth_authorized_app_code) checks the result on repeated calls.Tested
Fedora 44 (kernel 7.2.8, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON), branch on #4118 rebased ontomainc36fd0a0e:guest_np_auth_authorized_app_codepasses;tools/check_conventions.py --base origin/mainandgit diff --checkpass. Minecraft (PPSA17221) reaches its menu and plays with the earlier, wider version of this change (Linux). Not tested on Windows.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-12T01:40:04Z.
Progress report (
2fabe44→09c9854)📈 System libraries: 87.43% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceNpAuthGetAuthorizedAppCode⚪ 1 behaviourally empty (constant return or throw)
sceNpAuthGetAuthorizedAppCodeImported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T16:27:18Z.
Windows test of head
5edd2be1cmerged onto currentmain(2a5eca11c, clean merge; built together with two other open PRs, so the run is for the combination): Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, full build 0 errors,-j2.guest_np_auth_authorized_app_code(the test this PR adds) passes. The 25 tests matching^(guest_memory|guest_np_auth|windows_exceptions|guest_exception|guest_kernel)all pass.Not checked: that the test fails without the change, Linux, a title run.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-12T20:57:17Z.
Checked: the new test fails without the change and passes with it; rebased onto current
main(only conflict: the TechnicalDebt line moved todocs/dev/debt/libSceNpAuth.md, updated there); build and ctest green; the signed-out value matches the constant already used in libSceNpUtility; Windows test by @xXPBSXx and Minecraft Settings check by @Pacuka noted. Merging once CI is green.