From e193a4de914aac11d7c67009887b7ff9620804fe Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 7 Jul 2015 11:30:10 +0400 Subject: [PATCH] (ArcOpener.OpenEntry): use LzssStream. --- ArcFormats/ArcAdvCls.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ArcFormats/ArcAdvCls.cs b/ArcFormats/ArcAdvCls.cs index 5ec0478b..4fb4cca0 100644 --- a/ArcFormats/ArcAdvCls.cs +++ b/ArcFormats/ArcAdvCls.cs @@ -89,12 +89,7 @@ namespace GameRes.Formats.AdvCls var packed = entry as PackedEntry; if (null == packed || !packed.IsPacked) return input; - using (input) - using (var reader = new LzssReader (input, (int)packed.Size, (int)packed.UnpackedSize)) - { - reader.Unpack(); - return new MemoryStream (reader.Data); - } + return new LzssStream (input); } private void DecryptIndex (byte[] data, string key)