From dc1647c5bf2ac7ab48e0e34cee273252943e4fd0 Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 13 Feb 2017 19:49:06 +0400 Subject: [PATCH] (AdvSys3): use Entry.ChangeType. --- ArcFormats/AdvSys/ArcAdvSys3.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ArcFormats/AdvSys/ArcAdvSys3.cs b/ArcFormats/AdvSys/ArcAdvSys3.cs index 02af9f94..eef3a44b 100644 --- a/ArcFormats/AdvSys/ArcAdvSys3.cs +++ b/ArcFormats/AdvSys/ArcAdvSys3.cs @@ -80,11 +80,7 @@ namespace GameRes.Formats.AdvSys else { var res = AutoEntry.DetectFileType (signature); - if (res != null) - { - entry.Type = res.Type; - entry.Name = Path.ChangeExtension (entry.Name, res.Extensions.FirstOrDefault()); - } + entry.ChangeType (res); } dir.Add (entry); current_offset += size;