mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +08:00
(Zlc2Reader.Unpack): fixed remaining counter.
This commit is contained in:
parent
c524a41041
commit
f1072d81df
@ -178,6 +178,7 @@ namespace GameRes.Formats.CandySoft
|
|||||||
|
|
||||||
int offset = m_input.ReadUInt8();
|
int offset = m_input.ReadUInt8();
|
||||||
int count = m_input.ReadUInt8();
|
int count = m_input.ReadUInt8();
|
||||||
|
remaining -= 2;
|
||||||
offset |= (count & 0xF0) << 4;
|
offset |= (count & 0xF0) << 4;
|
||||||
count = (count & 0x0F) + 3;
|
count = (count & 0x0F) + 3;
|
||||||
|
|
||||||
@ -192,6 +193,7 @@ namespace GameRes.Formats.CandySoft
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_output[dst++] = m_input.ReadUInt8();
|
m_output[dst++] = m_input.ReadUInt8();
|
||||||
|
remaining--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user