feat(libSceNpTrophy2): implement sceNpTrophy2ShowTrophyList #986

Closed
Kikoarl wants to merge 1 commit from upstream-pr/986 into main
Kikoarl commented 2026-10-06 21:54:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-06T21:54:59Z.


What

Implement sceNpTrophy2ShowTrophyList(int context) in libSceNpTrophy2 returning SCE_NP_TROPHY2_OK.

  • Provenance: Imported by PPSA12544's Unity PSN plugin (added in commit d82bae0 as an unimplemented stub). Reference in PsPcSdkEmulator and SharpProspero where showing the system trophy list returns SCE_OK (SCE_NP_TROPHY2_OK).
  • Since headless and emulator environments do not provide a native PlayStation OS trophy overlay, this function operates as a silent success stub.
  • Added unit test in GuestNpTrophy2.cpp verifying the call succeeds.
  • Updated docs/dev/TechnicalDebt.md under ### Silent stubs and ### Unknown function info.

Quality Checklist

  • One topic per PR; follow-ups go in a new PR.
  • Title matches Conventional Commits format (type(scope): summary).
  • docs/dev/TechnicalDebt.md updated if stubbing or inferring hardware behaviour.
  • Verified locally with ctest -R "guest_nptrophy".
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4765081791 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/986). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-06T21:54:59Z. --- ### What Implement `sceNpTrophy2ShowTrophyList(int context)` in `libSceNpTrophy2` returning `SCE_NP_TROPHY2_OK`. - **Provenance:** Imported by PPSA12544's Unity PSN plugin (added in commit d82bae0 as an unimplemented stub). Reference in PsPcSdkEmulator and SharpProspero where showing the system trophy list returns `SCE_OK` (`SCE_NP_TROPHY2_OK`). - Since headless and emulator environments do not provide a native PlayStation OS trophy overlay, this function operates as a silent success stub. - Added unit test in `GuestNpTrophy2.cpp` verifying the call succeeds. - Updated `docs/dev/TechnicalDebt.md` under `### Silent stubs` and `### Unknown function info`. ### Quality Checklist - [x] One topic per PR; follow-ups go in a new PR. - [x] Title matches Conventional Commits format (`type(scope): summary`). - [x] `docs/dev/TechnicalDebt.md` updated if stubbing or inferring hardware behaviour. - [x] Verified locally with `ctest -R "guest_nptrophy"`.
github-actions[bot] commented 2026-10-06 21:55:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T21:55:27Z.


Progress report (5fc8755 → 313459a)

📈 System libraries: 87.11% (+0.03%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceNpTrophy2 sceNpTrophy2ShowTrophyList
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6026170804 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/986#issuecomment-6026170804). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T21:55:27Z. --- <!-- progress-report --> ### Progress report (5fc8755 → 313459a) 📈 **System libraries**: 87.11% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceNpTrophy2 | `sceNpTrophy2ShowTrophyList` | </details>
oneandonlydean commented 2026-10-06 22:40:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T22:40:42Z.


Thanks. sceNpTrophy2ShowTrophyList is one of the PPSA12544 imports declared in d82bae0, but does PPSA12544 actually call it on main? A Unity PSN plugin usually shows the trophy list only when the player asks for it.

A silent stub is allowed only when it unblocks a title (CONTRIBUTING), so the log line where PPSA12544 (or another title) stops at this call on main would let me merge it.

Two small format points for when you push:

  • the new "Unknown function info" entry is followed by a blank line that splits the list;
  • one line is enough in TechnicalDebt (the silent-stubs entry); the second entry repeats it.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6026766832 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/986#issuecomment-6026766832). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-06T22:40:42Z. --- Thanks. `sceNpTrophy2ShowTrophyList` is one of the PPSA12544 imports declared in d82bae0, but does PPSA12544 actually call it on main? A Unity PSN plugin usually shows the trophy list only when the player asks for it. A silent stub is allowed only when it unblocks a title (CONTRIBUTING), so the log line where PPSA12544 (or another title) stops at this call on main would let me merge it. Two small format points for when you push: - the new "Unknown function info" entry is followed by a blank line that splits the list; - one line is enough in TechnicalDebt (the silent-stubs entry); the second entry repeats it.
github-actions[bot] commented 2026-10-06 22:43:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T22:43:34Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#992 docs/dev/TechnicalDebt.md L33
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6026801573 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/986#issuecomment-6026801573). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T22:43:34Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #992 | `docs/dev/TechnicalDebt.md` [L33](https://github.com/boykopovar/AnyPS5/blob/ab9437e34df49c00b32a514a2516e15bd75145db/docs/dev/TechnicalDebt.md#L33) | | |
Kikoarl commented 2026-10-06 23:37:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-06T23:37:52Z.


@oneandonlydean Thanks for the review and the formatting pointers.

To be transparent: this was implemented based on the imported symbols declared in d82bae0 to provide the stub and unit test coverage, rather than from an active title log stopping at it on main. You are right that Unity's PSN plugin typically only invokes the trophy list upon explicit user interaction in the UI.

Since I don't have a concrete execution log of a title blocked on this call right now, I respect the project's policy of only merging stubs that actively unblock a title. I am happy to close this PR for now to keep the review queue clean (or push the formatting fixes in TechnicalDebt.md if you prefer to keep it ready for when someone hits it). Let me know what you prefer and I will do it by tomorrow morning.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6027454047 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/986#issuecomment-6027454047). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-06T23:37:52Z. --- @oneandonlydean Thanks for the review and the formatting pointers. To be transparent: this was implemented based on the imported symbols declared in d82bae0 to provide the stub and unit test coverage, rather than from an active title log stopping at it on `main`. You are right that Unity's PSN plugin typically only invokes the trophy list upon explicit user interaction in the UI. Since I don't have a concrete execution log of a title blocked on this call right now, I respect the project's policy of only merging stubs that actively unblock a title. I am happy to close this PR for now to keep the review queue clean (or push the formatting fixes in `TechnicalDebt.md` if you prefer to keep it ready for when someone hits it). Let me know what you prefer and I will do it by tomorrow morning.
oneandonlydean commented 2026-10-07 00:02:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-07T00:02:37Z.


Thanks for being clear about where it came from. I'll close it for now, then. If a title stops at this call on main, please reopen it (or open a new PR) with the title ID and the log line, and the two TechnicalDebt fixes can go in at the same time.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6027796642 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/986#issuecomment-6027796642). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-07T00:02:37Z. --- Thanks for being clear about where it came from. I'll close it for now, then. If a title stops at this call on main, please reopen it (or open a new PR) with the title ID and the log line, and the two TechnicalDebt fixes can go in at the same time.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!986
No description provided.