mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-14 05:36:07 +00:00
20 lines
566 B
C#
20 lines
566 B
C#
using System.Collections.Generic;
|
|
|
|
namespace BurnOutSharp.ProtectionType
|
|
{
|
|
public class AlphaROM : IContentCheck
|
|
{
|
|
/// <inheritdoc/>
|
|
public string CheckContents(string file, byte[] fileContent, bool includePosition = false)
|
|
{
|
|
var mappings = new Dictionary<byte?[], string>
|
|
{
|
|
// SETTEC
|
|
[new byte?[] { 0x53, 0x45, 0x54, 0x54, 0x45, 0x43 }] = "Alpha-ROM",
|
|
};
|
|
|
|
return Utilities.GetContentMatches(fileContent, mappings, includePosition);
|
|
}
|
|
}
|
|
}
|