mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-20 01:46:17 +00:00
Updated depotdownloader to pass in the appid when requesting a depot key.
This commit is contained in:
1 parent
d638dc7ec2
commit
b2cb33aa92
3 files changed
+8
-8
No files matched your search
@@ -390,11 +390,11 @@ namespace DepotDownloader
|
||||
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)
|
||||
steam3.RequestAppInfo((uint)appId);
|
||||
@@ -437,7 +437,7 @@ namespace DepotDownloader
|
||||
return;
|
||||
}
|
||||
|
||||
steam3.RequestDepotKey((uint)depotId);
|
||||
steam3.RequestDepotKey( ( uint )depotId, ( uint )appId );
|
||||
byte[] depotKey = steam3.DepotKeys[(uint)depotId];
|
||||
|
||||
DownloadSteam3(depotId, manifestID, depotKey, installDir);
|
||||
|
||||
@@ -179,7 +179,7 @@ namespace DepotDownloader
|
||||
}
|
||||
else if ( !bGameserver )
|
||||
{
|
||||
ContentDownloader.DownloadDepot(depotId, appId, depotVersion);
|
||||
ContentDownloader.DownloadDepot(depotId, depotVersion, appId);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -219,7 +219,7 @@ namespace DepotDownloader
|
||||
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)
|
||||
return;
|
||||
@@ -185,13 +185,13 @@ namespace DepotDownloader
|
||||
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
|
||||
{
|
||||
WaitForCallbacks();
|
||||
}
|
||||
while (!depotKeyCallback.Completed && !bAborted);
|
||||
while ( !depotKeyCallback.Completed && !bAborted );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user