diff --git a/BurnOutSharp.Models/LinearExecutable/Constants.cs b/BurnOutSharp.Models/LinearExecutable/Constants.cs new file mode 100644 index 00000000..08be4115 --- /dev/null +++ b/BurnOutSharp.Models/LinearExecutable/Constants.cs @@ -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; + } +} \ No newline at end of file diff --git a/BurnOutSharp.Models/LinearExecutable/DebugInformation.cs b/BurnOutSharp.Models/LinearExecutable/DebugInformation.cs index b680f6bf..f3b7e687 100644 --- a/BurnOutSharp.Models/LinearExecutable/DebugInformation.cs +++ b/BurnOutSharp.Models/LinearExecutable/DebugInformation.cs @@ -19,7 +19,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// The signature consists of a string of three (3) ASCII characters: "NB0" /// - public byte[] Signature; + public string Signature; /// /// This defines the type of debugger data that exists in the remainder of the diff --git a/BurnOutSharp.Models/LinearExecutable/Enums.cs b/BurnOutSharp.Models/LinearExecutable/Enums.cs index 0ce3b58d..10810f2b 100644 --- a/BurnOutSharp.Models/LinearExecutable/Enums.cs +++ b/BurnOutSharp.Models/LinearExecutable/Enums.cs @@ -646,6 +646,24 @@ namespace BurnOutSharp.Models.LinearExecutable Windows386 = 0x04, } + public enum ResourceTableEntryType : uint + { + /// + /// "BTMP" - Bitmap + /// + BTMP = 0x504d5442, + + /// + /// "EMSG" - Error message string + /// + EMSG = 0x47534d45, + + /// + /// "FONT" - Fonts + /// + FONT = 0x544e4f46, + } + public enum WordOrder : byte { /// diff --git a/BurnOutSharp.Models/LinearExecutable/ResourceTableEntry.cs b/BurnOutSharp.Models/LinearExecutable/ResourceTableEntry.cs index d341d29d..891283af 100644 --- a/BurnOutSharp.Models/LinearExecutable/ResourceTableEntry.cs +++ b/BurnOutSharp.Models/LinearExecutable/ResourceTableEntry.cs @@ -21,13 +21,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// Resource type ID. /// - /// - /// The type of resources are: - /// - BTMP = Bitmap - /// - EMSG = Error message string - /// - FONT = Fonts - /// - public ushort TypeID; + public ResourceTableEntryType TypeID; /// /// An ID used as a name for the resource when referred to.