2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.Nitro
|
2025-09-26 11:57:18 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a DS/DSi cart image
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class Cart
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// DS/DSi cart header
|
|
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
public CommonHeader CommonHeader { get; set; } = new();
|
2025-09-26 11:57:18 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// DSi extended cart header
|
|
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
public ExtendedDSiHeader ExtendedDSiHeader { get; set; } = new();
|
2025-09-26 11:57:18 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Secure area, may be encrypted or decrypted
|
|
|
|
|
/// </summary>
|
2025-10-30 20:44:16 -04:00
|
|
|
/// <remarks>0x800 bytes</remarks>
|
|
|
|
|
public byte[] SecureArea { get; set; } = new byte[0x800];
|
2025-09-26 11:57:18 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Name table (folder allocation table, name list)
|
|
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
public NameTable NameTable { get; set; } = new();
|
2025-09-26 11:57:18 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// File allocation table
|
|
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
public FileAllocationTableEntry[] FileAllocationTable { get; set; } = [];
|
2025-09-26 11:57:18 -04:00
|
|
|
}
|
2025-10-30 20:44:16 -04:00
|
|
|
}
|