예제 #1
0
        private void ParseInfoBlock(FileReader reader)
        {
            long basePos = reader.Position;

            var infoBlock  = reader.ReadStruct <InfoBlock>();
            var references = reader.ReadMultipleStructs <SectionReference>(infoBlock.NumEntries);

            for (int i = 0; i < infoBlock.NumEntries; i++)
            {
                reader.SeekBegin(basePos + (long)references[i].Offset + (i * 16));
                LocationInfo info = new LocationInfo();
                info.Read(reader);

                files.Add(new AudioEntry()
                {
                    FileName = $"File {i}",
                    FileData = info.FileData.Data,
                });
            }
        }