Esempio n. 1
0
        public NroHeader(BinaryReader reader)
        {
            Magic   = reader.ReadAscii(4);
            Version = reader.ReadUInt32();
            Size    = reader.ReadUInt32();
            reader.BaseStream.Position += 4;

            for (int i = 0; i < 3; i++)
            {
                NroSegments[i] = new NroSegment(reader, (NroSegmentType)i);
            }

            BssSize = reader.ReadUInt32();
            reader.BaseStream.Position += 4;
            BuildId = reader.ReadBytes(0x20);
            reader.BaseStream.Position += 0x20;
        }