mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +08:00
(DSK): ignore empty entries.
This commit is contained in:
parent
dabed60304
commit
eb8e7598a0
@ -51,6 +51,9 @@ namespace GameRes.Formats.Abogado
|
||||
{ "SOUND", "ADP" },
|
||||
{ "PCM1", "ADP" },
|
||||
{ "PCM2", "ADP" },
|
||||
{ "PCM", "ADP" },
|
||||
{ "GRAPHIC", "KG" },
|
||||
{ "SCENARIO", "SCF" },
|
||||
};
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
@ -76,6 +79,8 @@ namespace GameRes.Formats.Abogado
|
||||
for (int i = 0; i < count; ++i)
|
||||
{
|
||||
var name = pft.ReadCString (8);
|
||||
if (name.Length > 0)
|
||||
{
|
||||
if (!string.IsNullOrEmpty (ext))
|
||||
name = Path.ChangeExtension (name, ext);
|
||||
var entry = FormatCatalog.Instance.Create<Entry> (name);
|
||||
@ -85,6 +90,7 @@ namespace GameRes.Formats.Abogado
|
||||
return null;
|
||||
dir.Add (entry);
|
||||
}
|
||||
}
|
||||
return new ArcFile (file, this, dir);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user