This commit is contained in:
Pavel Djundik committed 2024-11-14 10:55:43 +02:00
1 parent fac3a22f4f
commit 4539666214
4 files changed
+3 -5

No files matched your search

-1
View File
@@ -7,7 +7,6 @@ using System;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using Microsoft.Win32.SafeHandles;
using Windows.Win32;
using Windows.Win32.System.Console;
+2 -2
View File
@@ -363,7 +363,7 @@ namespace DepotDownloader
}
else
{
await DownloadAppAsync(appId, new List<(uint, ulong)> { (appId, ugcId) }, DEFAULT_BRANCH, null, null, null, false, true);
await DownloadAppAsync(appId, [(appId, ugcId)], DEFAULT_BRANCH, null, null, null, false, true);
}
}
@@ -1400,7 +1400,7 @@ namespace DepotDownloader
foreach (var file in manifest.Files)
{
var sha1Hash = BitConverter.ToString(file.FileHash).Replace("-", "");
var sha1Hash = Convert.ToHexString(file.FileHash);
sw.WriteLine($"{file.TotalSize,14} {file.Chunks.Count,6} {sha1Hash} {file.Flags,5:D} {file.FileName}");
}
}
-1
View File
@@ -1,7 +1,6 @@
// This file is subject to the terms and conditions defined
// in file 'LICENSE', which is part of this source code package.
using System;
using System.IO;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
+1 -1
View File
@@ -89,7 +89,7 @@ namespace DepotDownloader
public delegate bool WaitCondition();
private readonly object steamLock = new();
private readonly Lock steamLock = new();
public bool WaitUntilCallback(Action submitter, WaitCondition waiter)
{