/// <summary>Initializes a new instance of the <see cref="MpqFileSystem"/> class.</summary> internal WoWMpqFileSystem(WoWArchive[] archiveArray, string locale) { this.locale = locale; this.localePrefix = locale + @"\"; this.wowArchiveArray = archiveArray; this.wowArchiveCollection = new WoWArchiveCollection(this); this.mpqArchiveCollection = new MpqArchiveCollection(this); EventHandler <ResolveStreamEventArgs> baseFileResolver = ResolveBaseFile; foreach (var archiveEntry in archiveArray) { archiveEntry.Archive.ResolveBaseFile += baseFileResolver; } }
/// <summary>Initializes a new instance of the <see cref="MpqFileSystem"/> class.</summary> /// <param name="shouldRetrieveDeletedFiles">if set to <see langword="true"/>, files deleted in a patch will be retrieved.</param> public MpqFileSystem(bool shouldRetrieveDeletedFiles) { this.archiveList = new List <MpqArchive>(); this.archiveCollection = new MpqArchiveCollection(this); this.shouldRetrieveDeletedFiles = shouldRetrieveDeletedFiles; }