Simplify decompression

This commit is contained in:
Michael Hinrichs 2024-04-20 12:24:52 -05:00
parent a539f9b584
commit b5f620844b
1 changed files with 1 additions and 5 deletions

View File

@ -55,11 +55,7 @@ namespace Islet_Online_Unpacker
MemoryStream ms = new();
br.ReadInt16();
using (var ds = new DeflateStream(new MemoryStream(br.ReadBytes(size)), CompressionMode.Decompress))
ds.CopyTo(ms);
br = new(ms);
br.BaseStream.Position = 0;
bw.Write(br.ReadBytes(sub.sizeUncompressed));
br = new(input);
ds.CopyTo(FS);
continue;
}