Skip to content

Commit

Permalink
tank: dont break please
Browse files Browse the repository at this point in the history
  • Loading branch information
ZingBallyhoo committed Aug 23, 2024
1 parent e23572c commit 92ed53c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions TACTLib/Core/Product/Tank/ResourceGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ public struct TRGHeader { // version 11
public int m_typeBundleIndexBlockSize; // 44
public uint m_48; // 48
public uint m_52; // 52
public uint m_56; // 56
public uint m_60; // 60
public uint m_56; // 56 - new
public uint m_60; // 60 - new
public int m_graphBlockSize; // 64
public uint m_footerMagic; // 68

Expand Down Expand Up @@ -229,9 +229,7 @@ public ResourceGraph(ClientHandler client, Stream stream, string name) {
if (IsPre152(m_header)) {
stream.Position = 0;
m_header = reader.Read<TRGHeader6>().Upgrade();
}

if (IsPre212(m_header)) {
} else if (IsPre212(m_header)) {
stream.Position = 0;
m_header = reader.Read<TRGHeader7>().Upgrade();
}
Expand All @@ -242,6 +240,7 @@ public ResourceGraph(ClientHandler client, Stream stream, string name) {
}

// version 10: added extra entries to skin assets.. for trg runtime overrides (instead of on the skin asset)
// version 11: 2 new header fields, unknown

var isEnc = m_header.IsEncrypted();

Expand Down

0 comments on commit 92ed53c

Please sign in to comment.