mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-30 17:05:37 +08:00
fixed GYU decompression.
This commit is contained in:
parent
2b6f14d01b
commit
68832d9544
@ -161,7 +161,7 @@ namespace GameRes.Formats.ExHibit
|
||||
|
||||
void UnpackGyu (byte[] packed)
|
||||
{
|
||||
using (var mem = new MemoryStream (packed))
|
||||
using (var mem = new MemoryStream (packed, 4, packed.Length-4))
|
||||
using (var bits = new MsbBitStream (mem))
|
||||
{
|
||||
int dst = 0;
|
||||
@ -185,7 +185,7 @@ namespace GameRes.Formats.ExHibit
|
||||
offset = -1 << 13 | count >> 3;
|
||||
count &= 7;
|
||||
|
||||
if (0 == count)
|
||||
if (0 != count)
|
||||
{
|
||||
++count;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user