mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-22 06:45:11 +00:00
Libraries
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.
This commit is contained in:
9
SabreTools.Data.Models/SafeDisc/Constants.cs
Normal file
9
SabreTools.Data.Models/SafeDisc/Constants.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace SabreTools.Data.Models.SafeDisc
|
||||
{
|
||||
public static class Constants
|
||||
{
|
||||
public const uint EncryptedFileEntrySignature1 = 0xA8726B03;
|
||||
|
||||
public const uint EncryptedFileEntrySignature2 = 0xEF01996C;
|
||||
}
|
||||
}
|
||||
33
SabreTools.Data.Models/SafeDisc/EncryptedFileEntry.cs
Normal file
33
SabreTools.Data.Models/SafeDisc/EncryptedFileEntry.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace SabreTools.Data.Models.SafeDisc
|
||||
{
|
||||
/// <see href="https://web.archive.org/web/20241008171855/http://blog.w4kfu.com/tag/safedisc"/>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public class EncryptedFileEntry
|
||||
{
|
||||
/// <summary>
|
||||
/// 0xA8726B03
|
||||
/// </summary>
|
||||
public uint Signature1;
|
||||
|
||||
/// <summary>
|
||||
/// 0xEF01996C
|
||||
/// </summary>
|
||||
public uint Signature2;
|
||||
|
||||
public uint FileNumber;
|
||||
|
||||
public uint Offset1;
|
||||
|
||||
public uint Offset2;
|
||||
|
||||
public uint Unknown1;
|
||||
|
||||
public uint Unknown2;
|
||||
|
||||
/// <remarks>0x0D bytes</remarks>
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x0D)]
|
||||
public byte[] Name = new byte[0x0D];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user