use IBinaryStream interface instead of BinaryReader where appropriate.

This commit is contained in:
morkt
2016-10-16 18:29:54 +04:00
parent 3a1bae1a19
commit df01ce1893
23 changed files with 195 additions and 299 deletions

View File

@@ -99,7 +99,7 @@ namespace GameRes.Formats.FC01
MrgOpener.Decrypt (data, 0, data.Length, mca.Key);
if (method > 0)
{
using (var input = new MemoryStream (data))
using (var input = new BinMemoryStream (data))
using (var lzss = new MrgLzssReader (input, data.Length, unpacked_size))
{
lzss.Unpack();