Fixed some enums that were incorrectly named, and added MsgClientPackageInfoRequest and MsgClientPackageInfoResponse.

pull/8/head
Ryan Stecker 14 years ago
parent 76ff0b3591
commit 8c227bcfa0

@ -206,7 +206,7 @@ namespace DepotDownloader
if (appId == -1 || !AppIsSteam3(appId)) if (appId == -1 || !AppIsSteam3(appId))
return DownloadSource.Steam2; return DownloadSource.Steam2;
KeyValue config = GetSteam3AppSection(appId, EAppInfoSection.AppInfoSectionConfig); KeyValue config = GetSteam3AppSection(appId, EAppInfoSection.Config);
int contenttype = config[appId.ToString()]["contenttype"].AsInteger(0); int contenttype = config[appId.ToString()]["contenttype"].AsInteger(0);
// EContentDownloadSourceType? // EContentDownloadSourceType?
@ -238,7 +238,7 @@ namespace DepotDownloader
if (appId == -1 || !AppIsSteam3(appId)) if (appId == -1 || !AppIsSteam3(appId))
return 0; return 0;
KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.AppInfoSectionDepots); KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.Depots);
KeyValue depotChild = depots[appId.ToString()][depotId.ToString()]; KeyValue depotChild = depots[appId.ToString()][depotId.ToString()];
if (depotChild == null) if (depotChild == null)
@ -257,7 +257,7 @@ namespace DepotDownloader
} }
else if (depotId == -1) else if (depotId == -1)
{ {
KeyValue info = GetSteam3AppSection(appId, EAppInfoSection.AppInfoSectionCommon); KeyValue info = GetSteam3AppSection(appId, EAppInfoSection.Common);
if (info == null) if (info == null)
return String.Empty; return String.Empty;
@ -266,7 +266,7 @@ namespace DepotDownloader
} }
else else
{ {
KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.AppInfoSectionDepots); KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.Depots);
if (depots == null) if (depots == null)
return String.Empty; return String.Empty;
@ -340,7 +340,7 @@ namespace DepotDownloader
if (AppIsSteam3(appId)) if (AppIsSteam3(appId))
{ {
depotIDs = new List<int>(); depotIDs = new List<int>();
KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.AppInfoSectionDepots); KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.Depots);
if (depots != null) if (depots != null)
{ {
@ -439,7 +439,7 @@ namespace DepotDownloader
{ {
Console.Write("Finding content servers..."); Console.Write("Finding content servers...");
List<IPEndPoint> serverList = steam3.steamClient.GetServersOfType(EServerType.ServerTypeCS); List<IPEndPoint> serverList = steam3.steamClient.GetServersOfType(EServerType.CS);
List<CDNClient.ClientEndPoint> cdnServers = null; List<CDNClient.ClientEndPoint> cdnServers = null;
int tries = 0, counterDeferred = 0, counterCDN = 0; int tries = 0, counterDeferred = 0, counterCDN = 0;

@ -247,7 +247,7 @@ namespace DepotDownloader
AppInfo.Add(app.AppID, app); AppInfo.Add(app.AppID, app);
KeyValue depots; KeyValue depots;
if (app.Sections.TryGetValue((int)EAppInfoSection.AppInfoSectionDepots, out depots)) if (app.Sections.TryGetValue((int)EAppInfoSection.Depots, out depots))
{ {
if (depots[app.AppID.ToString()]["OverridesCDDB"].AsBoolean(false)) if (depots[app.AppID.ToString()]["OverridesCDDB"].AsBoolean(false))
{ {

Loading…
Cancel
Save