1
0
mirror of synced 2025-02-21 21:10:27 +01:00

Fix BTI files without palette data

This commit is contained in:
KillzXGaming 2019-08-12 15:53:37 -04:00
parent 6d3827cd71
commit c9997842a0

View File

@ -76,6 +76,8 @@ namespace FirstPlugin
reader.SeekBegin(header.DataOffset);
uint imageDataSize = header.PaletteOffset - 32;
if (header.PaletteOffset == 0)
imageDataSize = (uint)reader.BaseStream.Length - 32;
ImageData = reader.ReadBytes((int)imageDataSize);