Fix BTI files without palette data
This commit is contained in:
parent
6d3827cd71
commit
c9997842a0
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user