diff --git a/BotWSaveManager.Conversion/Save.cs b/BotWSaveManager.Conversion/Save.cs index 0b9e5d4..4cc9a76 100644 --- a/BotWSaveManager.Conversion/Save.cs +++ b/BotWSaveManager.Conversion/Save.cs @@ -168,6 +168,19 @@ public Dictionary ConvertSave(string outputLocation = null) { for (int h = 0; h < ms.Length / 4; h++) { + if (file.Contains("trackblock") && h == 0) + { + br.BaseStream.Position = 4; + byte[] reverseHeader = br.ReadBytes(2); + + Array.Reverse(reverseHeader); + + BinaryWriter endianUpd = new BinaryWriter(ms); + ms.Position = 4; + endianUpd.Write(reverseHeader); + h = 2; + } + br.BaseStream.Position = h * 4; byte[] endianConv = br.ReadBytes(4);