feat(share): answer sceShareSetContentParamForApplicationTitle #1544

Merged
arvindfroi merged 1 commit from upstream-pr/1544 into main 2026-10-09 21:34:10 +00:00
arvindfroi commented 2026-10-08 11:48:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by arvindfroi on 2026-10-08T11:48:58Z.


What

sceShareSetContentParamForApplicationTitle threw NotImplemented_nid_no_patch. It now follows KytyPS5 (NID ORspsWDXPps matches KytyPS5's table): a null title returns INVALID_PARAM (0x81960002) and any other title returns 0. Nothing is captured or shared, so the title has no effect. TechnicalDebt gains an entry for it.

Sonic Origins (PPSA05324) stops at this call. NahuelGenchi reports that it calls it about 50 s in and stops with sceShareSetContentParamForApplicationTitle not implemented, the message NotImplemented_nid_no_patch throws (blocker E in the bring-up thread, #2021; see the comment above). That run is main plus local workarounds for the title's earlier stops (shader image heap capacity, a copy of a registered shader header, depth/stencil clear draws), so on unmodified main those come first.

Narrowed at review: the first version of this PR also answered sceShareCaptureVideoClipExtended and gave libSceShare.native copies of libSceShare's bodies. No title reaches the first, and the copies in libSceShare.native are left out because #1538 builds native from libSceShare's sources instead. Both are removed, and the branch is rebased on main, which resolves the TechnicalDebt conflict.

Tested

macOS 27.0, Apple M3 Pro, Apple clang (arm64), Release. main does not build on macOS yet, so this commit was tested on main merged locally with the arm64 macOS libraries (mugurc/AnyPS5#3), with a local change to the loader's link.h include that is not part of this PR.

  • guest_share (GuestShare.cpp against libSceShare) passes, including a title and a null title for the new call.
  • tools/check_conventions.py --base upstream/main passes.
  • tools/progress.py --compare: libSceShare gains 1 implemented function, sceShareSetContentParamForApplicationTitle.
  • Linux and Windows builds and ctest are left to CI; x86-64 binaries cannot run on this machine. 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 (Claude Code, Claude Opus 5.5 and Claude Sonnet 5.5)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4786301852 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1544). Originally posted by [arvindfroi](https://github.com/arvindfroi) on 2026-10-08T11:48:58Z. --- ### What `sceShareSetContentParamForApplicationTitle` threw `NotImplemented_nid_no_patch`. It now follows [KytyPS5](https://github.com/KytyPS5/KytyPS5/blob/main/src/libs/libShare.cpp) (NID `ORspsWDXPps` matches KytyPS5's table): a null title returns `INVALID_PARAM` (0x81960002) and any other title returns 0. Nothing is captured or shared, so the title has no effect. TechnicalDebt gains an entry for it. Sonic Origins (PPSA05324) stops at this call. NahuelGenchi reports that it calls it about 50 s in and stops with `sceShareSetContentParamForApplicationTitle not implemented`, the message `NotImplemented_nid_no_patch` throws (blocker E in the bring-up thread, #2021; see the comment above). That run is `main` plus local workarounds for the title's earlier stops (shader image heap capacity, a copy of a registered shader header, depth/stencil clear draws), so on unmodified `main` those come first. Narrowed at review: the first version of this PR also answered `sceShareCaptureVideoClipExtended` and gave libSceShare.native copies of libSceShare's bodies. No title reaches the first, and the copies in libSceShare.native are left out because #1538 builds native from libSceShare's sources instead. Both are removed, and the branch is rebased on `main`, which resolves the TechnicalDebt conflict. ### Tested macOS 27.0, Apple M3 Pro, Apple clang (arm64), Release. `main` does not build on macOS yet, so this commit was tested on `main` merged locally with the arm64 macOS libraries (mugurc/AnyPS5#3), with a local change to the loader's `link.h` include that is not part of this PR. - `guest_share` (`GuestShare.cpp` against libSceShare) passes, including a title and a null title for the new call. - `tools/check_conventions.py --base upstream/main` passes. - `tools/progress.py --compare`: libSceShare gains 1 implemented function, `sceShareSetContentParamForApplicationTitle`. - Linux and Windows builds and ctest are left to CI; x86-64 binaries cannot run on this machine. 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 (Claude Code, Claude Opus 5.5 and Claude Sonnet 5.5) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-08 15:51:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T15:51:54Z.


Progress report (d70b899 → eb1d558)

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

✅ 1 implemented
Library Name
libSceShare sceShareSetContentParamForApplicationTitle
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6063742439 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1544#issuecomment-6063742439). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T15:51:54Z. --- <!-- progress-report --> ### Progress report (d70b899 → eb1d558) 📈 **System libraries**: 84.72% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceShare | `sceShareSetContentParamForApplicationTitle` | </details>
github-actions[bot] commented 2026-10-08 17:07:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T17:07: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
#1583 docs/dev/TechnicalDebt.md L159
#1638 docs/dev/TechnicalDebt.md L159
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6065061148 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1544#issuecomment-6065061148). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T17:07: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 | |---|---|---|---| | #1583 | `docs/dev/TechnicalDebt.md` [L159](https://github.com/boykopovar/AnyPS5/blob/ae91d9780b3fe8dc71481841904fced01923c24b/docs/dev/TechnicalDebt.md#L159) | | | | #1638 | `docs/dev/TechnicalDebt.md` [L159](https://github.com/boykopovar/AnyPS5/blob/ae91d9780b3fe8dc71481841904fced01923c24b/docs/dev/TechnicalDebt.md#L159) | | |
NahuelGenchi commented 2026-10-09 05:15:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by NahuelGenchi on 2026-10-09T05:15:15Z.


A title that calls this: Sonic Origins (PPSA05324) calls sceShareSetContentParamForApplicationTitle about 50 s in (on main plus local workarounds for its earlier stops), and stops there with not implemented on main.

Bring-up thread: #2021

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6074767923 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1544#issuecomment-6074767923). Originally posted by [NahuelGenchi](https://github.com/NahuelGenchi) on 2026-10-09T05:15:15Z. --- A title that calls this: Sonic Origins (PPSA05324) calls `sceShareSetContentParamForApplicationTitle` about 50 s in (on `main` plus local workarounds for its earlier stops), and stops there with `not implemented` on `main`. Bring-up thread: #2021
oneandonlydean commented 2026-10-09 09:22:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T09:22:15Z.


Please narrow this to sceShareSetContentParamForApplicationTitle, which PPSA05324 stops at on main (NahuelGenchi's comment above), and rebase; it conflicts with main in TechnicalDebt now. No title reaches sceShareCaptureVideoClipExtended, and the libSceShare.native bodies copy libSceShare's; #1538 builds native from the same source instead.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6078120228 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1544#issuecomment-6078120228). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T09:22:15Z. --- Please narrow this to `sceShareSetContentParamForApplicationTitle`, which PPSA05324 stops at on main (NahuelGenchi's comment above), and rebase; it conflicts with main in TechnicalDebt now. No title reaches `sceShareCaptureVideoClipExtended`, and the libSceShare.native bodies copy libSceShare's; #1538 builds native from the same source instead.
popcoder565 commented 2026-10-09 15:45:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T15:45:33Z.


Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head eb1d558f, merged onto main d70b8998 in one build with 38 other PRs that had no Windows run.

  • This PR's tests pass: guest_share. None of them reported skipping a case.
  • Full ctest in that build: 519 of 519. That needed local fixes to three other PRs in the batch that don't build or pass on Windows: #1611, #1796 and #1824 (reported there).

No title was run.

🤖 Addressed by Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6084257360 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1544#issuecomment-6084257360). Originally posted by [popcoder565](https://github.com/popcoder565) on 2026-10-09T15:45:33Z. --- Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head `eb1d558f`, merged onto `main` d70b8998 in one build with 38 other PRs that had no Windows run. - This PR's tests pass: `guest_share`. None of them reported skipping a case. - Full ctest in that build: 519 of 519. That needed local fixes to three other PRs in the batch that don't build or pass on Windows: #1611, #1796 and #1824 (reported there). No title was run. _🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
adriadam10 commented 2026-10-09 21:34:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T21:34:07Z.


Checked against KytyPS5 libShare.cpp (ShareSetContentParamForApplicationTitle, same NID): null title returns INVALID_PARAM, anything else 0. Full ctest green locally (523/523), guest_share fails without the change and passes with it, the TechnicalDebt line is in "Unknown function info". The narrowing Dean asked for is done; merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6089630323 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1544#issuecomment-6089630323). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-09T21:34:07Z. --- Checked against KytyPS5 `libShare.cpp` (`ShareSetContentParamForApplicationTitle`, same NID): null title returns `INVALID_PARAM`, anything else 0. Full ctest green locally (523/523), `guest_share` fails without the change and passes with it, the TechnicalDebt line is in "Unknown function info". The narrowing Dean asked for is done; merging.
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!1544
No description provided.