public BsaReader(MemoryMappedFile mmf, CompressionOptions options) { _mmf = mmf; Settings = new ArchiveSettings { Options = options }; }
//wtf C# //please get real ctor overloads someday private Bsa(MemoryMappedFile bsaMap, CompressionOptions options) : this(new BsaReader(bsaMap, options)) { }
/// <summary> /// Creates a new BSAWrapper instance around an existing BSA file /// </summary> /// <param name="bsaPath">The path of the file to open</param> /// <param name="options"></param> public Bsa(string bsaPath, CompressionOptions options = null) : this(MemoryMappedFile.CreateFromFile(bsaPath, FileMode.Open, null, 0L, MemoryMappedFileAccess.Read), options ?? new CompressionOptions()) { }