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

16 lines
505 B
C#

namespace BurnOutSharp.ProtectionType
{
public class CengaProtectDVD
{
public static string CheckContents(byte[] fileContent, bool includePosition = false)
{
// ".cenega"
byte[] check = new byte[] { 0x2E, 0x63, 0x65, 0x6E, 0x65, 0x67, 0x61 };
if (fileContent.Contains(check, out int position))
return "Cenega ProtectDVD" + (includePosition ? $" (Index {position})" : string.Empty);
return null;
}
}
}