mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-09-23 07:14:49 +00:00
Add LE/LX constants
This commit is contained in:
21
BurnOutSharp.Models/LinearExecutable/Constants.cs
Normal file
21
BurnOutSharp.Models/LinearExecutable/Constants.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user