Closed shaql2 closed 8 years ago
if(compressedSize < adj) { fatal("compressed size too small"); }
This stops the decompression if an empty file is encountered.
An example of an empty file can be found in the latest map_resource.pak, file groundcover_map49.lst
Adding if (e->compressedSize > 0) before the line carve_lzo_to_file(pFile, outName, e->compressedSize); fixes the issue
if (e->compressedSize > 0)
carve_lzo_to_file(pFile, outName, e->compressedSize);
This stops the decompression if an empty file is encountered.
An example of an empty file can be found in the latest map_resource.pak, file groundcover_map49.lst
Adding
if (e->compressedSize > 0)
before the linecarve_lzo_to_file(pFile, outName, e->compressedSize);
fixes the issue