Ejemplo n.º 1
0
        public ArTable(BinaryReader br)
        {
            Read(br);

            FileInfo  = new Dictionary <ulong, FileInfoEntry>();
            Offsets   = new List <OffsetEntry>();
            HashTable = new List <HashEntry> ();

            // read tables
            for (int i = 0; i < Table1count; i++)
            {
                var entry = new FileInfoEntry(br);

                if (!FileInfo.ContainsKey(entry.NameHash64))
                {
                    FileInfo.Add(entry.NameHash64, entry);
                }
                else
                {
                }
            }

            for (int i = 0; i < Table2count; i++)
            {
                Offsets.Add(new OffsetEntry(br));
            }

            for (int i = 0; i < Table3count; i++)
            {
                HashTable.Add(new HashEntry(br));
            }
        }
Ejemplo n.º 2
0
        public ArTable(BinaryReader br)
        {
            Read(br);

            FileInfo  = new Dictionary <int, FileInfoEntry>();
            Offsets   = new Dictionary <int, OffsetEntry>();
            HashTable = new Dictionary <int, HashEntry>();

            // read tables
            for (int i = 0; i < Table1count; i++)
            {
                var entry = new FileInfoEntry(br);
                FileInfo.Add(i, entry);
            }

            for (int i = 0; i < Table2count; i++)
            {
                Offsets.Add(i, new OffsetEntry(br));
            }

            for (int i = 0; i < Table3count; i++)
            {
                HashTable.Add(i, new HashEntry(br));
            }
        }