Updated depotdownloader to pass in the appid when requesting a depot key.

pull/8/head
Ryan Stecker 14 years ago
parent d638dc7ec2
commit b2cb33aa92

@ -390,11 +390,11 @@ namespace DepotDownloader
return; return;
} }
DownloadDepot(depot, appId, depotVersion); DownloadDepot(depot, depotVersion, appId);
} }
} }
public static void DownloadDepot(int depotId, int appId, int depotVersionRequested) public static void DownloadDepot(int depotId, int depotVersionRequested, int appId = 0 )
{ {
if(steam3 != null && appId > 0) if(steam3 != null && appId > 0)
steam3.RequestAppInfo((uint)appId); steam3.RequestAppInfo((uint)appId);
@ -437,7 +437,7 @@ namespace DepotDownloader
return; return;
} }
steam3.RequestDepotKey((uint)depotId); steam3.RequestDepotKey( ( uint )depotId, ( uint )appId );
byte[] depotKey = steam3.DepotKeys[(uint)depotId]; byte[] depotKey = steam3.DepotKeys[(uint)depotId];
DownloadSteam3(depotId, manifestID, depotKey, installDir); DownloadSteam3(depotId, manifestID, depotKey, installDir);

@ -179,7 +179,7 @@ namespace DepotDownloader
} }
else if ( !bGameserver ) else if ( !bGameserver )
{ {
ContentDownloader.DownloadDepot(depotId, appId, depotVersion); ContentDownloader.DownloadDepot(depotId, depotVersion, appId);
} }
else else
{ {
@ -219,7 +219,7 @@ namespace DepotDownloader
return; return;
} }
ContentDownloader.DownloadDepot(currentDepotId, -1, depotVersion); ContentDownloader.DownloadDepot(currentDepotId, depotVersion);
} }
} }

@ -167,7 +167,7 @@ namespace DepotDownloader
} }
} }
public void RequestDepotKey(uint depotId) public void RequestDepotKey(uint depotId, uint appid = 0)
{ {
if (DepotKeys.ContainsKey(depotId) || bAborted) if (DepotKeys.ContainsKey(depotId) || bAborted)
return; return;
@ -185,7 +185,7 @@ namespace DepotDownloader
DepotKeys[depotKey.DepotID] = depotKey.DepotKey; DepotKeys[depotKey.DepotID] = depotKey.DepotKey;
}; };
using (JobCallback<SteamApps.DepotKeyCallback> depotKeyCallback = new JobCallback<SteamApps.DepotKeyCallback>(cbMethod, callbacks, steamApps.GetDepotDecryptionKey(depotId))) using ( var depotKeyCallback = new JobCallback<SteamApps.DepotKeyCallback>( cbMethod, callbacks, steamApps.GetDepotDecryptionKey( depotId, appid ) ) )
{ {
do do
{ {

Loading…
Cancel
Save