mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
Old claim: sceAmprCommandBufferDestructor, sceAmprAprCommandBufferDestructor,
sceAmprAmmCommandBufferConstructor and sceAmprAmmCommandBufferDestructor return 0
without reading or changing the buffer, and the AMM constructor leaves every field
of the buffer as the caller left it.
What the code does: each of the four calls ReleaseExpandedCommandBuffer on a
non-null buffer. When the emulator has expanded that buffer's commands, the helper
frees the expansion, restores the original base and size, and resets offset and the
command count to 0. The APR destructor does not touch its gather and scatter states.
Permalinks at b1b5353cfc:
- https://github.com/boykopovar/AnyPS5/blob/b1b5353cfcee098ed17e3ba8a6e616bee97c9215/core/libs/prx/libSceAmpr/Export.cpp#L91-L102
- https://github.com/boykopovar/AnyPS5/blob/b1b5353cfcee098ed17e3ba8a6e616bee97c9215/core/libs/prx/libSceAmpr/Export.cpp#L395-L400
- https://github.com/boykopovar/AnyPS5/blob/b1b5353cfcee098ed17e3ba8a6e616bee97c9215/core/libs/prx/libSceAmpr/Export.cpp#L503-L506
- https://github.com/boykopovar/AnyPS5/blob/b1b5353cfcee098ed17e3ba8a6e616bee97c9215/core/libs/prx/libSceAmpr/Export.cpp#L734-L743