2025-09-26 11:42:28 -04:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.BDPlus
|
2025-09-26 11:42:28 -04:00
|
|
|
{
|
|
|
|
|
/// <see href="https://github.com/mwgoldsmith/bdplus/blob/master/src/libbdplus/bdsvm/loader.c"/>
|
|
|
|
|
public sealed class SVM
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// "BDSVM_CC"
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 8)]
|
2025-10-31 13:59:28 -04:00
|
|
|
public string Signature = string.Empty;
|
2025-09-26 11:42:28 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Unknown data
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 5)]
|
2025-10-30 20:44:16 -04:00
|
|
|
public byte[] Unknown1 = new byte[5];
|
2025-09-26 11:42:28 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Version year
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort Year;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Version month
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte Month;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Version day
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte Day;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Unknown data
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Unknown2;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Length
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Length;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-10-30 20:44:16 -04:00
|
|
|
/// <see cref="Length"> bytes of data
|
2025-09-26 11:42:28 -04:00
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
public byte[] Data { get; set; } = [];
|
2025-09-26 11:42:28 -04:00
|
|
|
}
|
2025-10-30 20:44:16 -04:00
|
|
|
}
|