Skip to content

Commit

Permalink
Add content size back?
Browse files Browse the repository at this point in the history
Saves space?
  • Loading branch information
Genwald committed May 10, 2020
1 parent 2b55431 commit a74557a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/mod_installer.h
Expand Up @@ -86,7 +86,7 @@ bool compressFile(const char* path, u64 compSize, u64 &dataSize, char* outBuff,
u64 bytesAway = ULONG_MAX;
if(compContext == nullptr) compContext = ZSTD_createCCtx();
// Minimize header size
ZSTD_CCtx_setParameter(compContext, ZSTD_c_contentSizeFlag, 0);
ZSTD_CCtx_setParameter(compContext, ZSTD_c_contentSizeFlag, 1);
ZSTD_CCtx_setParameter(compContext, ZSTD_c_checksumFlag, 0);
ZSTD_CCtx_setParameter(compContext, ZSTD_c_dictIDFlag, 1);
do {
Expand Down

0 comments on commit a74557a

Please sign in to comment.