mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-26 06:20:24 +00:00
Some quick CRAR fixes
This commit is contained in:
parent
4e23dcf91f
commit
e6f4f0562d
1 changed files with 24 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue