feat(libSceNpTrophy): add sceNpTrophyAbortHandle #9871
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9871"
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 ntamas94 on 2026-10-22T20:08:15Z.
What
Adds
sceNpTrophyAbortHandle, which both measured PS4 titles (CUSA04865, CUSA12435) import and which the library did not export. On a PS4 Pro with firmware 10.71 a live handle answers 0 and an unknown or destroyed handle 0x80551608 (NP_TROPHY_ERROR_INVALID_HANDLE). After an abort the calls that use the handle answer 0x80551607 (NP_TROPHY_ERROR_ABORT), ahead of the not-registered check, until the handle is destroyed, andsceNpTrophyRegisterContextanswers it ahead of a missing trophy package; aborting again answers 0.sceNpTrophyRegisterContext,sceNpTrophyGetTrophyUnlockStateandsceNpTrophyGetGameIconare measured; the other calls follow the same rule, as the firmware 10.71libSceNpTrophy.sprxmaps the service's abort answer to 0x80551607 on the request path they share (recorded indocs/dev/debt/libSceNpTrophy.md). The guest test gains rows for a live handle, the handles 999 and -1, a destroyed handle, the calls through an aborted handle, a second abort, and a second handle that keeps working.Tested
Windows 11:
guest_np_trophypassed. The return values were measured on a PS4 Pro (firmware 10.71) with a homebrew probe: live handle 0, unknown handle 0x80551608, and after an abort 0x80551607 fromsceNpTrophyRegisterContext,sceNpTrophyGetTrophyUnlockStateandsceNpTrophyGetGameIconwhere a second, live handle gets 0x80551626 and 0x8055160F (the probe app has an NP title id from itsnptitle.dat, as a title does);guest_np_trophyaborts on the abort rows without the change. The same probe compiled against this branch on the host gives the same three rows. Not run with a title.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 MarcZX10 on 2026-10-22T20:10:49Z.
Review: DISMISSED
I compared the change with the checked-in
libSceNpTrophyimplementation and its registered guest test. The live-handle behavior is internally consistent:sceNpTrophyAbortHandlelocks the same mutex and checks the same handle map used by create/destroy, and the test covers live, unknown, negative, and destroyed handles. The PR reports a PS4 Pro firmware 10.71 probe for those return values, which is useful hardware evidence.I could not independently run
guest_np_trophyin this Linux checkout: there is no configured build directory, and the hosted PR run skipped the Linux and Windows product jobs. The passing checks are conventions, eligibility, intake, labels and report only. Please attach or link the probe procedure/output (without private console data) and arrange the focused guest test on a supported build before merge; state the result on the final head. The report says both titles import the export, but says neither has a Game bring-up discussion yet, so please useUnblocks: noneunless the required discussion exists. The PR currently checks that checklist item despite no discussion being identified.