diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index e122059a..a937d72d 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -206,7 +206,7 @@ namespace DepotDownloader if (appId == -1 || !AppIsSteam3(appId)) return DownloadSource.Steam2; - KeyValue config = GetSteam3AppSection(appId, EAppInfoSection.AppInfoSectionConfig); + KeyValue config = GetSteam3AppSection(appId, EAppInfoSection.Config); int contenttype = config[appId.ToString()]["contenttype"].AsInteger(0); // EContentDownloadSourceType? @@ -238,7 +238,7 @@ namespace DepotDownloader if (appId == -1 || !AppIsSteam3(appId)) return 0; - KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.AppInfoSectionDepots); + KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.Depots); KeyValue depotChild = depots[appId.ToString()][depotId.ToString()]; if (depotChild == null) @@ -257,7 +257,7 @@ namespace DepotDownloader } else if (depotId == -1) { - KeyValue info = GetSteam3AppSection(appId, EAppInfoSection.AppInfoSectionCommon); + KeyValue info = GetSteam3AppSection(appId, EAppInfoSection.Common); if (info == null) return String.Empty; @@ -266,7 +266,7 @@ namespace DepotDownloader } else { - KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.AppInfoSectionDepots); + KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.Depots); if (depots == null) return String.Empty; @@ -340,7 +340,7 @@ namespace DepotDownloader if (AppIsSteam3(appId)) { depotIDs = new List(); - KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.AppInfoSectionDepots); + KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.Depots); if (depots != null) { @@ -439,7 +439,7 @@ namespace DepotDownloader { Console.Write("Finding content servers..."); - List serverList = steam3.steamClient.GetServersOfType(EServerType.ServerTypeCS); + List serverList = steam3.steamClient.GetServersOfType(EServerType.CS); List cdnServers = null; int tries = 0, counterDeferred = 0, counterCDN = 0; diff --git a/DepotDownloader/Steam3Session.cs b/DepotDownloader/Steam3Session.cs index 81b48220..14f67b5b 100644 --- a/DepotDownloader/Steam3Session.cs +++ b/DepotDownloader/Steam3Session.cs @@ -247,7 +247,7 @@ namespace DepotDownloader AppInfo.Add(app.AppID, app); 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)) {