feat(libSceShare): sceShareCaptureScreenshotExtended #712

Merged
adriadam10 merged 1 commit from upstream-pr/712 into main 2026-10-05 19:13:44 +00:00
adriadam10 commented 2026-10-05 17:35:49 +00:00 (Migrated from github.com)

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


What

Renames the unknown libSceShare stub GQTObcITIXI to sceShareCaptureScreenshotExtended (name from the NID database, hash-verified) and implements it.

  • Behaviour from KytyPS5 (ShareCaptureScreenshotExtended): capture is not available, so it writes -1 (invalid request id) to req_id when it is not null and returns 0x81960007 (SCE_SHARE_ERROR_NOT_SUPPORTED). shadPS4 and fpPS4 don't implement it.
  • Only libSceShare exports this NID (libSceShare.native doesn't), so no duplicate export.
  • libSceShare gets its own CMakeLists.txt (libSceRazorCpu pattern, incl. the if(MINGW) block) to register the test.
  • TechnicalDebt: removed the GQTObcITIXI "unknown name, signature" line.

Tested

Linux (GCC, Release and a fast debug build): new guest_share test (valid/null param, valid/null req_id). It doesn't link on main (the export doesn't exist there). Breaking the error code, the req_id write or its value each makes it fail. ctest -R 'guest_|share': 96/96 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 (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:4748670840 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/712). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-05T17:35:49Z. --- ### What Renames the unknown libSceShare stub `GQTObcITIXI` to `sceShareCaptureScreenshotExtended` (name from the NID database, hash-verified) and implements it. - Behaviour from [KytyPS5](https://github.com/KytyPS5/KytyPS5/blob/main/src/libs/libShare.cpp) (`ShareCaptureScreenshotExtended`): capture is not available, so it writes `-1` (invalid request id) to `req_id` when it is not null and returns `0x81960007` (`SCE_SHARE_ERROR_NOT_SUPPORTED`). shadPS4 and fpPS4 don't implement it. - Only libSceShare exports this NID (libSceShare.native doesn't), so no duplicate export. - libSceShare gets its own `CMakeLists.txt` (libSceRazorCpu pattern, incl. the `if(MINGW)` block) to register the test. - TechnicalDebt: removed the `GQTObcITIXI` "unknown name, signature" line. ### Tested Linux (GCC, Release and a fast debug build): new `guest_share` test (valid/null param, valid/null `req_id`). It doesn't link on `main` (the export doesn't exist there). Breaking the error code, the `req_id` write or its value each makes it fail. `ctest -R 'guest_|share'`: 96/96 pass. ### 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:36:15 +00:00 (Migrated from github.com)

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


Progress report (0518f0e → 9b9194e)

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

✅ 1 implemented
Library Name
libSceShare sceShareCaptureScreenshotExtended
🗑️ 1 removed
Library Name
libSceShare sceShareUnknown_GQTObcITIXI
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5999756598 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/712#issuecomment-5999756598). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-05T17:36:15Z. --- <!-- progress-report --> ### Progress report (0518f0e → 9b9194e) 📈 **System libraries**: 79.24% (+0.03%, +1 implemented, -1 removed functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceShare | `sceShareCaptureScreenshotExtended` | </details> <details> <summary>🗑️ 1 removed</summary> | Library | Name | | - | - | | libSceShare | `sceShareUnknown_GQTObcITIXI` | </details>
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!712
No description provided.