Changes

507 bytes added ,  12:35, 22 June 2017
Add enums for the title type (high 32 bits of the title ID) and title flags
Line 166: Line 166:  
</source>
 
</source>
 
<source lang="c">
 
<source lang="c">
enum sig_type {
+
enum sig_type {
      RSA_2048 = 0x00010001,
+
  RSA_2048 = 0x00010001,
      RSA_4096 = 0x00010000
+
  RSA_4096 = 0x00010000
};
+
};
 +
 
 +
// High 32 bits of the title ID
 +
enum title_type : u32 {
 +
  System = 0x00000001,
 +
  Game = 0x00010000,
 +
  Channel = 0x00010001,
 +
  SystemChannel = 0x00010002,
 +
  GameWithChannel = 0x00010004,
 +
  DLC = 0x00010005,
 +
  HiddenChannel = 0x00010008,
 +
};
 +
 
 +
// title_type (offset 0x194)
 +
enum title_flags {
 +
  // All official titles have this flag set.
 +
  Default = 0x1,
 +
  Unknown_0x4 = 0x4,
 +
  // Used for DLC titles.
 +
  Data = 0x8,
 +
  Unknown_0x10 = 0x10,
 +
  // Seems to be used for WFS titles.
 +
  Maybe_WFS = 0x20,
 +
  Unknown_CT = 0x40,
 +
};
 
</source>
 
</source>
 
<source lang="c">
 
<source lang="c">
219

edits