/// <summary> /// Creates a FileIndex with all available MMAT Files /// </summary> /// <returns>the FileIndex</returns> /// <remarks> /// The Tags of the FileDescriptions contain the MMATCachItem Object, /// the FileNames of the FileDescriptions contain the Name of the package File /// </remarks> public void LoadOverrides() { fi = new FileIndex(new ArrayList()); fi.Duplicates = true; foreach (CacheContainer cc in Containers) { if (cc.Type == ContainerType.MaterialOverride && cc.Valid) { foreach (MMATCacheItem mci in cc.Items) { Interfaces.Files.IPackedFileDescriptor pfd = mci.FileDescriptor; pfd.Filename = cc.FileName; fi.AddIndexFromPfd(pfd, null, FileIndex.GetLocalGroup(pfd.Filename)); } } } //foreach }