# Conflicts: # core/libs/prx/libSceContentExport/Export.cpp # core/libs/tests/GuestContentExport.cpp # docs/dev/debt/libSceContentExport.md
3.1 KiB
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:
0x809D3004while uninitialized unless the SDK is below 0x4000000 (legacy mode skips the init gate), then0x809D3016for an out-of-range or unknown session, nullparamor nullcallback. Cancellation is not observed during the callback; open/write failures map to0x809D3001/0x809D3017. Chunks go to/av_contents/content_tmp/sce_cmgcnt%p.<subtype>(11.00), total must equalcontentLength, and the path is copied bounded bypathBufferLengthand 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
-
sceContentExportDataProvideFunction, sceContentExportFree, sceContentExportFrom and sceContentExportMalloc: their signatures remain unresolved; these names have no matching exports in the supplied module's C or assembly listing.
-
Content export arguments: file/data entry points and content-ID operations have restored argument lists. The Share Factory parameter contains a size, metadata string, content-ID list, count and option; metadata format and option values remain unresolved. Protected export bodies are unchanged.