namespace BinaryObjectScanner.Models.N3DS
{
///
public sealed class NCCHHeaderFlags
{
///
/// Reserved
///
public byte Reserved0;
///
/// Reserved
///
public byte Reserved1;
///
/// Reserved
///
public byte Reserved2;
///
/// Crypto Method: When this is non-zero, a NCCH crypto method using two keyslots is used.
///
public CryptoMethod CryptoMethod;
///
/// Content Platform: 1 = CTR, 2 = snake (New 3DS).
///
public ContentPlatform ContentPlatform;
///
/// Content Type Bit-masks: Data = 0x1, Executable = 0x2, SystemUpdate = 0x4, Manual = 0x8,
/// Child = (0x4|0x8), Trial = 0x10. When 'Data' is set, but not 'Executable', NCCH is a CFA.
/// Otherwise when 'Executable' is set, NCCH is a CXI.
///
public ContentType MediaPlatformIndex;
///
/// Content Unit Size i.e. u32 ContentUnitSize = 0x200*2^flags[6];
///
public byte ContentUnitSize;
///
/// Bit-masks: FixedCryptoKey = 0x1, NoMountRomFs = 0x2, NoCrypto = 0x4, using a new keyY
/// generator = 0x20(starting with FIRM 9.6.0-X).
///
public BitMasks BitMasks;
}
}