Some quick CRAR fixes

This commit is contained in:
KillzXGaming 2020-09-15 16:19:01 -04:00
parent 4e23dcf91f
commit e6f4f0562d

View file

@ -340,9 +340,18 @@ namespace FirstPlugin
//Save parent and root nodes at end
writer.Write((ushort)0);
writer.Write((ushort)46);
if (IsLittleEndian)
{
writer.Write((ushort)0);
writer.Write((byte)0);
writer.Write((byte)2);
}
else
{
writer.Write((byte)2);
writer.Write((byte)0);
writer.Write((ushort)0);
}
writer.Write(dir);
writer.Write(16);
writer.Write(0);
@ -351,9 +360,18 @@ namespace FirstPlugin
writer.Write((ushort)0);
writer.Write((ushort)184);
if (IsLittleEndian)
{
writer.Write((ushort)2);
writer.Write((byte)0);
writer.Write((byte)2);
}
else
{
writer.Write((byte)2);
writer.Write((byte)0);
writer.Write((ushort)2);
}
writer.Write(rootIndex);
writer.Write(16);
writer.Write(0);