Files
AnyPS5/docs/dev/debt/libSceContentExport.md
T
Eduardo Ruiz b08d6214b2 Merge remote-tracking branch 'origin/main' into feat/contentexport-from-data
# Conflicts:
#	core/libs/prx/libSceContentExport/Export.cpp
#	core/libs/tests/GuestContentExport.cpp
#	docs/dev/debt/libSceContentExport.md
2026-11-09 10:05:23 +01:00

3.1 KiB
Raw Blame History

libSceContentExport technical debt

Functional

  • sceContentExportInit - validates parameter presence and required allocator callbacks before recording library initialization state; allocator invocation and session worker initialization remain unmodelled

  • Content export sessions: the host has no media library, so the file export entry points and sceContentExportFromDataWithThumbnail validate the export session before calling NotImplemented_nid_no_patch without invoking data callbacks; sceContentExportFromData writes its chunks to a temporary file instead, as its own entry describes. Session allocation does not reproduce guest allocator calls, worker creation or failure paths. sceContentExportGetProgress calls NotImplemented_nid_no_patch because an idle session returns either zero or invalid-state according to caller SDK compatibility mode. Initialization and session lookup throw for some invalid inputs instead of reproducing console error precedence. Session IDs use the lowest free slot in 0–9; exhaustion, termination with live sessions and cancellation return confirmed errors.

  • sceContentExportFromData (libSceContentExport) - the temporary file is written and returned as-is: the content-management service reached through IPMI, its registration and thumbnail handling are not modeled, so the media-library path is missing. The firmware 4.03 preamble is reproduced: 0x809D3004 while uninitialized unless the SDK is below 0x4000000 (legacy mode skips the init gate), then 0x809D3016 for an out-of-range or unknown session, null param or null callback. Cancellation is not observed during the callback; open/write failures map to 0x809D3001/0x809D3017. Chunks go to /av_contents/content_tmp/sce_cmgcnt%p.<subtype> (11.00), total must equal contentLength, and the path is copied bounded by pathBufferLength and 0x400. PPSA01746 (0xba0e14) calls it between Start and Finish and the ContentManagement plugin of PPSA06465 (0x11f9) judges it by result sign; argument and callback meaning are unverified.

Silent stubs

  • sceContentExportTerm (libSceContentExport) returns 0 without waiting for ongoing operations, tearing down threads, or verifying that all resources have been released.

Unknown function info