fix(libSceNpTrophy2): accept a null details or data in GetTrophyInfo and GetGroupInfo #3517
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3517"
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 ee6aba54 on 2026-10-11T12:09:55Z.
What
sceNpTrophy2GetTrophyInfoandsceNpTrophy2GetGroupInforejected a call unless both outputs were given, although both functions already fill each output only when it is not null. PPSA18391 (Clickteam Fusion) queries trophies with a nulldetails; AnyPS5 threwinvalid argumentthere and the title ended. Only a call with neither output is rejected now, the same way #912 handledsceNpTrophy2GetGameInfo.Tested
2220effb.guest_nptrophy2now covers details only, data only and neither (still throws) for both functions; it aborts without the fix. Full ctest: 830/832. The two failures,agc_driver_emulated_color_compare(the device cannot sample the sRGB image) andguest_kernel_stack_protect, involve no Trophy2 code and fail the same way after a rerun.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 xXPBSXx on 2026-10-11T20:24:15Z.
Confirmation from a title: Teardown (PPSA15246, with #3952, #3824 and #3604 on top of
main) reachessceNpTrophy2GetGroupInfoafter the start-up copy kernel compiles, and stops there withstd::invalid_argument(sceNpTrophy2GetGroupInfo: invalid argument), i.e. it calls it with one ofdetails/datanull, which the current guard rejects. This PR removes that stop. I did not run the title with this PR applied.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:29:30Z.
Checked on main + PR: build and ctest green;
guest_nptrophy2fails without the change and passes with it (details only, data only, neither still throws, for both functions). No overlap with other open PRs. Merging.Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T22:50:21Z.
Test from Teardown (PPSA15246), Windows, MinGW GCC 15.2.0, 60 s runs. Without this PR the title ends with
std::invalid_argumentsceNpTrophy2GetGroupInfo: invalid argument(abort). With this PR merged into a stack with #3604, the Ces exports (#3824) and #3952, the same run no longer ends there: the log shows onlyAGC graphics: CMASK fast clears of a mipmapped, 3D or array color target are unsupportedas the next stop. Not tested: this PR alone.AI-assisted (Claude Code).