mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-23 00:53:02 -05:00
sceAmprAprCommandBufferReadFileGather, ReadFileScatter, ReadFileGatherScatter and ResetGatherScatterState, with their measure functions. Signatures, argument checks and the read cursor follow ampr_emu: each read leaves the file, the next offset and the next destination; a gather reads at a new offset into the next destination, a scatter continues in the file into a new destination, and a gather-scatter takes both. Recording one needs a file read since the last reset, tracked in the command buffer object next to its type. sceAmprAprCommandBufferReadFile now applies the same length, offset and destination checks and rejects a null command buffer instead of dereferencing it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>