Exemplo n.º 1
0
 public CnmtContentMetaEntry(BinaryReader reader)
 {
     TitleId = reader.ReadUInt64();
     Version = new TitleVersion(reader.ReadUInt32(), true);
     Type    = (ContentType)reader.ReadByte();
     reader.BaseStream.Position += 3;
 }
Exemplo n.º 2
0
 public CnmtPrevContent(BinaryReader reader)
 {
     NcaId = reader.ReadBytes(0x10);
     Size  = reader.ReadUInt32();
     Size |= (long)reader.ReadUInt16() << 32;
     Type  = (ContentType)reader.ReadByte();
     reader.BaseStream.Position += 1;
 }
Exemplo n.º 3
0
 public static string Print(this ContentType value)
 {
     return(value switch
     {
         ContentType.Meta => nameof(ContentType.Meta),
         ContentType.Program => nameof(ContentType.Program),
         ContentType.Data => nameof(ContentType.Data),
         ContentType.Control => nameof(ContentType.Control),
         ContentType.HtmlDocument => nameof(ContentType.HtmlDocument),
         ContentType.LegalInformation => nameof(ContentType.LegalInformation),
         ContentType.DeltaFragment => nameof(ContentType.DeltaFragment),
         _ => value.ToString()
     });