public static SteamVRVersion PopulateVersion(string branch, string verString) { var ver = new SteamVRVersion(); ver.Version = verString; ver.BuildNum = ContentDownloader.GetSteam3AppBuildNumber(ver.AppId, branch); PopulateDepot(branch, ver, ref ver.Content); PopulateDepot(branch, ver, ref ver.Win32); PopulateDepot(branch, ver, ref ver.OSX); PopulateDepot(branch, ver, ref ver.Linux); return(ver); }
void DownloadSteamVRRuntime(SteamVRVersion ver, string name, SteamVRDepot depot) { var dir = string.Format("steamvr-{0}\\{1}", ver.Version, name); Console.WriteLine("Working on {0}", dir); var dl = new Downloadable(); dl.AppId = ver.AppId; dl.DepotId = depot.DepotId; dl.ManifestId = depot.ManifestId; Download(dir, dl); }
public static void PopulateDepot(string branch, SteamVRVersion ver, ref SteamVRDepot depot) { ContentDownloader.Config.ManifestId = ContentDownloader.INVALID_MANIFEST_ID; depot.ManifestId = ContentDownloader.GetSteam3DepotManifest(depot.DepotId, ver.AppId, branch); }