Skip to content

Commit

Permalink
Small changes in rrtex format with Season 5 release (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
LenaBullens authored Oct 13, 2023
1 parent 0781626 commit d12c785
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions AOEMods.Essence/Chunky/RRTex/RRTexReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ private static RRTexDataTman ReadDataTman(ChunkyFileReader reader, ChunkHeader h
int mipCount = reader.ReadInt32();
int unknown4 = reader.ReadInt32();

if (unknown1 >= 6)
{
// New struct fields in version 6
byte unknown5 = reader.ReadByte();
int unknown6 = reader.ReadInt32();

if (unknown5 != 0)
Console.WriteLine($"RRTexDataTman.unknown5 not 0 (was {unknown5})");
if (unknown6 != 1)
Console.WriteLine($"RRTexDataTman.unknown6 not 1 (was {unknown6})");
}

int[] mipTextureCounts = new int[mipCount];
for (int i = 0; i < mipCount; i++)
{
Expand Down

0 comments on commit d12c785

Please sign in to comment.