mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +08:00
(GP8): recognize non-zero coordinates.
This commit is contained in:
parent
6010c92b3e
commit
b171ac9b4b
@ -43,7 +43,9 @@ namespace GameRes.Formats.Elf
|
|||||||
{
|
{
|
||||||
if (file.Length <= 0x408)
|
if (file.Length <= 0x408)
|
||||||
return null;
|
return null;
|
||||||
if (0 != file.ReadInt32())
|
int x = file.ReadInt16();
|
||||||
|
int y = file.ReadInt16();
|
||||||
|
if (x < 0 || y < 0 || x > 0x300 || y > 0x300)
|
||||||
return null;
|
return null;
|
||||||
int w = file.ReadInt16();
|
int w = file.ReadInt16();
|
||||||
int h = file.ReadInt16();
|
int h = file.ReadInt16();
|
||||||
|
Loading…
Reference in New Issue
Block a user