fix(trophy2): accept a null data or details in sceNpTrophy2GetGameInfo #912
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/912"
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 Pacuka on 2026-10-06T16:07:57Z.
What
sceNpTrophy2GetGameInforejected a call unless both outputs were given, although the function already fills each one only when it is not null. The Smurfs Dreams (PPSA21607, Unreal Engine) asks only for the game details: it passes a nulldata(xor ecx, ecxbefore the call), reads the trophy count from the details on success and takes its error path on a negative result. Only a call with neither output is rejected now.Tested
5895ea72.guest_nptrophy2now covers details only, data only, and neither (still throws); it aborts without the fix. Full ctest: 359/359.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