Fix saving 3ds bflims (fixes saving layout files in archives)
This commit is contained in:
parent
ab066f1706
commit
b1317f7e96
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user