1
0
mirror of synced 2025-02-20 20:51:35 +01:00

Add support for older PTCL versions

This commit is contained in:
KillzXGaming 2019-05-03 21:33:36 -04:00
parent d3bea4cba6
commit dbf0cf24f6
3 changed files with 9 additions and 1 deletions

Binary file not shown.

View File

@ -465,8 +465,15 @@ namespace FirstPlugin
if (header.IsSPBD)
{
uint MipCount = reader.ReadUInt32();
uint Alignment = reader.ReadUInt32();
uint Pitch = reader.ReadUInt32();
WrapMode = reader.ReadByte(); //11 = repeat, 22 = mirror
byte unk = reader.ReadByte();
byte unk2 = reader.ReadByte();
byte unk3 = reader.ReadByte();
uint mipCount = reader.ReadUInt32();
CompSel = reader.ReadUInt32();
uint[] MipOffsets = reader.ReadUInt32s(13);
uint enableMipLevel = reader.ReadUInt32();
uint mipBias = reader.ReadUInt32();
uint originalDataFormat = reader.ReadUInt32();
@ -497,6 +504,7 @@ namespace FirstPlugin
DataPos = reader.ReadUInt32();
}
ArrayCount = 1;
Depth = 1;
if (Width != 0 && Height != 0 && SurfFormat != 0)
{