Add IContentCheck interface

This commit is contained in:
Matt Nadareski
2021-02-26 01:26:49 -08:00
parent c6eaafebbe
commit 7cfa9649e4
47 changed files with 195 additions and 136 deletions

View File

@@ -6,9 +6,10 @@ using System.Threading;
namespace BurnOutSharp.ProtectionType
{
public class ProtectDisc
public class ProtectDisc : IContentCheck
{
public static string CheckContents(string file, byte[] fileContent, bool includePosition = false)
/// <inheritdoc/>
public string CheckContents(string file, byte[] fileContent, bool includePosition = false)
{
// "HúMETINF"
byte[] check = new byte[] { 0x48, 0xFA, 0x4D, 0x45, 0x54, 0x49, 0x4E, 0x46 };