From 07bd21b17461e62a1b140ff82defae4d48334c96 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Sat, 11 Jul 2020 15:21:37 -0400 Subject: [PATCH] Fix errors --- File_Format_Library/FileFormats/Texture/NUTEXB.cs | 1 + .../Forms/Editors/ImageEditor/ImagePropertiesEditor.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/File_Format_Library/FileFormats/Texture/NUTEXB.cs b/File_Format_Library/FileFormats/Texture/NUTEXB.cs index 359f64db..8a01aee3 100644 --- a/File_Format_Library/FileFormats/Texture/NUTEXB.cs +++ b/File_Format_Library/FileFormats/Texture/NUTEXB.cs @@ -486,6 +486,7 @@ namespace FirstPlugin public void Write(FileWriter writer) { TextureName = Text; + Console.WriteLine($"Text {Text}"); //MipSizes stores mip sizes for multile arrays int arrayCount = mipSizes.Count; diff --git a/Switch_Toolbox_Library/Forms/Editors/ImageEditor/ImagePropertiesEditor.cs b/Switch_Toolbox_Library/Forms/Editors/ImageEditor/ImagePropertiesEditor.cs index 7324877a..279a400a 100644 --- a/Switch_Toolbox_Library/Forms/Editors/ImageEditor/ImagePropertiesEditor.cs +++ b/Switch_Toolbox_Library/Forms/Editors/ImageEditor/ImagePropertiesEditor.cs @@ -215,7 +215,7 @@ namespace Toolbox.Library.Forms } Bitmap newImage = BitmapExtension.ReplaceChannel(Image, ImportedImage, ChannelType); - imageEditor.SaveAndApplyImage(newImage, true); + imageEditor.SaveAndApplyImage(newImage, true, ext == ".dds"); } } }