Beispiel #1
0
        public bool IsPlayingShadow()
        {
            if (_dolphin.TryGetAddress(GameIdPtr, out var realAddress))
            {
                var gameId = Marshal.PtrToStringAnsi(realAddress, 6);
                if (gameId == GameId)
                {
                    return(true);
                }
            }

            return(false);
        }
 /// <summary>
 /// Tries to obtain the real address of the variable.
 /// This operation fails if no game is running.
 /// </summary>
 /// <returns></returns>
 public bool TryGetRealAddress(out IntPtr address)
 {
     return(_dolphin.TryGetAddress((long)Address, out address));
 }