From e6b898882df7c5953ce62b605418a10fc10fa6ad Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 1 Sep 2021 23:12:16 -0700 Subject: [PATCH] Add notes to PSX Anti-modchip --- BurnOutSharp/ProtectionType/PSXAntiModchip.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/BurnOutSharp/ProtectionType/PSXAntiModchip.cs b/BurnOutSharp/ProtectionType/PSXAntiModchip.cs index 76408318..ad640d16 100644 --- a/BurnOutSharp/ProtectionType/PSXAntiModchip.cs +++ b/BurnOutSharp/ProtectionType/PSXAntiModchip.cs @@ -8,6 +8,7 @@ namespace BurnOutSharp.ProtectionType /// public List GetContentMatchSets() { + // TODO: Detect Red Hand protection return new List { // SOFTWARE TERMINATED\nCONSOLE MAY HAVE BEEN MODIFIED\n CALL 1-888-780-7690 @@ -41,9 +42,13 @@ namespace BurnOutSharp.ProtectionType }; } - // TODO: Figure out PSX binary header so this can be checked explicitly - // TODO: Detect Red Hand protection + // TODO: Figure out PSX binary header so this can be checked explicitly. + // For now, this means that the CheckContents check is redundant for external + // use through other programs /// - public string CheckContents(string file, byte[] fileContent, bool includeDebug = false) => null; + public string CheckContents(string file, byte[] fileContent, bool includeDebug = false) + { + return MatchUtil.GetFirstMatch(file, fileContent, GetContentMatchSets(), includeDebug); + } } }