mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-25 12:24:12 +08:00
(AutoEntry.Create): ignore zero signatures.
This commit is contained in:
parent
6369489fc6
commit
46631796b8
@ -60,6 +60,7 @@ namespace GameRes.Formats
|
|||||||
{
|
{
|
||||||
return new AutoEntry (base_name, () => {
|
return new AutoEntry (base_name, () => {
|
||||||
uint signature = file.View.ReadUInt32 (offset);
|
uint signature = file.View.ReadUInt32 (offset);
|
||||||
|
if (0 == signature) return null;
|
||||||
return FormatCatalog.Instance.LookupSignature (signature).FirstOrDefault();
|
return FormatCatalog.Instance.LookupSignature (signature).FirstOrDefault();
|
||||||
}) { Offset = offset };
|
}) { Offset = offset };
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user