1
0
mirror of synced 2024-11-30 18:24:39 +01:00

Compress files with zstd in archives

This commit is contained in:
KillzXGaming 2019-07-05 19:06:24 -04:00
parent cfec92db18
commit 82201ffd4c
5 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -24,6 +24,8 @@ namespace Switch_Toolbox.Library.IO
{
case CompressionType.Yaz0:
return EveryFileExplorer.YAZ0.Compress(data, 3, (uint)Alignment);
case CompressionType.Zstb:
return ZSTD.Compress(data);
case CompressionType.None:
return data;
default:

View File

@ -221,6 +221,8 @@ namespace Switch_Toolbox.Library.IO
else if (FileIsCompressed)
CompressFile = true;
Console.WriteLine($"FileIsCompressed {FileIsCompressed} CompressFile {CompressFile} CompressionType {CompressionType}");
if (CompressFile)
{
switch (CompressionType)