mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-20 01:46:17 +00:00
Update to SteamKit 1.6.4
This commit is contained in:
1 parent
ed44169956
commit
c0b4dd03ee
4 files changed
+24
-28
No files matched your search
@@ -126,12 +126,10 @@ namespace DepotDownloader
|
||||
SteamApps.PICSProductInfoCallback.PICSProductInfo package;
|
||||
if ( steam3.PackageInfo.TryGetValue( license, out package ) && package != null )
|
||||
{
|
||||
KeyValue root = package.KeyValues[license.ToString()];
|
||||
|
||||
if ( root["appids"].Children.Any( child => child.AsInteger() == depotId ) )
|
||||
if ( package.KeyValues["appids"].Children.Any( child => child.AsInteger() == depotId ) )
|
||||
return true;
|
||||
|
||||
if ( root["depotids"].Children.Any( child => child.AsInteger() == depotId ) )
|
||||
if ( package.KeyValues["depotids"].Children.Any( child => child.AsInteger() == depotId ) )
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,9 +62,9 @@
|
||||
<SpecificVersion>True</SpecificVersion>
|
||||
<HintPath>..\packages\protobuf-net.2.0.0.668\lib\net40\protobuf-net.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SteamKit2, Version=1.6.1.19114, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\packages\SteamKit2.1.6.1\lib\net40\SteamKit2.dll</HintPath>
|
||||
<Reference Include="SteamKit2, Version=1.6.4.32461, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SteamKit2.1.6.4\lib\net40\SteamKit2.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core">
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
using System;
|
||||
using SteamKit2;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using SteamKit2;
|
||||
using System.Diagnostics;
|
||||
using System.Net;
|
||||
|
||||
namespace DepotDownloader
|
||||
{
|
||||
|
||||
|
||||
class Steam3Session
|
||||
{
|
||||
public class Credentials
|
||||
@@ -83,12 +81,12 @@ namespace DepotDownloader
|
||||
|
||||
this.callbacks = new CallbackManager(this.steamClient);
|
||||
|
||||
this.callbacks.Register(new Callback<SteamClient.ConnectedCallback>(ConnectedCallback));
|
||||
this.callbacks.Register(new Callback<SteamClient.DisconnectedCallback>(DisconnectedCallback));
|
||||
this.callbacks.Register(new Callback<SteamUser.LoggedOnCallback>(LogOnCallback));
|
||||
this.callbacks.Register(new Callback<SteamUser.SessionTokenCallback>(SessionTokenCallback));
|
||||
this.callbacks.Register(new Callback<SteamApps.LicenseListCallback>(LicenseListCallback));
|
||||
this.callbacks.Register(new Callback<SteamUser.UpdateMachineAuthCallback>(UpdateMachineAuthCallback));
|
||||
this.callbacks.Subscribe<SteamClient.ConnectedCallback>(ConnectedCallback);
|
||||
this.callbacks.Subscribe<SteamClient.DisconnectedCallback>(DisconnectedCallback);
|
||||
this.callbacks.Subscribe<SteamUser.LoggedOnCallback>(LogOnCallback);
|
||||
this.callbacks.Subscribe<SteamUser.SessionTokenCallback>(SessionTokenCallback);
|
||||
this.callbacks.Subscribe<SteamApps.LicenseListCallback>(LicenseListCallback);
|
||||
this.callbacks.Subscribe<SteamUser.UpdateMachineAuthCallback>(UpdateMachineAuthCallback);
|
||||
|
||||
Console.Write( "Connecting to Steam3..." );
|
||||
|
||||
@@ -160,7 +158,7 @@ namespace DepotDownloader
|
||||
};
|
||||
|
||||
WaitUntilCallback(() => {
|
||||
new Callback<SteamApps.PICSTokensCallback>(cbMethodTokens, callbacks, steamApps.PICSGetAccessTokens(new List<uint>() { appId }, new List<uint>() { }));
|
||||
callbacks.Subscribe(steamApps.PICSGetAccessTokens(new List<uint>() { appId }, new List<uint>() { }), cbMethodTokens);
|
||||
}, () => { return completed; });
|
||||
|
||||
completed = false;
|
||||
@@ -189,8 +187,8 @@ namespace DepotDownloader
|
||||
request.Public = false;
|
||||
}
|
||||
|
||||
WaitUntilCallback(() => {
|
||||
new Callback<SteamApps.PICSProductInfoCallback>(cbMethod, callbacks, steamApps.PICSGetProductInfo(new List<SteamApps.PICSRequest>() { request }, new List<SteamApps.PICSRequest>() { }));
|
||||
WaitUntilCallback(() => {
|
||||
callbacks.Subscribe(steamApps.PICSGetProductInfo(new List<SteamApps.PICSRequest>() { request }, new List<SteamApps.PICSRequest>() { }), cbMethod);
|
||||
}, () => { return completed; });
|
||||
}
|
||||
|
||||
@@ -219,8 +217,8 @@ namespace DepotDownloader
|
||||
}
|
||||
};
|
||||
|
||||
WaitUntilCallback(() => {
|
||||
new Callback<SteamApps.PICSProductInfoCallback>(cbMethod, callbacks, steamApps.PICSGetProductInfo(new List<uint>(), packages));
|
||||
WaitUntilCallback(() => {
|
||||
callbacks.Subscribe(steamApps.PICSGetProductInfo(new List<uint>(), packages), cbMethod);
|
||||
}, () => { return completed; });
|
||||
}
|
||||
|
||||
@@ -254,7 +252,7 @@ namespace DepotDownloader
|
||||
};
|
||||
|
||||
WaitUntilCallback(() => {
|
||||
new Callback<SteamApps.AppOwnershipTicketCallback>(cbMethod, callbacks, steamApps.GetAppOwnershipTicket(appId));
|
||||
callbacks.Subscribe(steamApps.GetAppOwnershipTicket(appId), cbMethod);
|
||||
}, () => { return completed; });
|
||||
}
|
||||
|
||||
@@ -281,7 +279,7 @@ namespace DepotDownloader
|
||||
|
||||
WaitUntilCallback(() =>
|
||||
{
|
||||
new Callback<SteamApps.DepotKeyCallback>(cbMethod, callbacks, steamApps.GetDepotDecryptionKey(depotId, appid));
|
||||
callbacks.Subscribe(steamApps.GetDepotDecryptionKey(depotId, appid), cbMethod);
|
||||
}, () => { return completed; });
|
||||
}
|
||||
|
||||
@@ -307,7 +305,7 @@ namespace DepotDownloader
|
||||
|
||||
WaitUntilCallback(() =>
|
||||
{
|
||||
new Callback<SteamApps.CDNAuthTokenCallback>(cbMethod, callbacks, steamApps.GetCDNAuthToken(depotid, host));
|
||||
callbacks.Subscribe(steamApps.GetCDNAuthToken(depotid, host), cbMethod);
|
||||
}, () => { return completed; });
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="protobuf-net" version="2.0.0.668" targetFramework="net40" />
|
||||
<package id="SteamKit2" version="1.6.3" targetFramework="net40" />
|
||||
<package id="protobuf-net" version="2.0.0.668" targetFramework="net4" />
|
||||
<package id="SteamKit2" version="1.6.4" targetFramework="net4" />
|
||||
</packages>
|
||||
Reference in new issue
Block a user