From b5f620844b246a984960297104ac4651383a0848 Mon Sep 17 00:00:00 2001 From: MichaelHinrichs Date: Sat, 20 Apr 2024 12:24:52 -0500 Subject: [PATCH] Simplify decompression --- Program.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Program.cs b/Program.cs index edb592a..ba08ea1 100644 --- a/Program.cs +++ b/Program.cs @@ -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; }