Merge pull request #170 from diamante0018/main

maint(iw4): compress rawfiles just like on IW5 (fix zlib mem leak IW4, T5, IW5)
This commit is contained in:
Jan authored and GitHub committed 2024-04-21 20:22:08 +02:00
commit 4fb00bf368
5 files changed
+54 -10

No files matched your search

@@ -72,6 +72,8 @@ bool AssetLoaderRawFile::LoadAnimtree(
rawFile->len = static_cast<int>(compressedSize);
rawFile->buffer = static_cast<const char*>(compressedBuffer);
deflateEnd(&zs);
manager->AddAsset(ASSET_TYPE_RAWFILE, assetName, rawFile);
return true;