mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-30 17:05:37 +08:00
(TcdOpener.OpenEntry): additional sanity check for script entries.
This commit is contained in:
parent
6a8b51b0af
commit
0ea84672d8
@ -254,7 +254,7 @@ namespace GameRes.Formats.TopCat
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!spdc_entry && entry.Name.StartsWith ("TXT\\", StringComparison.InvariantCultureIgnoreCase)
|
if (!spdc_entry && entry.Name.StartsWith ("TXT\\", StringComparison.InvariantCultureIgnoreCase)
|
||||||
&& signature < 0x01000000)
|
&& signature > 0 && signature < 0x01000000)
|
||||||
return OpenScript (tcda, tcde, signature);
|
return OpenScript (tcda, tcde, signature);
|
||||||
}
|
}
|
||||||
var rest = arc.File.CreateStream (entry.Offset+0x14, entry.Size-0x14);
|
var rest = arc.File.CreateStream (entry.Offset+0x14, entry.Size-0x14);
|
||||||
|
Loading…
Reference in New Issue
Block a user