mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-09 15:53:06 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
28 lines
853 B
C#
28 lines
853 B
C#
namespace SabreTools.Data.Models.SecuROM
|
|
{
|
|
/// <remarks>
|
|
/// Most DFA-protected files seem to also have additional encryption,
|
|
/// possibly SecuROM DFE. Only early RC-encrypted executables can be
|
|
/// parsed beyond the initial header.
|
|
/// </remarks>
|
|
public class DFAFile
|
|
{
|
|
/// <summary>
|
|
/// "SDFA" 0x04 0x00 0x00 0x00
|
|
/// </summary>
|
|
/// <remarks>8 bytes</remarks>
|
|
public byte[] Signature { get; set; } = new byte[8];
|
|
|
|
/// <summary>
|
|
/// Unknown value, possibly a block or header size
|
|
/// </summary>
|
|
/// <remarks>Only a value of 0x400 has been found</remarks>
|
|
public uint BlockOrHeaderSize { get; set; }
|
|
|
|
/// <summary>
|
|
/// All entries in the file
|
|
/// </summary>
|
|
public DFAEntry[] Entries { get; set; } = [];
|
|
}
|
|
}
|