mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-09-22 06:36:47 +00:00
Add SafeDisc encrypted file entry model
This commit is contained in:
13
SafeDisc/Constants.cs
Normal file
13
SafeDisc/Constants.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace SabreTools.Models.SafeDisc
|
||||
{
|
||||
public static class Constants
|
||||
{
|
||||
public const uint EncryptedFileEntrySignature1 = 0xA8726B03;
|
||||
|
||||
public const uint EncryptedFileEntrySignature2 = 0xEF01996C;
|
||||
}
|
||||
}
|
||||
31
SafeDisc/EncryptedFileEntry.cs
Normal file
31
SafeDisc/EncryptedFileEntry.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
namespace SabreTools.Models.SafeDisc
|
||||
{
|
||||
/// <see href="http://blog.w4kfu.com/tag/safedisc"/>
|
||||
public class EncryptedFileEntry
|
||||
{
|
||||
/// <summary>
|
||||
/// 0xA8726B03
|
||||
/// </summary>
|
||||
public uint Signature1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0xEF01996C
|
||||
/// </summary>
|
||||
public uint Signature2 { get; set; }
|
||||
|
||||
public uint FileNumber { get; set; }
|
||||
|
||||
public uint Offset1 { get; set; }
|
||||
|
||||
public uint Offset2 { get; set; }
|
||||
|
||||
public uint Unknown1 { get; set; }
|
||||
|
||||
public uint Unknown2 { get; set; }
|
||||
|
||||
/// <remarks>
|
||||
/// 0x0D bytes
|
||||
/// </remarks>
|
||||
public byte[]? Name { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user