Example #1
0
        /// <summary>
        /// Returns whether the user is in a game or pre-game lobby.
        /// </summary>
        /// <returns></returns>
        public bool IsInGame()
        {
            if (ConsoleType.Equals("PS3"))
            {
                return(Convert.ToBoolean(PS3.Extension.ReadUInt32(0x1CB68C0 + 0x18)));
            }
            else if (ConsoleType.Equals("XBOX"))
            {
                return(Convert.ToBoolean(Xbox.CallString(0x82154FF8, new object[] { 0, "cl_ingame" })));
            }

            return(false);
        }