From 6b62a1701d38ea6270eaa06b6e723498b2e14b8c Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 17 Aug 2015 07:07:19 +0400 Subject: [PATCH] (ArcOpener): report real file size as UnpackedSize. --- ArcFormats/ArcXuse.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ArcFormats/ArcXuse.cs b/ArcFormats/ArcXuse.cs index 8c7e8854..2fca484f 100644 --- a/ArcFormats/ArcXuse.cs +++ b/ArcFormats/ArcXuse.cs @@ -145,7 +145,7 @@ namespace GameRes.Formats.Xuse var dir = new List (count); for (int i = 0; i < count; ++i) { - var entry = new Entry { + var entry = new PackedEntry { Name = string.Format ("{0}#{1:D4}.ogg", base_name, i), Type = "audio", Offset = next_offset, @@ -158,6 +158,11 @@ namespace GameRes.Formats.Xuse else next_offset = file.MaxOffset; entry.Size = (uint)(next_offset - entry.Offset); + if (entry.Size >= 0x32) + { + entry.IsPacked = true; + entry.UnpackedSize = entry.Size - 0x32; + } if (!entry.CheckPlacement (file.MaxOffset)) return null; dir.Add (entry);