mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +08:00
(MpxOpener): assign "script" type to *.isf files.
This commit is contained in:
parent
0bc57de734
commit
c43368150e
@ -128,7 +128,11 @@ namespace GameRes.Formats.DRS
|
||||
if (0 == name_length)
|
||||
return null;
|
||||
string name = encoding.GetString (name_raw, 0, name_length).ToLowerInvariant();
|
||||
var entry = FormatCatalog.Instance.CreateEntry (name);
|
||||
Entry entry;
|
||||
if (name.EndsWith (".isf", System.StringComparison.InvariantCultureIgnoreCase))
|
||||
entry = new Entry { Name = name, Type = "script" };
|
||||
else
|
||||
entry = FormatCatalog.Instance.CreateEntry (name);
|
||||
entry.Offset = file.View.ReadUInt32 (dir_offset+12);
|
||||
entry.Size = file.View.ReadUInt32 (dir_offset+16);
|
||||
if (!entry.CheckPlacement (file.MaxOffset))
|
||||
|
Loading…
Reference in New Issue
Block a user