Simplify decompression
This commit is contained in:
parent
a539f9b584
commit
b5f620844b
|
@ -55,11 +55,7 @@ namespace Islet_Online_Unpacker
|
||||||
MemoryStream ms = new();
|
MemoryStream ms = new();
|
||||||
br.ReadInt16();
|
br.ReadInt16();
|
||||||
using (var ds = new DeflateStream(new MemoryStream(br.ReadBytes(size)), CompressionMode.Decompress))
|
using (var ds = new DeflateStream(new MemoryStream(br.ReadBytes(size)), CompressionMode.Decompress))
|
||||||
ds.CopyTo(ms);
|
ds.CopyTo(FS);
|
||||||
br = new(ms);
|
|
||||||
br.BaseStream.Position = 0;
|
|
||||||
bw.Write(br.ReadBytes(sub.sizeUncompressed));
|
|
||||||
br = new(input);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue