Exemplo n.º 1
0
 public BsaReader(MemoryMappedFile mmf, CompressionOptions options)
 {
     _mmf     = mmf;
     Settings = new ArchiveSettings {
         Options = options
     };
 }
Exemplo n.º 2
0
 //wtf C#
 //please get real ctor overloads someday
 private Bsa(MemoryMappedFile bsaMap, CompressionOptions options)
     : this(new BsaReader(bsaMap, options))
 {
 }
Exemplo n.º 3
0
 /// <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())
 {
 }