mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-21 02:09:05 +02:00
Saving compressed into a ZSTD_compressBound() buffer, about the size of the whole state, and loading read the whole compressed file before decompressing it. Now saving compresses into a buffer that grows with its output and frees the uncompressed state before writing, and loading decompresses the file in chunks. The file format doesn't change. Saving also compresses before opening the file, which truncates it, and drops the unused snappy path. LoadFile and SaveFile are public, for doing the file part away from the state itself. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>