feat(libs): implement sceNpTrophy2UnregisterUnlockCallback #703

Merged
adriadam10 merged 1 commit from upstream-pr/703 into main 2026-10-05 19:11:26 +00:00
adriadam10 commented 2026-10-05 17:15:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-05T17:15:12Z.


What

Implements sceNpTrophy2UnregisterUnlockCallback, the pair of sceNpTrophy2RegisterUnlockCallback (reviewer criterion: complete pairs).

  • Signature int sceNpTrophy2UnregisterUnlockCallback(void) from SharpProspero (Interop/Np/NpTrophy2.cs). No reference has a body for it. prosper binds sceNpTrophy2RegisterUnlockCallback to a plain success return, which is also what main does.
  • On main, Register accepts the callback and stores nothing, because no trophy is ever unlocked. Unregister now matches that: it returns SCE_NP_TROPHY2_OK.
  • TechnicalDebt: removed the "unknown signature" line and added both functions under Silent stubs (the callback is never called).
  • New guest test guest_nptrophy2 (core/libs/tests/GuestNpTrophy2.cpp), registered in the library's CMakeLists the same way as libScePlayGo, MinGW block included.

Tested

Linux, GCC Release build. ctest -R 'guest_|nptrophy': 96/96 pass. The new test fails on main, where the stub throws (Subprocess aborted). No title tested.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4748453328 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/703). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-05T17:15:12Z. --- ### What Implements `sceNpTrophy2UnregisterUnlockCallback`, the pair of `sceNpTrophy2RegisterUnlockCallback` (reviewer criterion: complete pairs). - Signature `int sceNpTrophy2UnregisterUnlockCallback(void)` from SharpProspero (`Interop/Np/NpTrophy2.cs`). No reference has a body for it. prosper binds `sceNpTrophy2RegisterUnlockCallback` to a plain success return, which is also what `main` does. - On `main`, Register accepts the callback and stores nothing, because no trophy is ever unlocked. Unregister now matches that: it returns `SCE_NP_TROPHY2_OK`. - TechnicalDebt: removed the "unknown signature" line and added both functions under Silent stubs (the callback is never called). - New guest test `guest_nptrophy2` (`core/libs/tests/GuestNpTrophy2.cpp`), registered in the library's CMakeLists the same way as libScePlayGo, MinGW block included. ### Tested Linux, GCC Release build. `ctest -R 'guest_|nptrophy'`: 96/96 pass. The new test fails on `main`, where the stub throws (`Subprocess aborted`). No title tested. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-05 17:15:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T17:15:37Z.


Progress report (0518f0e → f3e783b)

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

✅ 1 implemented
Library Name
libSceNpTrophy2 sceNpTrophy2UnregisterUnlockCallback
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5999416603 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/703#issuecomment-5999416603). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-05T17:15:37Z. --- <!-- progress-report --> ### Progress report (0518f0e → f3e783b) 📈 **System libraries**: 79.24% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceNpTrophy2 | `sceNpTrophy2UnregisterUnlockCallback` | </details>
github-actions[bot] commented 2026-10-05 18:15:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T18:15:13Z.


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
#705 docs/dev/TechnicalDebt.md L87
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6000387724 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/703#issuecomment-6000387724). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-05T18:15:13Z. --- <!-- 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 | |---|---|---|---| | #705 | `docs/dev/TechnicalDebt.md` [L87](https://github.com/boykopovar/AnyPS5/blob/1c2ccd838c1bdbd7406e85c77470a59859d44972/docs/dev/TechnicalDebt.md#L87) | | |
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!703
No description provided.