about summary refs log tree commit diff
path: root/pkgs/games/steam/fetchsteam/downloader.patch
blob: 72e5c47388c31a05319acb160aa1247000db369d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs
index 21c317e..81f2a93 100644
--- a/DepotDownloader/ContentDownloader.cs
+++ b/DepotDownloader/ContentDownloader.cs
@@ -34,7 +34,7 @@ namespace DepotDownloader
             public string installDir { get; private set; }
             public string contentName { get; private set; }
 
-            public ulong manifestId { get; private set; }
+            public ulong manifestId { get; set; }
             public byte[] depotKey;
 
             public DepotDownloadInfo(uint depotid, ulong manifestId, string installDir, string contentName)
@@ -198,9 +198,6 @@ namespace DepotDownloader
 
         static ulong GetSteam3DepotManifest(uint depotId, uint appId, string branch)
         {
-            if (Config.ManifestId != INVALID_MANIFEST_ID)
-                return Config.ManifestId;
-
             KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.Depots);
             KeyValue depotChild = depots[depotId.ToString()];
 
@@ -583,6 +580,10 @@ namespace DepotDownloader
                 ConfigStore.TheConfig.LastManifests[depot.id] = INVALID_MANIFEST_ID;
                 ConfigStore.Save();
 
+                Console.WriteLine("Latest manifest ID is {0}.", depot.manifestId);
+                if (Config.ManifestId != INVALID_MANIFEST_ID)
+                    depot.manifestId = Config.ManifestId;
+
                 if (lastManifestId != INVALID_MANIFEST_ID)
                 {
                     var oldManifestFileName = Path.Combine(configDir, string.Format("{0}.bin", lastManifestId));