2024-04-23 13:30:43 -04:00
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
|
|
|
|
namespace SabreTools.Models.SafeDisc
|
2023-11-30 19:11:52 -05:00
|
|
|
|
{
|
|
|
|
|
|
/// <see href="http://blog.w4kfu.com/tag/safedisc"/>
|
2024-04-23 13:30:43 -04:00
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
2023-11-30 19:11:52 -05:00
|
|
|
|
public class EncryptedFileEntry
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 0xA8726B03
|
|
|
|
|
|
/// </summary>
|
2024-04-23 13:30:43 -04:00
|
|
|
|
public uint Signature1;
|
2023-11-30 19:11:52 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 0xEF01996C
|
|
|
|
|
|
/// </summary>
|
2024-04-23 13:30:43 -04:00
|
|
|
|
public uint Signature2;
|
2023-11-30 19:11:52 -05:00
|
|
|
|
|
2024-04-23 13:30:43 -04:00
|
|
|
|
public uint FileNumber;
|
2023-11-30 19:11:52 -05:00
|
|
|
|
|
2024-04-23 13:30:43 -04:00
|
|
|
|
public uint Offset1;
|
2023-11-30 19:11:52 -05:00
|
|
|
|
|
2024-04-23 13:30:43 -04:00
|
|
|
|
public uint Offset2;
|
2023-11-30 19:11:52 -05:00
|
|
|
|
|
2024-04-23 13:30:43 -04:00
|
|
|
|
public uint Unknown1;
|
2023-11-30 19:11:52 -05:00
|
|
|
|
|
2024-04-23 13:30:43 -04:00
|
|
|
|
public uint Unknown2;
|
2023-11-30 19:11:52 -05:00
|
|
|
|
|
2024-04-23 13:30:43 -04:00
|
|
|
|
/// <remarks>0x0D bytes</remarks>
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x0D)]
|
|
|
|
|
|
public byte[]? Name;
|
2023-11-30 19:11:52 -05:00
|
|
|
|
}
|
|
|
|
|
|
}
|