Outpost is now working

This commit is contained in:
Mikhail
2024-07-05 09:04:56 -04:00
parent 42261a16b6
commit 18102b9922
9 changed files with 65 additions and 16 deletions

View File

@@ -36,7 +36,7 @@ namespace DataFixupUtil
var startPos = (int)ms.Position;
var contents = FileContents.Skip(startPos).ToArray();
if (contents.Length != 0 && contents[0] == 31)
if (contents.Length > 2 && contents[0] == 0x1f && contents[1] == 0x8b)
{
// gzip compression is used
using Stream csStream = new GZipStream(new MemoryStream(contents), CompressionMode.Decompress);