Beispiel #1
0
        public string GetAppData(uint id, string key)
        {
            var sb = new StringBuilder(255);

            SteamApps001.GetAppData(id, key, sb);
            return(sb.ToString());
        }
Beispiel #2
0
        private static void SetConsoleWindowName(uint appId)
        {
            var sb = new StringBuilder(60);

            _steamApps001.GetAppData(appId, "name", sb);

            string gameName = sb.ToString().Trim();

            Console.Title = string.IsNullOrWhiteSpace(gameName) ? "Unknown game" : GetUnicodeString(gameName);
        }