From 127a2bcf4ddcfac878300f2b57a61c5fc0e46744 Mon Sep 17 00:00:00 2001 From: morkt Date: Thu, 16 Apr 2015 22:41:03 +0400 Subject: [PATCH] AutoEntry.Offset set in constructor now. --- ArcFormats/ArcKAAS.cs | 3 +-- ArcFormats/ArcMnoViolet.cs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ArcFormats/ArcKAAS.cs b/ArcFormats/ArcKAAS.cs index 7223964b..daf3a206 100644 --- a/ArcFormats/ArcKAAS.cs +++ b/ArcFormats/ArcKAAS.cs @@ -120,8 +120,7 @@ namespace GameRes.Formats.KAAS if (!is_voice) entry = AutoEntry.Create (file, offset, i.ToString ("D4")); else - entry = new Entry { Name = string.Format ("{0:D4}.pb", i), Type = "archive" }; - entry.Offset = offset; + entry = new Entry { Name = string.Format ("{0:D4}.pb", i), Type = "archive", Offset = offset }; entry.Size = file.View.ReadUInt32 (index_offset + 4); if (!entry.CheckPlacement (file.MaxOffset)) return null; diff --git a/ArcFormats/ArcMnoViolet.cs b/ArcFormats/ArcMnoViolet.cs index 187a4a82..b0c8531b 100644 --- a/ArcFormats/ArcMnoViolet.cs +++ b/ArcFormats/ArcMnoViolet.cs @@ -64,7 +64,6 @@ namespace GameRes.Formats.MnoViolet index_offset += name_size; uint offset = file.View.ReadUInt32 (index_offset+4); var entry = AutoEntry.Create (file, offset, name); - entry.Offset = offset; entry.Size = file.View.ReadUInt32 (index_offset); if (offset <= index_size || !entry.CheckPlacement (file.MaxOffset)) return null;