mirror of
https://github.com/crskycode/GARbro.git
synced 2024-10-23 15:48:16 +08:00
use remainder for format check.
This commit is contained in:
parent
9527412933
commit
946173bd1a
@ -52,7 +52,7 @@ namespace GameRes.Formats.ScenePlayer
|
||||
return null;
|
||||
int flg = stream.ReadByte() ^ 0x21;
|
||||
int fcheck = first << 8 | flg;
|
||||
if (fcheck / 0x1f * 0x1f != fcheck)
|
||||
if (fcheck % 0x1f != 0)
|
||||
return null;
|
||||
|
||||
stream.Position = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user