mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +08:00
(ANT): use ReadUInt8 method instead of ReadByte.
This commit is contained in:
parent
83fa7317c6
commit
8986ce3844
@ -57,15 +57,11 @@ namespace GameRes.Formats.Ego
|
|||||||
{
|
{
|
||||||
while (dst < pixels.Length)
|
while (dst < pixels.Length)
|
||||||
{
|
{
|
||||||
int a = stream.ReadByte();
|
byte a = stream.ReadUInt8();
|
||||||
if (-1 == a)
|
if (0 == a)
|
||||||
throw new EndOfStreamException();
|
|
||||||
else if (0 == a)
|
|
||||||
{
|
{
|
||||||
int count = stream.ReadByte();
|
byte count = stream.ReadUInt8();
|
||||||
if (-1 == count)
|
if (0 == count)
|
||||||
throw new EndOfStreamException();
|
|
||||||
else if (0 == count)
|
|
||||||
break;
|
break;
|
||||||
dst += count * 4;
|
dst += count * 4;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user