fix(libSceNpTrophy2): return the icon error code instead of throwing #15314
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15314"
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 MarcZX10 on 2026-11-02T23:28:37Z.
What
sceNpTrophy2GetGameIcon,sceNpTrophy2GetGroupIconandsceNpTrophy2GetTrophyIconthrew a C++ exception when no icon file existed. They now returnSCE_NP_TROPHY2_ERROR_ICON_FILE_NOT_FOUNDwith the size zeroed. That error is the not-found answer by design, matching the siblingsceNpTrophy2GetRewardIconand the debt entry that describes these functions. Its effect on a title is not measured here.Commits:
da29f8cf3ffix(libSceNpTrophy2): return the icon error code instead of throwing96a5aaec7dtest(libSceNpTrophy2): cover the game, group and trophy icon error codesTested
main.ctest -R '^guest_nptrophy2$': 1 of 1 passed (guest_nptrophy2).tools/check_conventions.py --base upstream/mainandgit diff --check upstream/main: clean.Not verified
TrophyStore.cppand its tests, not these icon files.Checklist
main; no other open PR changes these icon functionsView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.