2025-09-26 11:57:18 -04:00
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
|
namespace SabreTools.Data.Models.N3DS
|
2025-09-26 11:57:18 -04:00
|
|
|
|
{
|
|
|
|
|
|
/// <see href="https://www.3dbrew.org/wiki/NCCH/Extended_Header#ARM9_Access_Control"/>
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
|
public sealed class ARM9AccessControl
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Descriptors
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>15 bytes</remarks>
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 15)]
|
2025-10-31 13:59:28 -04:00
|
|
|
|
public ARM9AccessControlDescriptors[] Descriptors = new ARM9AccessControlDescriptors[15];
|
2025-09-26 11:57:18 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// ARM9 Descriptor Version. Originally this value had to be ≥ 2.
|
|
|
|
|
|
/// Starting with 9.3.0-X this value has to be either value 2 or value 3.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public byte DescriptorVersion;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|