decompress .json.zstd fetched by getSaveData

This commit is contained in:
Altair-sh
2026-09-23 18:24:45 +02:00
parent f1a60a208c
commit 7d64ab4809
6 changed files with 67 additions and 39 deletions
+3 -3
View File
@@ -10,11 +10,11 @@ export const defaultConfig = {
// Size of a save if it is uploaded as uncompressed. The browser packs
// saves as a stream, so these limits are about the backend's disk
// rather than about memory.
maxSizePlainTextBytes: 200 * 1024 * 1024,
maxSizePlainTextMB: 200,
// Archives produced by the game, recognized by the zip magic bytes.
maxSizeCompressedBytes: 60 * 1024 * 1024,
maxSizeCompressedMB: 60,
// read COMPRESSION.md
zstdCompressionLevel: 11,
zstdCompressionLevel: 10,
},
}