public static async Task DownloadPubfileAsync(ulong publishedFileId) { var details = steam3.GetPubfileDetails(publishedFileId); if (details.hcontent_file > 0) { await DownloadAppAsync(details.consumer_appid, details.consumer_appid, details.hcontent_file, DEFAULT_BRANCH, null, null, null, false, true); } else { Console.WriteLine("Unable to locate manifest ID for published file {0}", publishedFileId); } }
public static async Task DownloadPubfileAsync(Steam3Session steam3, ulong publishedFileId, Action downloadCompleteAction = null) { var details = await steam3.GetPubfileDetails(publishedFileId); if (details.hcontent_file > 0) { await DownloadAppAsync(steam3, details.consumer_appid, details.consumer_appid, details.hcontent_file, DEFAULT_BRANCH, null, true, downloadCompleteAction); } else { DebugLog.WriteLine("ContentDownloader", "Unable to locate manifest ID for published file " + publishedFileId); } }