Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private int findAddress(int StaticPointer, int[] Offsets)
- {
- byte[] tmp;
- int address = BaseAddress + StaticPointer;
- for (int i = 0; i < Offsets.Count(); i++)
- {
- tmp = new byte[4];
- ReadProcessMemory(ProcessHandle, address, tmp, tmp.Length, 0);
- address = BitConverter.ToInt32(tmp, 0) + Offsets[i];
- }
- return address;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement