mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-13 21:31:04 +00:00
17 lines
563 B
C#
17 lines
563 B
C#
namespace BurnOutSharp.ProtectionType
|
|
{
|
|
public class CDSHiELDSE : IContentCheck
|
|
{
|
|
/// <inheritdoc/>
|
|
public string CheckContents(string file, byte[] fileContent, bool includePosition = false)
|
|
{
|
|
// "~0017.tmp"
|
|
byte?[] check = new byte?[] { 0x7E, 0x30, 0x30, 0x31, 0x37, 0x2E, 0x74, 0x6D, 0x70 };
|
|
if (fileContent.FirstPosition(check, out int position))
|
|
return "CDSHiELD SE" + (includePosition ? $" (Index {position})" : string.Empty);
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|