mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
use Entry.ChangeType method.
This commit is contained in:
@@ -109,12 +109,7 @@ namespace GameRes.Formats.SHSystem
|
||||
else
|
||||
res = AutoEntry.DetectFileType (signature);
|
||||
if (res != null)
|
||||
{
|
||||
entry.Type = res.Type;
|
||||
var ext = res.Extensions.FirstOrDefault();
|
||||
if (!string.IsNullOrEmpty (ext))
|
||||
entry.Name = Path.ChangeExtension (entry.Name, ext);
|
||||
}
|
||||
entry.ChangeType (res);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user