mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-12 17:23:01 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
76 lines
2.0 KiB
C#
76 lines
2.0 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.N3DS
|
|
{
|
|
/// <see href="https://www.3dbrew.org/wiki/NCCH/Extended_Header#System_Control_Info"/>
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
|
public sealed class SystemControlInfo
|
|
{
|
|
/// <summary>
|
|
/// Application title (default is "CtrApp")
|
|
/// </summary>
|
|
/// <remarks>8 bytes</remarks>
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 8)]
|
|
public string ApplicationTitle = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Reserved
|
|
/// </summary>
|
|
/// <remarks>5 bytes</remarks>
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 5)]
|
|
public byte[] Reserved1 = new byte[5];
|
|
|
|
/// <summary>
|
|
/// Flag (bit 0: CompressExefsCode, bit 1: SDApplication)
|
|
/// </summary>
|
|
public byte Flag;
|
|
|
|
/// <summary>
|
|
/// Remaster version
|
|
/// </summary>
|
|
public ushort RemasterVersion;
|
|
|
|
/// <summary>
|
|
/// Text code set info
|
|
/// </summary>
|
|
public CodeSetInfo TextCodeSetInfo = new();
|
|
|
|
/// <summary>
|
|
/// Stack size
|
|
/// </summary>
|
|
public uint StackSize;
|
|
|
|
/// <summary>
|
|
/// Read-only code set info
|
|
/// </summary>
|
|
public CodeSetInfo ReadOnlyCodeSetInfo = new();
|
|
|
|
/// <summary>
|
|
/// Reserved
|
|
/// </summary>
|
|
public uint Reserved2;
|
|
|
|
/// <summary>
|
|
/// Data code set info
|
|
/// </summary>
|
|
public CodeSetInfo DataCodeSetInfo = new();
|
|
|
|
/// <summary>
|
|
/// BSS size
|
|
/// </summary>
|
|
public uint BSSSize;
|
|
|
|
/// <summary>
|
|
/// Dependency module (program ID) list
|
|
/// </summary>
|
|
/// <remarks>48 entries</remarks>
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 48)]
|
|
public ulong[]? DependencyModuleList;
|
|
|
|
/// <summary>
|
|
/// SystemInfo
|
|
/// </summary>
|
|
public SystemInfo SystemInfo = new();
|
|
}
|
|
}
|