mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +08:00
(Circus): false positive verification.
This commit is contained in:
parent
02c2226295
commit
b6f47cace1
@ -70,6 +70,10 @@ namespace GameRes.Formats.Circus
|
|||||||
uint next_offset = file.View.ReadUInt32 (index_offset+name_length);
|
uint next_offset = file.View.ReadUInt32 (index_offset+name_length);
|
||||||
if (next_offset < 4+index_size)
|
if (next_offset < 4+index_size)
|
||||||
return null;
|
return null;
|
||||||
|
uint first_size = file.View.ReadUInt32 (index_offset+name_length-4);
|
||||||
|
uint second_offset = file.View.ReadUInt32 (index_offset+name_length*2+4);
|
||||||
|
if (second_offset - next_offset == first_size)
|
||||||
|
return null;
|
||||||
var dir = new List<Entry> (count);
|
var dir = new List<Entry> (count);
|
||||||
for (int i = 0; i < count; ++i)
|
for (int i = 0; i < count; ++i)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user