mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
use remainder for format check.
This commit is contained in:
@@ -52,7 +52,7 @@ namespace GameRes.Formats.ScenePlayer
|
|||||||
return null;
|
return null;
|
||||||
int flg = stream.ReadByte() ^ 0x21;
|
int flg = stream.ReadByte() ^ 0x21;
|
||||||
int fcheck = first << 8 | flg;
|
int fcheck = first << 8 | flg;
|
||||||
if (fcheck / 0x1f * 0x1f != fcheck)
|
if (fcheck % 0x1f != 0)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
stream.Position = 0;
|
stream.Position = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user