feat(libSceNpCommerce): implement sceNpCommerceDialogOpen2 #1983

Closed
overlordxrz-source wants to merge 1 commit from upstream-pr/1983 into main
overlordxrz-source commented 2026-10-09 03:42:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by overlordxrz-source on 2026-10-09T03:42:11Z.


What

sceNpCommerceDialogOpen2 is the last throwing export in libSceNpCommerce. It is imported by NHL 27 (PPSA34063), Call of Duty: Black Ops (PPSA34501) and Lucky's Tale (PPSA34823), as their KytyPS5 logs show, and TechnicalDebt also names PPSA23566.

It now takes the dialog parameter and behaves like sceNpCommerceDialogOpen: NOT_INITIALIZED before Initialize, ARG_NULL for a null parameter, and otherwise the dialog finishes at once with the user-cancelled result. The (const void*) signature is assumed from Open.

The library had no CMakeLists.txt, so this adds one along with a GuestNpCommerce test.

Log

I don't own these titles, so I can't paste a stop line from main. The evidence is the KytyPS5 import logs for the titles above.

Tested

aarch64 Debian 13 host. The full project can't be built here because it needs x86-64.

  • New core/libs/tests/GuestNpCommerce.cpp covers the not-initialized, null-argument, open, update, status and result paths, and passes natively.
  • Compiles for x86_64-linux-gnu and x86_64-windows-gnu with -Wall -Wextra (Zig 0.17 clang).
  • python3 tools/check_conventions.py --base origin/main passes.
  • Not run with a title.

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:4795690656 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1983). Originally posted by [overlordxrz-source](https://github.com/overlordxrz-source) on 2026-10-09T03:42:11Z. --- ### What `sceNpCommerceDialogOpen2` is the last throwing export in `libSceNpCommerce`. It is imported by NHL 27 (PPSA34063), Call of Duty: Black Ops (PPSA34501) and Lucky's Tale (PPSA34823), as their KytyPS5 logs show, and TechnicalDebt also names PPSA23566. It now takes the dialog parameter and behaves like `sceNpCommerceDialogOpen`: `NOT_INITIALIZED` before `Initialize`, `ARG_NULL` for a null parameter, and otherwise the dialog finishes at once with the user-cancelled result. The `(const void*)` signature is assumed from `Open`. The library had no `CMakeLists.txt`, so this adds one along with a `GuestNpCommerce` test. ### Log I don't own these titles, so I can't paste a stop line from `main`. The evidence is the KytyPS5 import logs for the titles above. ### Tested aarch64 Debian 13 host. The full project can't be built here because it needs x86-64. - New `core/libs/tests/GuestNpCommerce.cpp` covers the not-initialized, null-argument, open, update, status and result paths, and passes natively. - Compiles for x86_64-linux-gnu and x86_64-windows-gnu with `-Wall -Wextra` (Zig 0.17 clang). - `python3 tools/check_conventions.py --base origin/main` passes. - Not run with a title. ### 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-09 03:42:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T03:42:34Z.


Progress report (f145139 → 555a995)

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

✅ 1 implemented
Library Name
libSceNpCommerce sceNpCommerceDialogOpen2
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6073812065 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1983#issuecomment-6073812065). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-09T03:42:34Z. --- <!-- progress-report --> ### Progress report (f145139 → 555a995) 📈 **System libraries**: 84.79% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceNpCommerce | `sceNpCommerceDialogOpen2` | </details>
MarcZX10 commented 2026-10-09 04:09:12 +00:00 (Migrated from github.com)

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


The implementation delegates to sceNpCommerceDialogOpen, which is internally consistent, and CI passes. The remaining contribution-rule gap is evidence: the PR cites imports but no current-main log showing a title reaches Open2 or fails there, and says no title was run. CONTRIBUTING.md specifically says an import list alone does not establish that. Could you add a reproduced call/failure or explain a concrete project need and its evidence limits before review? The behavior and signature are still partly assumed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6074075769 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1983#issuecomment-6074075769). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T04:09:12Z. --- The implementation delegates to `sceNpCommerceDialogOpen`, which is internally consistent, and CI passes. The remaining contribution-rule gap is evidence: the PR cites imports but no current-main log showing a title reaches `Open2` or fails there, and says no title was run. CONTRIBUTING.md specifically says an import list alone does not establish that. Could you add a reproduced call/failure or explain a concrete project need and its evidence limits before review? The behavior and signature are still partly assumed.
overlordxrz-source commented 2026-10-09 04:54:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by overlordxrz-source on 2026-10-09T04:54:59Z.


Thanks. Rechecking the KytyPS5 logs I cited, they only show IXmfUaze9So imported (unresolved PLT import patched to stub), never called. NHL 27 (PPSA34063, KytyPS5#1101) logs three Unresolved import stub called lines, all for other NIDs. And Open2 is a store dialog that only opens when the player asks for it, the same reasoning as in #946. So I have no reproduced call or concrete need, and the (const void*) signature is assumed. I'm converting this to draft until a title stops at it on main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6074540897 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1983#issuecomment-6074540897). Originally posted by [overlordxrz-source](https://github.com/overlordxrz-source) on 2026-10-09T04:54:59Z. --- Thanks. Rechecking the KytyPS5 logs I cited, they only show `IXmfUaze9So` imported (`unresolved PLT import patched to stub`), never called. NHL 27 (PPSA34063, KytyPS5#1101) logs three `Unresolved import stub called` lines, all for other NIDs. And `Open2` is a store dialog that only opens when the player asks for it, the same reasoning as in #946. So I have no reproduced call or concrete need, and the `(const void*)` signature is assumed. I'm converting this to draft until a title stops at it on main.
oneandonlydean commented 2026-10-09 08:55:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:55:50Z.


Closing as you said above; please reopen when a title stops at sceNpCommerceDialogOpen2 on main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6077721160 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1983#issuecomment-6077721160). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T08:55:50Z. --- Closing as you said above; please reopen when a title stops at `sceNpCommerceDialogOpen2` on main.

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