From c6a1e851a45f5c87f916fd677f2353d7fd7e63d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Maih=C3=B6fner?= Date: Tue, 9 Jun 2020 16:57:36 +0200 Subject: [PATCH] Add PatchInfo for Unity 2019.2 and 2019.4 on macOS and 2019.4 on Linux --- README.md | 5 +++-- src/Patcher/Patches.cs | 20 +++++++++++++++++++- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 68422e9..cca6b1c 100644 --- a/README.md +++ b/README.md @@ -44,10 +44,11 @@ Currently, the following OS and Unity version combinations are supported: | | Windows | MacOS | Linux | |---------|:------------------:|:------------------:|:------------------:| -| 2020.2a | :x: | :x: | :white_check_mark: | +| 2020.2a | :x: | :white_check_mark: | :white_check_mark: | | 2020.1b | :white_check_mark: | :white_check_mark: | :white_check_mark: | +| 2019.4 | :x: | :white_check_mark: | :white_check_mark: | | 2019.3 | :white_check_mark: | :white_check_mark: | :white_check_mark: | -| 2019.2 | :white_check_mark: | :x: | :white_check_mark: | +| 2019.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: | | 2019.1 | :x: | :white_check_mark: | :white_check_mark: | | 2018.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: | | 2018.3 | :white_check_mark: | :x: | :x: | diff --git a/src/Patcher/Patches.cs b/src/Patcher/Patches.cs index 2d2c8a4..52c5b5b 100644 --- a/src/Patcher/Patches.cs +++ b/src/Patcher/Patches.cs @@ -56,17 +56,29 @@ public static class Patches }, new PatchInfo { - Version = "2019.1.0f2", + Version = "2019.1", DarkPattern = new byte[] {0x75, 0x03, 0x41, 0x8b, 0x06, 0x48}, LightPattern = new byte[] {0x74, 0x03, 0x41, 0x8b, 0x06, 0x48} }, new PatchInfo + { + Version = "2019.2", + DarkPattern = new byte[] {0x75, 0x04, 0x8b, 0x03, 0xeb, 0x02}, + LightPattern = new byte[] {0x74, 0x04, 0x8b, 0x03, 0xeb, 0x02} + }, + new PatchInfo { Version = "2019.3", DarkPattern = new byte[] {0x85, 0xD5, 0x00, 0x00, 0x00, 0x8B, 0x03}, LightPattern = new byte[] {0x84, 0xD5, 0x00, 0x00, 0x00, 0x8B, 0x03} }, new PatchInfo + { + Version = "2019.4", + DarkPattern = new byte[] {0x85, 0xD5, 0x00, 0x00, 0x00, 0x8B, 0x03}, + LightPattern = new byte[] {0x84, 0xD5, 0x00, 0x00, 0x00, 0x8B, 0x03} + }, + new PatchInfo { Version = "2020.1", DarkPattern = new byte[] {0x75, 0x5E, 0x8B, 0x03, 0xEB}, @@ -107,6 +119,12 @@ public static class Patches LightPattern = new byte[] {0x74, 0x06, 0x41, 0x8b, 0x04, 0x24, 0xeb, 0x02} }, new PatchInfo + { + Version = "2019.4", + DarkPattern = new byte[] {0x75, 0x06, 0x41, 0x8b, 0x04, 0x24, 0xeb, 0x02}, + LightPattern = new byte[] {0x74, 0x06, 0x41, 0x8b, 0x04, 0x24, 0xeb, 0x02} + }, + new PatchInfo { Version = "2020.1", DarkPattern = new byte[] {0x75, 0x05, 0x41, 0x8b, 0x07, 0xeb, 0x02},