feat(libSceJxr): implement the FILE-backed WMPStream functions #15772
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15772"
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 alvaroelpob on 2026-11-04T13:55:26Z.
What
Implements the libSceJxr file stream exports EOSWS_File, ReadWS_File, WriteWS_File, SetPosWS_File and GetPosWS_File, as in jxrlib's strcodec.c. They work on the guest FILE* in the stream's first state word through the guest libc stdio functions.
Tested
Full suite on a696ef3492 (Linux): 3883/3883 passed, including the new guest_jxr_file_stream test. It runs the five functions on a real guest FILE*: one-block writes and a write to a read-only file, whole-block reads with zero-size and short reads failing, seeks from the start including an offset that becomes negative, positions, and the end-of-file indicator before and after a seek. check_conventions passes.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)