mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-05 22:01:33 +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.
44 lines
1.4 KiB
C#
44 lines
1.4 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.N3DS
|
|
{
|
|
/// <see href="https://www.3dbrew.org/wiki/CIA#Meta"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class MetaData
|
|
{
|
|
/// <summary>
|
|
/// Title ID dependency list - Taken from the application's ExHeader
|
|
/// </summary>
|
|
/// TODO: Determine numeric format of each entry
|
|
/// <remarks>0x180 bytes</remarks>
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x180)]
|
|
public byte[] TitleIDDependencyList = new byte[0x180];
|
|
|
|
/// <summary>
|
|
/// Reserved
|
|
/// </summary>
|
|
/// <remarks>0x180 bytes</remarks>
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x180)]
|
|
public byte[] Reserved1 = new byte[0x180];
|
|
|
|
/// <summary>
|
|
/// Core Version
|
|
/// </summary>
|
|
public uint CoreVersion;
|
|
|
|
/// <summary>
|
|
/// Reserved
|
|
/// </summary>
|
|
/// <remarks>0xFC bytes</remarks>
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0xFC)]
|
|
public byte[] Reserved2 = new byte[0xFC];
|
|
|
|
/// <summary>
|
|
/// Icon Data(.ICN) - Taken from the application's ExeFS
|
|
/// </summary>
|
|
/// <remarks>0x36C0 bytes</remarks>
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x36C0)]
|
|
public byte[] IconData = new byte[0x36C0];
|
|
}
|
|
}
|