Skip to content

Commit

Permalink
Updated offsets for 2018.3+
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicZentropy committed Dec 15, 2018
1 parent a6ec32e commit f342576
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions UnityDarkThemePatch/Patcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f342576

Please sign in to comment.