(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 else
{ {
var res = AutoEntry.DetectFileType (signature); var res = AutoEntry.DetectFileType (signature);
if (res != null) entry.ChangeType (res);
{
entry.Type = res.Type;
entry.Name = Path.ChangeExtension (entry.Name, res.Extensions.FirstOrDefault());
}
} }
dir.Add (entry); dir.Add (entry);
current_offset += size; current_offset += size;