unsafe private void Read() { PlayerStatus status = new PlayerStatus(); MemoryProvider.ReadProcessMemory(pol.Handle, (IntPtr)((int)pol.BaseAddress + OFFSET.PLAYER_INFO), &status, (uint)Marshal.SizeOf(stat), null); stat = status; }
private unsafe void Read() { PlayerStatus status = new PlayerStatus(); MemoryProvider.ReadProcessMemory(windower.pol.Handle, (IntPtr) ((int) windower.pol.BaseAddress + Offset.Get("PLAYER_INFO")), &status, (uint) Marshal.SizeOf(stat), null); stat = status; }