Exemplo n.º 1
0
        private ArchiveFileInfo CreateAfi(Stream file, string name, HpiFileEntry entry)
        {
            var magic = HpiHpbSupport.PeekString(file, 4);

            if (magic != "ACMP")
            {
                return(new HpiHpbArchiveFileInfo(file, name, entry));
            }

            var compressedStream = new SubStream(file, 0x20, file.Length - 0x20);

            return(new HpiHpbArchiveFileInfo(compressedStream, name, entry, Kompression.Implementations.Compressions.Nintendo.BackwardLz77, entry.decompSize));
        }
Exemplo n.º 2
0
 public HpiHpbArchiveFileInfo(Stream fileData, string filePath, HpiFileEntry entry, IKompressionConfiguration configuration, long decompressedSize) :
     base(fileData, filePath, configuration, decompressedSize)
 {
     Entry = entry;
 }
Exemplo n.º 3
0
 public HpiHpbArchiveFileInfo(Stream fileData, string filePath, HpiFileEntry entry) : base(fileData, filePath)
 {
     Entry = entry;
 }