Report and exit on unsuccessful pubfile lookup

pull/49/head
Ryan Kistner 7 years ago
parent fdb5d0d408
commit e0afef00e4

@ -376,8 +376,16 @@ namespace DepotDownloader
public static async Task DownloadPubfileAsync( ulong publishedFileId ) public static async Task DownloadPubfileAsync( ulong publishedFileId )
{ {
var details = steam3.GetPubfileDetails(publishedFileId); var details = steam3.GetPubfileDetails( publishedFileId );
await DownloadAppAsync( details.consumer_appid, details.consumer_appid, details.hcontent_file, DEFAULT_BRANCH, null, true );
if ( details.hcontent_file > 0 )
{
await DownloadAppAsync( details.consumer_appid, details.consumer_appid, details.hcontent_file, DEFAULT_BRANCH, null, true );
}
else
{
Console.WriteLine( "Unable to locate manifest ID for published file {0}", publishedFileId );
}
} }
public static async Task DownloadAppAsync( uint appId, uint depotId, ulong manifestId, string branch, string os, bool isUgc ) public static async Task DownloadAppAsync( uint appId, uint depotId, ulong manifestId, string branch, string os, bool isUgc )

Loading…
Cancel
Save