mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-08 21:31:45 +00:00
16 lines
483 B
C#
16 lines
483 B
C#
namespace BurnOutSharp.ProtectionType
|
|
{
|
|
public class AlphaROM
|
|
{
|
|
public static string CheckContents(byte[] fileContent, bool includePosition = false)
|
|
{
|
|
// "SETTEC"
|
|
byte[] check = new byte[] { 0x53, 0x45, 0x54, 0x54, 0x45, 0x43 };
|
|
if (fileContent.Contains(check, out int position))
|
|
return "Alpha-ROM" + (includePosition ? $" (Index {position})" : string.Empty);
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|