libSceContentExport: the export session calls are stubs (Cult of the Lamb imports three); session implementation ready #3374
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 screamm on 2026-10-11T09:23:48Z.
In libSceContentExport (Export.cpp)
sceContentExportStart,Finish,GetProgress,CancelandFromDataWithThumbnailareNotImplemented_nid_no_patchstubs. Cult of the Lamb (PPSA06465) listsGetProgress,CancelandFromDataWithThumbnailas absent imports in its import audit (#2686); PPSA21564 (#271) and Cyberpunk (#266) importStart.Fix branch ready:
screamm:feat/content-export-sessions(6d726a47, one commit onmain1c75f4d2). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commit as is. It editsGuestContentUnimplemented.cppand the ContentExport CMakeLists like the ContentSearch branch in #3370, so whichever lands second needs a trivial rebase.db_types.json(cc408367, lines 545 to 554) for the signatures; SharpProsperoInterop/Content/ContentExport.csandContentExporter.cs(5dfdb4b0) forMaxExecution = 10, the Start → export → Finish flow and the callback struct; shadPS4content_export.h/content_export_error.h(443f0224) for the 579-byte parameter layout (added toSceTypes.hppwith a size check) and error codes.Startthrows beforeInit2(the library's existing pattern) and otherwise returns a positive session id with at most 10 open at once (an 11th throws: the sources do not say whether the console returnsEXECUTION_MAX);Finishcloses a session (unknown id throwsinvalid_argument);FromDataWithThumbnailchecks the library and session, then throws "the host has no media library to export into" before touching the callbacks or the output path;GetProgressandCancelcheck the session and throw, since no export ever runs here and the sources describe only a running one;Termthrows with open sessions. So a title that exports a photo still stops, but at the precise call with a precise reason;FromData,FromFile,FromFileWithThumbnailare untouched. TechnicalDebt gets one bullet and the three functions leave the PPSA06465 "signatures unknown" bullet.guest_content_exportgains Start/Finish before init, 10 ids, the 11th throwing, Term with open sessions, the throws on an open session,invalid_argumenton closed ids, and a clean shutdown; the three leaveguest_content_unimplemented.Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs: both tests 3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"520/520; withmain'sExport.cppthe extended test fails;tools/check_conventions.py --base mainandgit diff --checkpass. Not run on Linux.Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T10:27:46Z.
Independent verification on Linux (the gap noted in the report): CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON.6d726a47onto currentmain: applies cleanly, no conflicts (also rebases cleanly on top of #3370's branch for whichever lands second).tools/check_conventions.pyandgit diff --checkpass.guest_content_exportandguest_content_unimplementedpass.ctest -j8 -E "^agc_driver_|^video_out_flip"): 522/522 passed.The rebased branch is available at
blawesom:verify/3374for anyone carrying — the commit is otherwise unchanged.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T15:59:21Z.
Carried David’s ready commit into #3721, preserving its author metadata. I rebased it onto current main and kept the existing TechnicalDebt entry; the independent Linux verification is summarized in the PR description.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:27:27Z.
Closing: fixed by #3721.