1
0
mirror of synced 2025-01-31 12:23:52 +01:00

Fix saving 3ds bflims (fixes saving layout files in archives)

This commit is contained in:
KillzXGaming 2020-05-08 17:31:12 -04:00
parent ab066f1706
commit b1317f7e96

View File

@ -629,6 +629,7 @@ namespace FirstPlugin
using (var writer = new FileWriter(stream, true))
{
writer.ByteOrder = Syroot.BinaryData.ByteOrder.BigEndian;
writer.CheckByteOrderMark(header.ByteOrderMark);
writer.Write(ImageData);
@ -676,7 +677,10 @@ namespace FirstPlugin
public void Write(FileWriter writer)
{
writer.WriteSignature("FLIM");
writer.Write(ByteOrderMark);
if (writer.ByteOrder != Syroot.BinaryData.ByteOrder.LittleEndian)
writer.Write((ushort)0xFFFE);
else
writer.Write((ushort)0xFEFF);
writer.Write(HeaderSize);
writer.Write(Version);
writer.Write(uint.MaxValue);