fix(libSceNpCommerce): finish sceNpCommerceDialogOpen2 as cancelled #5416

Closed
alexpournaras wants to merge 1 commit from upstream-pr/5416 into main
alexpournaras commented 2026-10-13 19:21:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alexpournaras on 2026-10-13T19:21:19Z.


What

Implement sceNpCommerceDialogOpen2 by forwarding to sceNpCommerceDialogOpen, completing the dialog immediately with a user-canceled result.

This follows #1983, which was closed pending evidence of a title calling this function on main.
Call of Duty: Black Ops (PPSA34501) now provides that evidence.

There is also an open PR (#3607) implementing the same function.

Tested

Windows 11 Pro, Ryzen 9 9900X, RTX 2060.

On games/blackops, selecting Zombies → Online causes:

[libc] unhandled exception 'St13runtime_error'
what():  sceNpCommerceDialogOpen2 not implemented
FATAL: abort() (SIGABRT)

With this change, the game continues past the exception.

Windows build, conventions check, and full test suite all pass.

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; silent stubs are documented under Silent stubs
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: PPSA34501
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4848300074 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5416). Originally posted by [alexpournaras](https://github.com/alexpournaras) on 2026-10-13T19:21:19Z. --- ### What Implement `sceNpCommerceDialogOpen2` by forwarding to `sceNpCommerceDialogOpen`, completing the dialog immediately with a user-canceled result. This follows #1983, which was closed pending evidence of a title calling this function on `main`. **Call of Duty: Black Ops (PPSA34501)** now provides that evidence. There is also an open PR (#3607) implementing the same function. ### Tested Windows 11 Pro, Ryzen 9 9900X, RTX 2060. On [`games/blackops`](https://github.com/boykopovar/AnyPS5/discussions/5389), selecting **Zombies → Online** causes: ``` [libc] unhandled exception 'St13runtime_error' what(): sceNpCommerceDialogOpen2 not implemented FATAL: abort() (SIGABRT) ``` With this change, the game continues past the exception. Windows build, conventions check, and full test suite all pass. ### Checklist - [ ] 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 - [ ] Unimplemented paths throw; silent stubs are documented under Silent stubs - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: PPSA34501 - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-13 19:27:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T19:27:08Z.


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
#3607 sceNpCommerceDialogOpen2
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6153449252 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5416#issuecomment-6153449252). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T19:27:08Z. --- <!-- 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 | |---|---|---|---| | #3607 | | `sceNpCommerceDialogOpen2` | |
MarcZX10 commented 2026-10-13 20:52:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T20:52:13Z.


I noticed the latest hosted conventions check is red on this head. GitHub is currently returning HTTP 502 for the run/job details, so I cannot see which rule failed; please inspect the check log and rerun after correcting any findings. The overlap check also identifies open PR #3607 implementing the same export, while this PR checklist says no other PR does. Please coordinate the chosen implementation and clarify the relationship or narrow this to a distinct change before proceeding.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6154962275 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5416#issuecomment-6154962275). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T20:52:13Z. --- I noticed the latest hosted `conventions` check is red on this head. GitHub is currently returning HTTP 502 for the run/job details, so I cannot see which rule failed; please inspect the check log and rerun after correcting any findings. The overlap check also identifies open PR #3607 implementing the same export, while this PR checklist says no other PR does. Please coordinate the chosen implementation and clarify the relationship or narrow this to a distinct change before proceeding.
MarcZX10 commented 2026-10-13 20:57:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T20:57:11Z.


I was able to retrieve the conventions log now. It reports three unchecked checklist items: (1) based on current main/no duplicate PR, (2) unimplemented paths throw or are documented, and (3) unblocks PPSA34501. The duplicate item is also relevant because the overlap check identifies #3607 for the same export. Please update only the items that are accurate, and clarify how this PR should coordinate with #3607; then rerun conventions.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6155045589 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5416#issuecomment-6155045589). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T20:57:11Z. --- I was able to retrieve the conventions log now. It reports three unchecked checklist items: (1) based on current main/no duplicate PR, (2) unimplemented paths throw or are documented, and (3) unblocks PPSA34501. The duplicate item is also relevant because the overlap check identifies #3607 for the same export. Please update only the items that are accurate, and clarify how this PR should coordinate with #3607; then rerun conventions.
MarcZX10 commented 2026-10-13 21:13:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T21:13:12Z.


I passed the PPSA34501/Zombies → Online failure log to #3607 because its maintainer asked for the title ID and stopping log. One detail is still missing from this PR description: it does not say which exact main commit produced the baseline not implemented failure. Please include that baseline SHA (and confirm the same setup reaches the failure on current main) when you update the evidence/checklist; the report currently establishes the title and symptom, but not that specific baseline comparison.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6155308888 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5416#issuecomment-6155308888). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T21:13:12Z. --- I passed the PPSA34501/Zombies → Online failure log to #3607 because its maintainer asked for the title ID and stopping log. One detail is still missing from this PR description: it does not say which exact `main` commit produced the baseline `not implemented` failure. Please include that baseline SHA (and confirm the same setup reaches the failure on current `main`) when you update the evidence/checklist; the report currently establishes the title and symptom, but not that specific baseline comparison.
MarcZX10 commented 2026-10-13 21:18:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T21:18:23Z.


I checked the commit metadata: this PR commit fd15f3009fe0c143d0232a64c1c7ec323ebe1958 has direct parent 18c438b1092b09cef54e4cfacab441c009a6b501 (the current main base when the branch was created, matching the reproduction context). If the failing run in the PR body was on that baseline, please name this SHA explicitly and confirm it was the same game/setup; if it was another build, please give that build’s SHA instead. This would close the remaining provenance gap without claiming more than the log establishes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6155397480 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5416#issuecomment-6155397480). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T21:18:23Z. --- I checked the commit metadata: this PR commit `fd15f3009fe0c143d0232a64c1c7ec323ebe1958` has direct parent `18c438b1092b09cef54e4cfacab441c009a6b501` (the current `main` base when the branch was created, matching the reproduction context). If the failing run in the PR body was on that baseline, please name this SHA explicitly and confirm it was the same game/setup; if it was another build, please give that build’s SHA instead. This would close the remaining provenance gap without claiming more than the log establishes.
alexpournaras commented 2026-10-13 21:42:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alexpournaras on 2026-10-13T21:42:45Z.


Thanks for the feedback and review @MarcZX100 .

I've tested #3607 with Call of Duty: Black Ops (PPSA34501) on Windows 11 and confirmed that it also resolves the sceNpCommerceDialogOpen2 not implemented crash.

Since #3607 already implements the same functionality and includes tests, I'll close this PR in favor of #3607 to avoid duplicate work.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6155812089 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5416#issuecomment-6155812089). Originally posted by [alexpournaras](https://github.com/alexpournaras) on 2026-10-13T21:42:45Z. --- Thanks for the feedback and review @MarcZX100 . I've tested #3607 with Call of Duty: Black Ops (PPSA34501) on Windows 11 and confirmed that it also resolves the sceNpCommerceDialogOpen2 not implemented crash. Since #3607 already implements the same functionality and includes tests, I'll close this PR in favor of #3607 to avoid duplicate work.
MarcZX10 commented 2026-10-13 21:43:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T21:43:18Z.


I checked the current conventions annotations. The failure is from three unchecked template items: “Unblocks: PPSA34501,” the unimplemented-paths rule, and “Based on current main; no other open PR implements the same functions.” The first is supported by your title report, and the function is now implemented; however, #3607 is still open and changes the same export, so that overlap needs to be reflected or coordinated before the checklist can truthfully say there is no duplicate. The new Windows 11 test result on #3607 also confirms the title path.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6155821596 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5416#issuecomment-6155821596). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T21:43:18Z. --- I checked the current conventions annotations. The failure is from three unchecked template items: “Unblocks: PPSA34501,” the unimplemented-paths rule, and “Based on current main; no other open PR implements the same functions.” The first is supported by your title report, and the function is now implemented; however, #3607 is still open and changes the same export, so that overlap needs to be reflected or coordinated before the checklist can truthfully say there is no duplicate. The new Windows 11 test result on #3607 also confirms the title path.

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!5416
No description provided.