Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions DepotDownloader/ContentDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -936,8 +936,19 @@ private static async Task<DepotFilesData> ProcessDepotManifestAndFiles(Cancellat
Directory.CreateDirectory(Path.GetDirectoryName(fileFinalPath));
Directory.CreateDirectory(Path.GetDirectoryName(fileStagingPath));

downloadCounter.completeDownloadSize += file.TotalSize;
depotCounter.completeDownloadSize += file.TotalSize;
if (file.Flags.HasFlag(EDepotFileFlag.Symlink))
{
if (File.Exists(fileFinalPath))
{
File.Delete(fileFinalPath);
}
File.CreateSymbolicLink(fileFinalPath, file.LinkTarget);
}
else
{
downloadCounter.completeDownloadSize += file.TotalSize;
depotCounter.completeDownloadSize += file.TotalSize;
}
}
});

Expand All @@ -961,7 +972,9 @@ private static async Task DownloadSteam3AsyncDepotFiles(CancellationTokenSource

Console.WriteLine("Downloading depot {0}", depot.DepotId);

var files = depotFilesData.filteredFiles.Where(f => !f.Flags.HasFlag(EDepotFileFlag.Directory)).ToArray();
var files = depotFilesData.filteredFiles.Where(
f => (!f.Flags.HasFlag(EDepotFileFlag.Directory)) && (!f.Flags.HasFlag(EDepotFileFlag.Symlink))
).ToArray();
var networkChunkQueue = new ConcurrentQueue<(FileStreamData fileStreamData, DepotManifest.FileData fileData, DepotManifest.ChunkData chunk)>();

var parallelOptions = new ParallelOptions
Expand Down
2 changes: 1 addition & 1 deletion DepotDownloader/DepotDownloader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
</PackageReference>
<PackageReference Include="protobuf-net" Version="3.2.56" />
<PackageReference Include="QRCoder" Version="1.8.0" />
<PackageReference Include="SteamKit2" Version="3.3.1" />
<PackageReference Include="SteamKit2" Version="3.4.0" />
</ItemGroup>
</Project>
Loading