2020-06-22 11:36:55 +00:00
|
|
|
using System.Runtime.InteropServices;
|
2019-09-19 00:45:11 +00:00
|
|
|
|
2019-11-08 14:49:48 +00:00
|
|
|
namespace Ryujinx.HLE.HOS.Services.Ro
|
2019-09-19 00:45:11 +00:00
|
|
|
{
|
|
|
|
[StructLayout(LayoutKind.Explicit, Size = 0x350)]
|
|
|
|
unsafe struct NrrHeader
|
|
|
|
{
|
|
|
|
[FieldOffset(0)]
|
|
|
|
public uint Magic;
|
|
|
|
|
2020-06-22 11:36:55 +00:00
|
|
|
[FieldOffset(0x4)]
|
|
|
|
public uint CertificationSignatureKeyGeneration; // 9.0.0+
|
2019-09-19 00:45:11 +00:00
|
|
|
|
2020-06-22 11:36:55 +00:00
|
|
|
[FieldOffset(0x8)]
|
|
|
|
public ulong Reserved;
|
2019-09-19 00:45:11 +00:00
|
|
|
|
2020-06-22 11:36:55 +00:00
|
|
|
[FieldOffset(0x10)]
|
|
|
|
public NRRCertification Certification;
|
2019-09-19 00:45:11 +00:00
|
|
|
|
|
|
|
[FieldOffset(0x230)]
|
|
|
|
public fixed byte NrrSignature[0x100];
|
|
|
|
|
|
|
|
[FieldOffset(0x330)]
|
2020-06-22 11:36:55 +00:00
|
|
|
public ulong TitleId;
|
2019-09-19 00:45:11 +00:00
|
|
|
|
|
|
|
[FieldOffset(0x338)]
|
|
|
|
public uint NrrSize;
|
|
|
|
|
2020-06-22 11:36:55 +00:00
|
|
|
[FieldOffset(0x33C)]
|
|
|
|
public byte Type; // 7.0.0+
|
|
|
|
|
|
|
|
[FieldOffset(0x33D)]
|
|
|
|
public fixed byte Reserved2[0x3];
|
|
|
|
|
2019-09-19 00:45:11 +00:00
|
|
|
[FieldOffset(0x340)]
|
|
|
|
public uint HashOffset;
|
|
|
|
|
|
|
|
[FieldOffset(0x344)]
|
|
|
|
public uint HashCount;
|
2020-06-22 11:36:55 +00:00
|
|
|
|
|
|
|
[FieldOffset(0x348)]
|
|
|
|
public ulong Reserved3;
|
2019-09-19 00:45:11 +00:00
|
|
|
}
|
2020-06-22 11:36:55 +00:00
|
|
|
}
|