2024-04-23 13:30:43 -04:00
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
|
|
|
|
namespace SabreTools.Models.SFFS
|
2023-09-04 00:11:04 -04:00
|
|
|
|
{
|
|
|
|
|
|
/// <see href="https://forum.xentax.com/viewtopic.php?f=21&t=2084"/>
|
2024-04-23 13:30:43 -04:00
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
2023-09-04 00:11:04 -04:00
|
|
|
|
public sealed class FileEntry
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// MD5 hash of filename (not encrypted,)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>0x10 bytes</remarks>
|
2024-04-23 13:30:43 -04:00
|
|
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x10)]
|
|
|
|
|
|
public byte[]? FilenameMD5Hash;
|
2023-09-04 00:11:04 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Index of fileheader (encrypted with filename)
|
|
|
|
|
|
/// </summary>
|
2024-04-23 13:30:43 -04:00
|
|
|
|
public ulong FileHeaderIndex;
|
2023-09-04 00:11:04 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|