public WoWFormatParser(string directory, WoWBuild build, Options options = null) { Directory = directory; if (!System.IO.Directory.Exists(Directory)) { throw new ArgumentException("Invalid Directory argument."); } Build = build; if (Build == null) { throw new ArgumentException("Invalid Build argument."); } Options = options ?? new Options(); _directoryReader = new DirectoryReader(Directory, Options, Build); _mpqReader = new MPQReader(Options, Build, _directoryReader.GetPatchArchives()); }