Esempio n. 1
0
 public FolderRecordBuilder(BSABuilder bsa, RelativePath folderName, IEnumerable <FileEntry> files)
 {
     _files = files.OrderBy(f => f._hash);
     Name   = folderName;
     _bsa   = bsa;
     // Folders don't have extensions, so let's make sure we cut it out
     _hash       = Name.GetFolderBSAHash();
     _fileCount  = (uint)files.Count();
     _nameBytes  = folderName.ToBZString(_bsa.HeaderType);
     _recordSize = sizeof(ulong) + sizeof(uint) + sizeof(uint);
 }