Exemple #1
0
        public byte[] GetFile(AAIBinEntry entry, string fileName)
        {
            string path = GetFileFullPath(fileName);

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

            File.WriteAllBytes(path, fileEntryToChange.IsCompressed? file: DecompressOrCompress(_lz11, file, true));
        }