Skip to content

Commit

Permalink
Use signatures for FNT files
Browse files Browse the repository at this point in the history
  • Loading branch information
thesupersonic16 committed Apr 24, 2024
1 parent 1fe568d commit 611e8cb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions DALTools/FontEditor/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,11 @@ private void UI_ImportTextureButton_Click(object sender, RoutedEventArgs e)
{
var textureFilePath = PCKFontArchive.SearchForFile(".tex");
var newTexture = new TEXFile();

// Set Sigless
newTexture.Sigless = true;


if (FontTableFile != null)
newTexture.Sigless = false;

// Load Image to Texture
newTexture.LoadSheetImage(ofd.FileName);

Expand All @@ -530,7 +531,7 @@ private void UI_ImportTextureButton_Click(object sender, RoutedEventArgs e)
using (var stream = new MemoryStream())
{
newTexture.Save(stream);
PCKFontArchive.ReplaceFile(textureFilePath, stream.ToArray());
PCKFontArchive.ReplaceFile(textureFilePath, stream.ToArray());
}
}
// Set Texture
Expand Down

0 comments on commit 611e8cb

Please sign in to comment.