mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-04 02:45:36 +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)
|
if (0 == name_length)
|
||||||
return null;
|
return null;
|
||||||
string name = encoding.GetString (name_raw, 0, name_length).ToLowerInvariant();
|
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.Offset = file.View.ReadUInt32 (dir_offset+12);
|
||||||
entry.Size = file.View.ReadUInt32 (dir_offset+16);
|
entry.Size = file.View.ReadUInt32 (dir_offset+16);
|
||||||
if (!entry.CheckPlacement (file.MaxOffset))
|
if (!entry.CheckPlacement (file.MaxOffset))
|
||||||
|
Loading…
Reference in New Issue
Block a user