Пример #1
0
 public override void Parse(CBinaryReader br)
 {
     br.Seek((long) base.Address, SeekOrigin.Begin);
     br.Endian = EndianType.BigEndian;
     this.MediaID = br.ReadBytes(4);
     this.Version = br.ReadUInt32();
     this.BaseVersion = br.ReadUInt32();
     this.TitleID = br.ReadBytes(4);
     this.Platform = br.ReadByte();
     this.ExecutableType = br.ReadByte();
     this.DiscNumber = br.ReadByte();
     this.DiscCount = br.ReadByte();
 }
Пример #2
0
 public XPRHeader(CBinaryReader br)
 {
     br.Endian = EndianType.LittleEndian;
     this.MagicBytes = br.ReadUInt32();
     if (this.MagicBytes == 0x30525058)
     {
         this.FileSize = br.ReadUInt32();
         this.HeaderSize = br.ReadUInt32();
         this.TextureCommon = br.ReadUInt32();
         this.TextureData = br.ReadUInt32();
         this.TextureLock = br.ReadUInt32();
         this.TextureMisc1 = br.ReadByte();
         this.TextureFormat = br.ReadByte();
         this.TextureRes1 = br.ReadByte();
         this.TextureRes2 = br.ReadByte();
         this.IsValid = true;
     }
 }