public string GetAppData(uint id, string key) { var sb = new StringBuilder(255); SteamApps001.GetAppData(id, key, sb); return(sb.ToString()); }
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); }