public void AquireMissingItems() { Cache.MissingDir = SteamUtilities.GetMissingItems() .Select(id => id.AsUInt64) .ToArray(); }
public static void UpdateDownloadStatusSprite(PackageEntry packageEntry) { try { Assertion.NotNull(packageEntry, "packageEntry"); var ugc = m_WorkshopDetails(packageEntry); if (!packageEntry.publishedFileId.IsValid() || !ugc.publishedFileId.IsValid()) { //Log.Debug("[p0] entry name=" + packageEntry.entryName); RemoveDownloadStatusSprite(packageEntry); } else { var status = SteamUtilities.IsUGCUpToDate(ugc, out string reason); if (status == DownloadOK) { //Log.Debug("[p1] entry name=" + packageEntry.entryName); RemoveDownloadStatusSprite(packageEntry); } else { //Log.Debug("[p2] entry name=" + packageEntry.entryName); GetorCreateStatusPanel(packageEntry).StatusButton.SetStatus(status, reason); } } //Log.Succeeded(); } catch (Exception ex) { ex.Log(); } }
static void OnPerformAllClicked() { Log.Debug("Perform all pressed"); CheckSubsUtil.EnsureAll(); SteamUtilities.DeleteUnsubbed(); }