removed redundant ArcView.Reader instances.

This commit is contained in:
morkt
2016-10-17 16:57:13 +04:00
parent 375e162959
commit 84985d18f5
5 changed files with 47 additions and 55 deletions

View File

@@ -54,7 +54,6 @@ namespace GameRes.Formats.Kiss
var dir = new List<Entry> (count);
using (var input = file.CreateStream())
using (var reader = new ArcView.Reader (input))
{
long prev_offset = 4;
input.Position = 4;
@@ -64,7 +63,7 @@ namespace GameRes.Formats.Kiss
if (string.IsNullOrWhiteSpace (name))
return null;
var entry = FormatCatalog.Instance.Create<Entry> (name);
entry.Offset = reader.ReadInt64();
entry.Offset = input.ReadInt64();
if (entry.Offset < prev_offset || entry.Offset > file.MaxOffset)
return null;
dir.Add (entry);