Files
BinaryObjectScanner/BurnOutSharp/ProtectionType/CDSHiELDSE.cs
2020-09-10 21:43:18 -07:00

16 lines
508 B
C#

namespace BurnOutSharp.ProtectionType
{
public class CDSHiELDSE
{
public static string CheckContents(byte[] fileContent, bool includePosition = false)
{
// "~0017.tmp"
byte[] check = new byte[] { 0x7E, 0x30, 0x30, 0x31, 0x37, 0x2E, 0x74, 0x6D, 0x70 };
if (fileContent.Contains(check, out int position))
return "CDSHiELD SE" + (includePosition ? $" (Index {position})" : string.Empty);
return null;
}
}
}