Skip to content

Commit a74557a

Browse files
committed
Add content size back?
Saves space?
1 parent 2b55431 commit a74557a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/mod_installer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ bool compressFile(const char* path, u64 compSize, u64 &dataSize, char* outBuff,
8686
u64 bytesAway = ULONG_MAX;
8787
if(compContext == nullptr) compContext = ZSTD_createCCtx();
8888
// Minimize header size
89-
ZSTD_CCtx_setParameter(compContext, ZSTD_c_contentSizeFlag, 0);
89+
ZSTD_CCtx_setParameter(compContext, ZSTD_c_contentSizeFlag, 1);
9090
ZSTD_CCtx_setParameter(compContext, ZSTD_c_checksumFlag, 0);
9191
ZSTD_CCtx_setParameter(compContext, ZSTD_c_dictIDFlag, 1);
9292
do {

0 commit comments

Comments
 (0)