From f2237184b8e8332d79f231167d945728e5e217c9 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Mon, 11 May 2020 09:48:49 -0400 Subject: [PATCH] Quick bflim saving fix --- File_Format_Library/FileFormats/Texture/BFLIM.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/File_Format_Library/FileFormats/Texture/BFLIM.cs b/File_Format_Library/FileFormats/Texture/BFLIM.cs index 3f120bf1..091d632f 100644 --- a/File_Format_Library/FileFormats/Texture/BFLIM.cs +++ b/File_Format_Library/FileFormats/Texture/BFLIM.cs @@ -629,7 +629,6 @@ namespace FirstPlugin using (var writer = new FileWriter(stream, true)) { writer.ByteOrder = Syroot.BinaryData.ByteOrder.BigEndian; - writer.CheckByteOrderMark(header.ByteOrderMark); writer.Write(ImageData); @@ -677,10 +676,7 @@ namespace FirstPlugin public void Write(FileWriter writer) { writer.WriteSignature("FLIM"); - if (writer.ByteOrder != Syroot.BinaryData.ByteOrder.LittleEndian) - writer.Write((ushort)0xFFFE); - else - writer.Write((ushort)0xFEFF); + writer.Write((ushort)0xFEFF); writer.Write(HeaderSize); writer.Write(Version); writer.Write(uint.MaxValue);