mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-20 01:46:17 +00:00
Cleanup
This commit is contained in:
1 parent
fac3a22f4f
commit
4539666214
4 files changed
+3
-5
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
@@ -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,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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user