Fix LZ4F decompression in menu
This commit is contained in:
parent
cba330d41d
commit
ba760057dd
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -115,7 +115,13 @@ namespace Switch_Toolbox.Library.IO
|
||||
SaveFileForCompression(STLibraryCompression.ZSTD.Decompress(data));
|
||||
break;
|
||||
case CompressionType.Lz4f:
|
||||
SaveFileForCompression(STLibraryCompression.Type_LZ4F.Decompress(data));
|
||||
using (var reader = new FileReader(data))
|
||||
{
|
||||
reader.Position = 0;
|
||||
int OuSize = reader.ReadInt32();
|
||||
int InSize = data.Length - 4;
|
||||
SaveFileForCompression(STLibraryCompression.Type_LZ4F.Decompress(reader.getSection(4, InSize)));
|
||||
}
|
||||
break;
|
||||
case CompressionType.Lz4:
|
||||
SaveFileForCompression(STLibraryCompression.Type_LZ4.Decompress(data));
|
||||
|
Loading…
x
Reference in New Issue
Block a user