Ejemplo n.º 1
0
        public void AddPak(string path, byte[] key = null)
        {
            var reader = new PakFileReader(path, CaseSensitive);

            if (key != null)
            {
                reader.ReadIndex(key, Filter);
            }
            PakFiles.Add(reader);
        }
Ejemplo n.º 2
0
        public void AddPak(Stream stream, byte[] key = null)
        {
            var reader = new PakFileReader(string.Empty, stream, CaseSensitive);

            if (key != null)
            {
                reader.ReadIndex(key, Filter);
            }
            PakFiles.Add(reader);
        }