Add and use NE constants

This commit is contained in:
Matt Nadareski
2022-12-28 14:26:12 -08:00
parent 81d7151f8f
commit 6b832026b4
4 changed files with 19 additions and 9 deletions

View File

@@ -0,0 +1,11 @@
namespace BurnOutSharp.Models.NewExecutable
{
public static class Constants
{
public static readonly byte[] SignatureBytes = new byte[] { 0x4e, 0x45 };
public const string SignatureString = "NE";
public const ushort SignatureUInt16 = 0x454e;
}
}

View File

@@ -17,7 +17,7 @@ namespace BurnOutSharp.Models.NewExecutable
/// "E" is high-order byte.
/// </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)]
public byte[] Magic;
public string Magic;
/// <summary>
/// Version number of the linker.