From f3425762542476096e019c215d5a201f0c04e93b Mon Sep 17 00:00:00 2001 From: Dylan Bailey Date: Sat, 15 Dec 2018 17:19:09 -0600 Subject: [PATCH] Updated offsets for 2018.3+ --- UnityDarkThemePatch/Patcher.cs | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/UnityDarkThemePatch/Patcher.cs b/UnityDarkThemePatch/Patcher.cs index e9b6494..1f82f42 100644 --- a/UnityDarkThemePatch/Patcher.cs +++ b/UnityDarkThemePatch/Patcher.cs @@ -11,25 +11,28 @@ public class Patcher public byte PatchableByteValue { get; private set; } // region to find, 0x00 is any byte. + //75 08 33 C0 48 83 C4 30 5B C3 8B 03 48 83 C4 30 public readonly byte[] RegionBytes = { - 0x40, 0x53, - 0x48, 0x83, 0xec, 0x20, - 0x48, 0x8b, 0xd9, - 0x00, 0x00, 0x00, 0x00, 0x00, // call command - 0x84, 0xc0, - 0x00, 0x08, // jump command //0x75 - 0x33, 0xc0, - 0x48, 0x83, 0xc4, 0x20, - 0x5b, - 0xc3, - 0x8b, 0x03 , - 0x48, 0x83, 0xc4, 0x20, - 0x5b, - 0xc3, + //0x40, 0x53, + //0x48, 0x83, 0xec, 0x20, + //0x48, 0x8b, 0xd9, + //0x00, 0x00, 0x00, 0x00, 0x00, // call command + //0x84, 0xc0, + //0x00, 0x08, // jump command //0x75 + //0x33, 0xc0, + //0x48, 0x83, 0xc4, 0x20, + //0x5b, + //0xc3, + //0x8b, 0x03 , + //0x48, 0x83, 0xc4, 0x20, + //0x5b, + //0xc3, + 0x75, 0x08, 0x33, 0xc0, 0x48, 0x83, 0xc4, 0x30, 0x5b, 0xc3, 0x8b, 0x03, 0x48, 0x83, 0xc4, 0x30 }; // offset from start of region to the actual instruction - public readonly int JumpInstructionOffset = 16; + //public readonly int JumpInstructionOffset = 16; + public readonly int JumpInstructionOffset = 0; public readonly byte DarkSkinByte = 0x74; public readonly byte LightSkinByte = 0x75;