Else-If causes some issues

This commit is contained in:
Matt Nadareski
2019-09-28 01:51:06 -07:00
parent c109aceb24
commit ca0d695470
12 changed files with 71 additions and 78 deletions

View File

@@ -8,9 +8,11 @@ namespace BurnOutSharp.ProtectionType
{
public static string CheckContents(string file, string fileContent)
{
// TODO: Detect Red Hand protection
if (fileContent.Contains(" SOFTWARE TERMINATED\nCONSOLE MAY HAVE BEEN MODIFIED\n CALL 1-888-780-7690"))
return "PlayStation Anti-modchip (English)";
else if (fileContent.Contains("強制終了しました。\n本体が改造されている\nおそれがあります。"))
if (fileContent.Contains("強制終了しました。\n本体が改造されている\nおそれがあります。"))
return "PlayStation Anti-modchip (Japanese)";
return null;