Remove unused app tickets

pull/174/head
Pavel Djundik 5 years ago
parent 5086303a84
commit ce547cd5f3

@ -612,9 +612,6 @@ namespace DepotDownloader
return null;
}
// Skip requesting an app ticket
steam3.AppTickets[ depotId ] = null;
if (manifestId == INVALID_MANIFEST_ID)
{
manifestId = GetSteam3DepotManifest(depotId, appId, branch);

@ -31,7 +31,6 @@ namespace DepotDownloader
private set;
}
public Dictionary<uint, byte[]> AppTickets { get; private set; }
public Dictionary<uint, ulong> AppTokens { get; private set; }
public Dictionary<uint, ulong> PackageTokens { get; private set; }
public Dictionary<uint, byte[]> DepotKeys { get; private set; }
@ -82,7 +81,6 @@ namespace DepotDownloader
this.bDidReceiveLoginKey = false;
this.seq = 0;
this.AppTickets = new Dictionary<uint, byte[]>();
this.AppTokens = new Dictionary<uint, ulong>();
this.PackageTokens = new Dictionary<uint, ulong>();
this.DepotKeys = new Dictionary<uint, byte[]>();
@ -287,41 +285,6 @@ namespace DepotDownloader
return success;
}
public void RequestAppTicket( uint appId )
{
if ( AppTickets.ContainsKey( appId ) || bAborted )
return;
if ( !authenticatedUser )
{
AppTickets[ appId ] = null;
return;
}
bool completed = false;
Action<SteamApps.AppOwnershipTicketCallback> cbMethod = ( appTicket ) =>
{
completed = true;
if ( appTicket.Result != EResult.OK )
{
Console.WriteLine( "Unable to get appticket for {0}: {1}", appTicket.AppID, appTicket.Result );
Abort();
}
else
{
Console.WriteLine( "Got appticket for {0}!", appTicket.AppID );
AppTickets[ appTicket.AppID ] = appTicket.Ticket;
}
};
WaitUntilCallback( () =>
{
callbacks.Subscribe( steamApps.GetAppOwnershipTicket( appId ), cbMethod );
}, () => { return completed; } );
}
public void RequestDepotKey( uint depotId, uint appid = 0 )
{
if ( DepotKeys.ContainsKey( depotId ) || bAborted )

Loading…
Cancel
Save