feat(libSceContentExport): export missing firmware content export interfaces #7846

Merged
fogydes merged 1 commit from upstream-pr/7846 into main 2026-10-20 02:36:29 +00:00
fogydes commented 2026-10-19 10:34:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-19T10:34:58Z.


What

Exports missing PlayStation 5 firmware content export interfaces from libSceContentExport:

  • sceContentExportAddToFavorites
  • sceContentExportDataProvideFunction
  • sceContentExportFree
  • sceContentExportFrom
  • sceContentExportFromFileForSf
  • sceContentExportFromFileWithContentIdList
  • sceContentExportFromFileWithTitleIdList
  • sceContentExportInit
  • sceContentExportMalloc
  • sceContentExportRemoveFromFavorites
  • sceContentExportRenameContent
  • sceContentExportValidateContents

All 12 functions throw NotImplemented_nid_no_patch(__func__) as their general behaviour and signatures are unknown, and are recorded under Unknown function info in docs/dev/debt/libSceContentExport.md.
Unit tests added to core/libs/tests/GuestContentExport.cpp ensuring all 12 functions throw std::runtime_error.

Tested

  • Windows 11 Home, MinGW-w64 GCC 15.2.0, Ninja Release.
  • Built libSceContentExport and guest_content_export_tests.
  • Ran ctest --test-dir build-libs -R guest_content_export -V: 100% passed (1/1).
  • python tools/check_conventions.py --base origin/main passed with 0 warnings.

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 under Silent stubs in their library's technical debt file
  • 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: #7658
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4919605785 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7846). Originally posted by [fogydes](https://github.com/fogydes) on 2026-10-19T10:34:58Z. --- ### What Exports missing PlayStation 5 firmware content export interfaces from `libSceContentExport`: - `sceContentExportAddToFavorites` - `sceContentExportDataProvideFunction` - `sceContentExportFree` - `sceContentExportFrom` - `sceContentExportFromFileForSf` - `sceContentExportFromFileWithContentIdList` - `sceContentExportFromFileWithTitleIdList` - `sceContentExportInit` - `sceContentExportMalloc` - `sceContentExportRemoveFromFavorites` - `sceContentExportRenameContent` - `sceContentExportValidateContents` All 12 functions throw `NotImplemented_nid_no_patch(__func__)` as their general behaviour and signatures are unknown, and are recorded under `Unknown function info` in `docs/dev/debt/libSceContentExport.md`. Unit tests added to `core/libs/tests/GuestContentExport.cpp` ensuring all 12 functions throw `std::runtime_error`. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> - Windows 11 Home, MinGW-w64 GCC 15.2.0, Ninja Release. - Built `libSceContentExport` and `guest_content_export_tests`. - Ran `ctest --test-dir build-libs -R guest_content_export -V`: 100% passed (1/1). - `python tools/check_conventions.py --base origin/main` passed with 0 warnings. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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: #7658 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-19 10:35:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T10:35:40Z.


Progress report (674c253 → 155e415)

📉 System libraries: 82.53% (-0.21%, +12 declared functions)

🆕 12 declared as stubs
Library Name
libSceContentExport sceContentExportAddToFavorites
libSceContentExport sceContentExportDataProvideFunction
libSceContentExport sceContentExportFree
libSceContentExport sceContentExportFrom
libSceContentExport sceContentExportFromFileForSf
libSceContentExport sceContentExportFromFileWithContentIdList
libSceContentExport sceContentExportFromFileWithTitleIdList
libSceContentExport sceContentExportInit
libSceContentExport sceContentExportMalloc
libSceContentExport sceContentExportRemoveFromFavorites
libSceContentExport sceContentExportRenameContent
libSceContentExport sceContentExportValidateContents
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6265241275 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7846#issuecomment-6265241275). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T10:35:40Z. --- <!-- progress-report --> ### Progress report (674c253 → 155e415) 📉 **System libraries**: 82.53% (-0.21%, +12 declared functions) <details> <summary>🆕 12 declared as stubs</summary> | Library | Name | | - | - | | libSceContentExport | `sceContentExportAddToFavorites` | | libSceContentExport | `sceContentExportDataProvideFunction` | | libSceContentExport | `sceContentExportFree` | | libSceContentExport | `sceContentExportFrom` | | libSceContentExport | `sceContentExportFromFileForSf` | | libSceContentExport | `sceContentExportFromFileWithContentIdList` | | libSceContentExport | `sceContentExportFromFileWithTitleIdList` | | libSceContentExport | `sceContentExportInit` | | libSceContentExport | `sceContentExportMalloc` | | libSceContentExport | `sceContentExportRemoveFromFavorites` | | libSceContentExport | `sceContentExportRenameContent` | | libSceContentExport | `sceContentExportValidateContents` | </details>
github-actions[bot] commented 2026-10-19 10:37:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T10:37:54Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 6044 core/libs/tests/GuestContentExport.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6265282338 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7846#issuecomment-6265282338). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T10:37:54Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestContentExport.cpp` |
adriadam10 commented 2026-10-20 02:36:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T02:36:47Z.


Checked the 12 new exports against the existing FromFile* stubs in the file (same NotImplemented_nid_no_patch pattern), the test (each throws std::runtime_error) and the Unknown function info debt entry; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6282025889 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7846#issuecomment-6282025889). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-20T02:36:47Z. --- Checked the 12 new exports against the existing `FromFile*` stubs in the file (same `NotImplemented_nid_no_patch` pattern), the test (each throws `std::runtime_error`) and the Unknown function info debt entry; merged.
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!7846
No description provided.