(AdvSys3): use Entry.ChangeType.

This commit is contained in:
morkt 2017-02-13 19:49:06 +04:00
parent 4929d1efd1
commit dc1647c5bf

View File

@ -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;