public override bool IsUpdateNeeded() { DepotConfigStore.LoadFromFile(Path.Combine(Game.Path, ".DepotDownloader", "depot.config")); if (DepotConfigStore.Instance.InstalledManifestIDs.TryGetValue(DepotId, out var installedManifest)) { if (IsPreObfuscation) { if (installedManifest == PreObfuscationManifest) { return(false); } } else { if (ContentDownloader.steam3 == null) { ContentDownloader.InitializeSteam3(); } ContentDownloader.steam3 !.RequestAppInfo(AppId); var depots = ContentDownloader.GetSteam3AppSection(AppId, EAppInfoSection.Depots); if (installedManifest == depots[DepotId.ToString()]["manifests"][ContentDownloader.DEFAULT_BRANCH].AsUnsignedLong()) { return(false); } } } return(true); }
public override bool IsUpdateNeeded() { try { DepotConfigStore.LoadFromFile(Path.Combine(Game.Path, ".DepotDownloader", "depot.config")); if (DepotConfigStore.Instance.InstalledManifestIDs.TryGetValue(DepotId, out var installedManifest)) { if (installedManifest == Manifest) { return(false); } } } finally { ContentDownloader.ShutdownSteam3(); } return(true); }