mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(CGF): sanity check.
This commit is contained in:
parent
b66893a2aa
commit
364049f72a
@ -76,6 +76,8 @@ namespace GameRes.Formats.Triangle
|
||||
for (int i = 0; i < count; ++i)
|
||||
{
|
||||
var name = file.View.ReadString (index_offset, entry_size-4);
|
||||
if (!IsValidEntryName (name))
|
||||
return null;
|
||||
uint flags = next_offset >> 30;
|
||||
Entry entry;
|
||||
if (1 == flags || name.HasExtension (".iaf"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user