1
0
mirror of synced 2024-11-15 03:27:38 +01:00

Fix zlib decompression for NARC

This commit is contained in:
KillzXGaming 2019-06-12 18:25:41 -04:00
parent 26de867fa9
commit 19f3811a46
6 changed files with 2 additions and 3 deletions

Binary file not shown.

View File

@ -131,10 +131,9 @@ namespace FirstPlugin
else if (compType == 0x30)
{
uint decompSize = reader.ReadUInt32();
uint compSize = (uint)reader.BaseStream.Length;
compSize -= 10;
uint compSize = (uint)reader.BaseStream.Length - 14;
byte[] filedata = reader.getSection(10, (int)compSize);
byte[] filedata = reader.getSection(14, (int)compSize);
reader.Close();
reader.Dispose();