Add LE/LX constants

This commit is contained in:
Matt Nadareski
2022-12-28 10:31:28 -08:00
parent 14fb3f5758
commit 2b66efd11b
4 changed files with 41 additions and 8 deletions

View File

@@ -0,0 +1,21 @@
namespace BurnOutSharp.Models.LinearExecutable
{
public static class Constants
{
public static readonly byte[] DebugInformationSignatureBytes = new byte[] { 0x4e, 0x42, 0x30 };
public const string DebugInformationSignatureString = "NB0";
public static readonly byte[] LESignatureBytes = new byte[] { 0x4c, 0x45 };
public const string LESignatureString = "LE";
public const ushort LESignatureUInt16 = 0x454c;
public static readonly byte[] LXSignatureBytes = new byte[] { 0x4c, 0x58 };
public const string LXSignatureString = "LX";
public const ushort LXSignatureUInt16 = 0x584c;
}
}

View File

@@ -19,7 +19,7 @@ namespace BurnOutSharp.Models.LinearExecutable
/// <summary>
/// The signature consists of a string of three (3) ASCII characters: "NB0"
/// </summary>
public byte[] Signature;
public string Signature;
/// <summary>
/// This defines the type of debugger data that exists in the remainder of the

View File

@@ -646,6 +646,24 @@ namespace BurnOutSharp.Models.LinearExecutable
Windows386 = 0x04,
}
public enum ResourceTableEntryType : uint
{
/// <summary>
/// "BTMP" - Bitmap
/// </summary>
BTMP = 0x504d5442,
/// <summary>
/// "EMSG" - Error message string
/// </summary>
EMSG = 0x47534d45,
/// <summary>
/// "FONT" - Fonts
/// </summary>
FONT = 0x544e4f46,
}
public enum WordOrder : byte
{
/// <summary>

View File

@@ -21,13 +21,7 @@ namespace BurnOutSharp.Models.LinearExecutable
/// <summary>
/// Resource type ID.
/// </summary>
/// <remarks>
/// The type of resources are:
/// - BTMP = Bitmap
/// - EMSG = Error message string
/// - FONT = Fonts
/// </remarks>
public ushort TypeID;
public ResourceTableEntryType TypeID;
/// <summary>
/// An ID used as a name for the resource when referred to.