Skip to content

Commit

Permalink
Add support for Unity 2020.1 for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aevitas committed Jan 21, 2020
1 parent 3d2e368 commit cd9e2d7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Patcher/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ internal class Program
Version = "2019.2.3f1",
DarkPattern = new byte[] {0x75, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49},
LightPattern = new byte[] {0x74, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49}
},
new PatchInfo
{
Version = "2020.1",
DarkPattern = new byte[] {0x75, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49},
LightPattern = new byte[] {0x74, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49}
}
}
}
Expand Down Expand Up @@ -206,7 +212,7 @@ internal static void Main(string[] args)

using (var backupWriteStream = backupFileInfo.OpenWrite())
{
backupWriteStream.Write(ms.ToArray(), 0, (int) ms.Length);
backupWriteStream.Write(ms.ToArray(), 0, (int)ms.Length);
}

if (backupFileInfo.Exists)
Expand All @@ -227,7 +233,7 @@ internal static void Main(string[] args)
return;
}

var themeByte = themeName == "dark" ? (byte) 0x75 : (byte) 0x74;
var themeByte = themeName == "dark" ? (byte)0x75 : (byte)0x74;

foreach (var offset in lightOffsets)
{
Expand Down

0 comments on commit cd9e2d7

Please sign in to comment.