Update LZMA SDK to 23.01
As a bonus, add support for XZ-compressed files in ZIP
This commit is contained in:
parent
5e96dbc981
commit
4497d7fdaa
89 changed files with 19247 additions and 2061 deletions
|
|
@ -65,6 +65,7 @@ static bool UncompressZipLump(char *Cache, FileReader &Reader, int Method, int L
|
|||
case METHOD_DEFLATE:
|
||||
case METHOD_BZIP2:
|
||||
case METHOD_LZMA:
|
||||
case METHOD_XZ:
|
||||
{
|
||||
FileReader frz;
|
||||
if (frz.OpenDecompressor(Reader, LumpSize, Method, false, exceptions))
|
||||
|
|
@ -349,7 +350,8 @@ bool FZipFile::Open(LumpFilterInfo* filter, FileSystemMessageFunc Printf)
|
|||
zip_fh->Method != METHOD_LZMA &&
|
||||
zip_fh->Method != METHOD_BZIP2 &&
|
||||
zip_fh->Method != METHOD_IMPLODE &&
|
||||
zip_fh->Method != METHOD_SHRINK)
|
||||
zip_fh->Method != METHOD_SHRINK &&
|
||||
zip_fh->Method != METHOD_XZ)
|
||||
{
|
||||
Printf(FSMessageLevel::Error, "%s: '%s' uses an unsupported compression algorithm (#%d).\n", FileName, name.c_str(), zip_fh->Method);
|
||||
skipped++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue