public static GetNumSubscribedItems ( ) : uint | ||
Résultat | uint |
public void CheckSubscribedItems(string _multiLevelCache = @"c:\", string _singleLevelCache = @"c:\", string StorageContainerPath = @"c:\") { if (!SteamManager.Initialized) { return; } uint number = SteamUGC.GetNumSubscribedItems(); PublishedFileId_t[] items = new PublishedFileId_t[number]; SteamUGC.GetSubscribedItems(items, number); long itemCount = (long)number; for (long x = 0; x <= itemCount - 1; x++) { //if (items[x].ToString().Contains("468449740")) //{ } //if (!isItemInstalledOnYargis(items[x], _multiLevelCache, _singleLevelCache)) //We can use SteamManager.SteamUGCworkshop.getID to verify if it is still valid. //{ ulong punSizeOnDisk; string pchFolder; uint cchFolderSize = 260; uint punTimeStamp; bool inReadyOnSteam = SteamUGC.GetItemInstallInfo(items[x], out punSizeOnDisk, out pchFolder, cchFolderSize, out punTimeStamp); if (inReadyOnSteam) { installFiles(pchFolder, _multiLevelCache, StorageContainerPath); } //} Console.Write("[" + x + "]: " + items[x] + ", "); } Console.WriteLine(""); }