mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-10 13:52:16 +00:00
16 lines
505 B
C#
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;
|
|
}
|
|
}
|
|
}
|