Beispiel #1
0
        public override void Load(Stream stream)
        {
            KOARBinaryReader br = new KOARBinaryReader(stream);

            br.ReadUInt(); // Always 1
            Int32 count = br.ReadInt();

            _fileIDs = new List <uint>();

            // First list - fileIDs
            for (int i = 0; i < count; i++)
            {
                _fileIDs.Add(br.ReadUInt());
            }

            // Second list - hashes
            if (br.IsEOF())
            {
                _hashes = null;
            }
            else
            {
                _hashes = new List <uint>();

                for (int i = 0; i < count; i++)
                {
                    _hashes.Add(br.ReadUInt());
                }
            }

            br.Close();
        }