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

17 lines
529 B
C#

namespace BurnOutSharp.ProtectionType
{
public class Cucko
{
// TODO: Verify this doesn't over-match
public static string CheckContents(byte[] fileContent, bool includePosition = false)
{
// "EASTL"
byte[] check = new byte[] { 0x45, 0x41, 0x53, 0x54, 0x4C };
if (fileContent.Contains(check, out int position))
return "Cucko (EA Custom)" + (includePosition ? $" (Index {position})" : string.Empty);
return null;
}
}
}