mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-20 01:46:17 +00:00
DepotDownloader: prettified license list code
This commit is contained in:
1 parent
afc197fbc9
commit
fe867a4fcf
1 file changed
+4
-8
@@ -336,16 +336,12 @@ namespace DepotDownloader
|
||||
Console.WriteLine("Got {0} licenses for account!", licenseList.LicenseList.Count);
|
||||
Licenses = licenseList.LicenseList;
|
||||
|
||||
List<uint> licenseQuery = new List<uint>();
|
||||
var sb = new StringBuilder();
|
||||
|
||||
foreach (var license in Licenses)
|
||||
IEnumerable<uint> licenseQuery = Licenses.Select(lic =>
|
||||
{
|
||||
licenseQuery.Add(license.PackageID);
|
||||
sb.Append(license.PackageID + ",");
|
||||
}
|
||||
return lic.PackageID;
|
||||
});
|
||||
|
||||
Console.WriteLine(" - " + sb.ToString().TrimEnd(new char[] { ',' }));
|
||||
Console.WriteLine("Licenses: {0}", string.Join(", ", licenseQuery));
|
||||
|
||||
packageInfoCallback = new JobCallback<SteamApps.PackageInfoCallback>(PackageInfoCallback, callbacks, steamApps.GetPackageInfo(licenseQuery));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user