Skip to content

Commit

Permalink
Fixed padding for FNTFile
Browse files Browse the repository at this point in the history
  • Loading branch information
thesupersonic16 committed Apr 24, 2024
1 parent a6b9c14 commit a7ce51a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DALTools/DALLib/File/FNTFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public override void Load(ExtendedBinaryReader reader, bool keepOpen = false)

// Load texture
reader.JumpTo(textureOffset);
reader.FixPadding(0x08);
FontTexture.Load(reader, true);

// Set scale size
Expand All @@ -53,6 +54,7 @@ public override void Save(ExtendedBinaryWriter writer)
FontCode.Save(writer);

// Texture
writer.FixPadding(0x08);
writer.FillInOffset("texture");
FontTexture.Save(writer);
}
Expand Down

0 comments on commit a7ce51a

Please sign in to comment.