From d04ac8b7c3c8641dd8f0f0637ca70fb758c7ab66 Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 27 Mar 2018 14:27:39 +0400 Subject: [PATCH] (PackedStream): added constructor. --- ArcFormats/PackedStream.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ArcFormats/PackedStream.cs b/ArcFormats/PackedStream.cs index 629b309b..a7c863ad 100644 --- a/ArcFormats/PackedStream.cs +++ b/ArcFormats/PackedStream.cs @@ -106,6 +106,12 @@ namespace GameRes.Compression m_reader.Initialize (input); } + public PackedStream (Stream input, TDecompressor reader, bool leave_open = false) : base (input, leave_open) + { + m_reader = reader; + m_reader.Initialize (input); + } + protected TDecompressor Reader { get { return m_reader; } } public override bool CanSeek { get { return false; } }