Skip to content

Commit 5db7bb1

Browse files
committed
Add 2019.3 for Windows and fix the light and dark modes for Windows being swapped
1 parent 47097be commit 5db7bb1

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,5 @@ paket-files/
258258

259259
# Python Tools for Visual Studio (PTVS)
260260
__pycache__/
261-
*.pyc
261+
*.pyc
262+
/Patcher/Properties/launchSettings.json

Patcher/Program.cs

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,29 @@ internal class Program
4141
{
4242
"windows", new List<PatchInfo>
4343
{
44+
new PatchInfo
45+
{
46+
Version = "2019.3.2f1",
47+
LightPattern = new byte[] {0x75, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49},
48+
DarkPattern = new byte[] {0x74, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49}
49+
},
4450
new PatchInfo
4551
{
4652
Version = "2019.2.3f1",
47-
DarkPattern = new byte[] {0x75, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49},
48-
LightPattern = new byte[] {0x74, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49}
53+
LightPattern = new byte[] {0x75, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49},
54+
DarkPattern = new byte[] {0x74, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49}
4955
},
5056
new PatchInfo
5157
{
5258
Version = "2019.3",
53-
DarkPattern = new byte[] {0x75, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49},
54-
LightPattern = new byte[] {0x74, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49}
59+
LightPattern = new byte[] {0x75, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49},
60+
DarkPattern = new byte[] {0x74, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49}
5561
},
5662
new PatchInfo
5763
{
5864
Version = "2020.1",
59-
DarkPattern = new byte[] {0x75, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49},
60-
LightPattern = new byte[] {0x74, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49}
65+
LightPattern = new byte[] {0x75, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49},
66+
DarkPattern = new byte[] {0x74, 0x15, 0x33, 0xC0, 0xEB, 0x13, 0x90, 0x49}
6167
}
6268
}
6369
}
@@ -67,7 +73,7 @@ internal static void Main(string[] args)
6773
{
6874
var themeName = string.Empty;
6975
var help = false;
70-
var fileLocation = @"C:\Program Files\Unity\Editor\Unity.exe";
76+
var fileLocation = @"C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Unity.exe";
7177
var windows = false;
7278
var mac = false;
7379
var linux = false;
@@ -228,7 +234,7 @@ internal static void Main(string[] args)
228234
{
229235
Console.WriteLine($"Warning: Found more than one occurrence of the theme offset in the specified executable. There is a chance that patching it leads to undefined behaviour. It could also just work fine.{Environment.NewLine}{Environment.NewLine}");
230236
Console.WriteLine("Run the patcher with the --force option if you want to patch regardless of this warning.");
231-
237+
232238
if (!force)
233239
return;
234240
}

0 commit comments

Comments
 (0)