mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-11 05:35:15 +00:00
16 lines
508 B
C#
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;
|
|
}
|
|
}
|
|
}
|