public byte[] GetFile(AAIBinEntry entry, string fileName) { string path = GetFileFullPath(fileName); byte[] arquivo = File.ReadAllBytes(path); return(entry.IsCompressed ? DecompressOrCompress(_lz11, arquivo, false) : arquivo); }
public void ReplaceFile(AAIBinEntry fileEntryToChange, byte[] file, string fileName) { string path = GetFileFullPath(fileName); File.WriteAllBytes(path, fileEntryToChange.IsCompressed? file: DecompressOrCompress(_lz11, file, true)); }