feat(libSceContentExport): implement the export calls #1537
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1537"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Deses on 2026-10-08T11:40:07Z.
What
Implements
sceContentExportStart,sceContentExportFinish,sceContentExportFromFileandsceContentExportFromFileWithThumbnailin libSceContentExport, and adds theContentExportParamstruct (title, comment, content type; 579 bytes).Startreturns a positive session id;Finishcloses it.Termdrops all open sessions.FromFile*copy the source file (and the thumbnail) to/_cein the host root and write the guest path of the copy to thepathbuffer. The host has no capture gallery, so the exported copy is the only observable result.FILE_NOT_FOUND,NOT_SUPPORTED_FORMAT(content type outsideimage/jpeg|png|gif,video/mp4|webm),LARGE_TITLE,LARGE_COMMENT,NOT_SUPPORT_FORMAT_THUMBNAIL(not png/jpg),DISKFULL. Not initialized, unknown session, null arguments and a too small path buffer throw, asInit2andTermalready do.sceContentExportFromDatatakes its real signature but still throws: the data provider callback protocol has a single source. Recorded in TechnicalDebt (Unknown function info).Signatures and NIDs (recomputed from the names, all match):
tools/ida/db_types.jsonlines 545-554 (commit b321fcdb)ContentExport.cs/ContentExporter.cs(session flow Init2, Start, FromFile, Finish, Term)src/core/libraries/content_export/(struct layouts, error codescontent_export_error.hlines 9-26)DISKFULLand that the returned path may not be accessibleUnconfirmed: title and comment are validated but not stored; whether
Startitself can returnBUSY/EXECUTION_MAX.Tested
Windows 11, GCC 15.2.0 (WinLibs), Release, build of this branch rebased on current upstream/main (full build, libs target, ctest):
ctest -R guest_content_exportpasses (FromFilecopies the bytes, thumbnail copy, each error code, session lifecycle, re-init afterTerm).check_conventions.pyandcheck_test_registration.pyclean. No title tested.CI: the upstream runs for this head are waiting for approval (#1631). The same Build workflow ran on the fork for head
b8e28684: https://github.com/Deses/AnyPS5/actions/runs/37804513306, Linux and Windows (full build,libs, ctest) green.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:57:21Z.
Same as #1582.
Pull request closed