AppInfo changes for Depot section

pull/8/head
Ryan Kistner 13 years ago
parent c6da5d057e
commit 7aa43a5184

@ -254,7 +254,7 @@ namespace DepotDownloader
return 0; return 0;
KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.Depots); KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.Depots);
KeyValue depotChild = depots[appId.ToString()][depotId.ToString()]; KeyValue depotChild = depots[depotId.ToString()];
if (depotChild == null) if (depotChild == null)
return 0; return 0;
@ -289,7 +289,7 @@ namespace DepotDownloader
if (depots == null) if (depots == null)
return String.Empty; return String.Empty;
KeyValue depotChild = depots[appId.ToString()][depotId.ToString()]; KeyValue depotChild = depots[depotId.ToString()];
if (depotChild == null) if (depotChild == null)
return String.Empty; return String.Empty;
@ -363,7 +363,6 @@ namespace DepotDownloader
if (depots != null) if (depots != null)
{ {
depots = depots[appId.ToString()];
foreach (var child in depots.Children) foreach (var child in depots.Children)
{ {
int id = -1; int id = -1;

@ -125,7 +125,7 @@ namespace DepotDownloader
KeyValue depots; KeyValue depots;
if (app.Sections.TryGetValue(EAppInfoSection.Depots, out depots)) if (app.Sections.TryGetValue(EAppInfoSection.Depots, out depots))
{ {
if (depots[app.AppID.ToString()]["OverridesCDDB"].AsBoolean(false)) if (depots["OverridesCDDB"].AsBoolean(false))
{ {
AppInfoOverridesCDR[app.AppID] = true; AppInfoOverridesCDR[app.AppID] = true;
} }

Loading…
Cancel
Save