I am currently trying to XOR 2 IntPtr's but I struggle with it.
My Code:
IntPtr Ptr = IntPtr.Add(Memory.Engine, signatures.model_ambient_min) - 0x2c;
IntPtr xored = (IntPtr)0.5 ^ Ptr;
XOR doesn't seem to be possible with IntPtr's
I want to translate this:
DWORD thisPtr = (int)(dwEngineBase + modelAmbientMin - 0x2c);
DWORD xored = *(DWORD*)&brightness ^ thisPtr;
to C#