public BSAArchiveFileInfo(BSAArchive _bsa, UInt64 _offset, uint _size, uint _zsize) { bsa = _bsa; offset = _offset; size = _size; zsize = _zsize; if (_zsize == 0) { if ((size & (1 << 30)) != 0) { size ^= 1 << 30; compressed = !bsa.defaultCompressed; } else { compressed = bsa.defaultCompressed; } } else { if (_size != _zsize) { compressed = true; } else { compressed = false; } } }
public BSAArchiveFileInfo(BSAArchive _bsa, int _offset, int _size) { bsa = _bsa; offset = _offset; size = _size; if ((size & (1 << 30)) != 0) { size ^= 1 << 30; compressed = !bsa.defaultCompressed; } else { compressed = bsa.defaultCompressed; } //Console.WriteLine(bsa.name + " " + size); }
public BSAArchiveFileInfo(BSAArchive _bsa, int _offset, int _size) { bsa = _bsa; offset = _offset; size = _size; if ((size & (1 << 30)) != 0) { size ^= 1 << 30; compressed = !bsa.defaultCompressed; } else { compressed = bsa.defaultCompressed; } //Console.WriteLine(bsa.name + " " + size); }