Add N3DS builder

This commit is contained in:
Matt Nadareski
2023-01-06 16:14:00 -08:00
parent ddfa820004
commit 83af2926aa
4 changed files with 276 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
namespace BurnOutSharp.Models.N3DS
{
/// <summary>
/// Represents a 3DS cart image
/// </summary>
public class Cart
{
/// <summary>
/// 3DS cart header
/// </summary>
public NCSDHeader Header { get; set; }
/// <summary>
/// NCCH partitions
/// </summary>
public NCCHHeader[] Partitions { get; set; }
}
}

View File

@@ -44,7 +44,7 @@
/// <summary>
/// Program ID
/// </summary>
public ulong ProgramId;
public byte[] ProgramId;
/// <summary>
/// Reserved

View File

@@ -18,6 +18,11 @@
/// </summary>
public byte[] RSA2048Signature;
/// <summary>
/// Magic Number 'NCSD'
/// </summary>
public string MagicNumber;
/// <summary>
/// Size of the NCSD image, in media units (1 media unit = 0x200 bytes)
/// </summary>