|
|
@ -75,14 +75,23 @@ namespace DepotDownloader
|
|
|
|
|
|
|
|
|
|
|
|
if ( dirEntry.FileID == -1 )
|
|
|
|
if ( dirEntry.FileID == -1 )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// this is a directory, so lets just create it
|
|
|
|
if ( !Directory.Exists( downloadPath ) )
|
|
|
|
Directory.CreateDirectory( downloadPath );
|
|
|
|
{
|
|
|
|
|
|
|
|
// this is a directory, so lets just create it
|
|
|
|
|
|
|
|
Directory.CreateDirectory( downloadPath );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
float perc = ( ( float )x / ( float )manifest.DirEntries.Count ) * 100.0f;
|
|
|
|
float perc = ( ( float )x / ( float )manifest.DirEntries.Count ) * 100.0f;
|
|
|
|
Console.WriteLine( " {0:0.00}%\t{1}", perc, dirEntry.FullName );
|
|
|
|
Console.WriteLine( " {0:0.00}%\t{1}", perc, dirEntry.FullName );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FileInfo fi = new FileInfo( downloadPath );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( fi.Exists && fi.Length == dirEntry.ItemSize )
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
|
|
ContentServerClient.File file = csClient.DownloadFile( storageId, dirEntry.FileID );
|
|
|
|
ContentServerClient.File file = csClient.DownloadFile( storageId, dirEntry.FileID );
|
|
|
|
|
|
|
|
|
|
|
|
if ( file.FileMode == 1 )
|
|
|
|
if ( file.FileMode == 1 )
|
|
|
|