From 33801bc48cd40b4384a2c5a43c015769c7f96b40 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Fri, 4 Sep 2020 14:30:25 -0400 Subject: [PATCH] Quick fix for nutexb swizzle settings --- File_Format_Library/FileFormats/Texture/NUTEXB.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/File_Format_Library/FileFormats/Texture/NUTEXB.cs b/File_Format_Library/FileFormats/Texture/NUTEXB.cs index 0f164830..39f9f705 100644 --- a/File_Format_Library/FileFormats/Texture/NUTEXB.cs +++ b/File_Format_Library/FileFormats/Texture/NUTEXB.cs @@ -246,7 +246,7 @@ namespace FirstPlugin public override void Replace(string FileName) { - if (IsSwizzled) + if (Runtime.NUTEXBSettings.IsSwizzled) { var tex = new TextureData(); tex.Replace(FileName, MipCount, 0, Format); @@ -511,7 +511,7 @@ namespace FirstPlugin public override void SetImageData(Bitmap bitmap, int ArrayLevel) { - if (!IsSwizzled) + if (!Runtime.NUTEXBSettings.IsSwizzled) { MipCount = GenerateMipCount(bitmap.Width, bitmap.Height); ImageData = GenerateMipsAndCompress(bitmap, MipCount, Format); @@ -561,7 +561,7 @@ namespace FirstPlugin public override byte[] GetImageData(int ArrayLevel = 0, int MipLevel = 0, int DepthLevel = 0) { - if (!IsSwizzled) + if (!Runtime.NUTEXBSettings.IsSwizzled) return DDS.GetArrayFaces(this, ImageData, 1)[ArrayLevel].mipmaps[0]; return TegraX1Swizzle.GetImageData(this, ImageData, ArrayLevel, MipLevel, DepthLevel, 1); @@ -589,7 +589,7 @@ namespace FirstPlugin Items.Add(new STToolStipMenuItem("Save", null, SaveAction, Keys.Control | Keys.T)); Items.Add(new STToolStipMenuItem("Taiko no Tatsujin fix", null, SwizzleToggle, Keys.Control | Keys.S) - { Checked = !IsSwizzled, CheckOnClick = true }); + { Checked = !Runtime.NUTEXBSettings.IsSwizzled, CheckOnClick = true }); Items.Add(new STToolStipMenuItem("Force padding for smaller file sizes", null, PaddingToggle, Keys.Control | Keys.P) { Checked = Runtime.NUTEXBSettings.PadFileSize, CheckOnClick = true });