Skip to content

Commit

Permalink
remove anti-tamper MD5 checksum function
Browse files Browse the repository at this point in the history
There are valid (and legal) reasons to not have an executable that matches one of these checksums.
  • Loading branch information
ks202005 authored Jun 2, 2023
1 parent 4187a39 commit 573579a
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions Data/FileHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ internal class FileHandler
public FileInfo UserEngine = new(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "WB Games\\Batman Arkham City GOTY\\BmGame\\Config\\UserEngine.ini"));
public FileInfo BmInput = new(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "WB Games\\Batman Arkham City GOTY\\BmGame\\Config\\BmInput.ini"));

private static readonly string ExeChecksumMD5_STEAM = "F18E985B0BE14210C9726C4A4EC8F5ED";
private static readonly string ExeChecksumMD5_EPIC = "96830C0F0026C06D548A9F57ADEE8E32";
private static readonly string ExeChecksumMD5_GOG = "6E8F9DE533738451F5166427CB378E0F";

private static readonly Logger Nlog = LogManager.GetCurrentClassLogger();


Expand Down Expand Up @@ -194,15 +190,8 @@ public void CreateConfigFile(string Path, string Resource)
public static bool DetectGameExe()
{
string GameExe = Path.Combine(Directory.GetCurrentDirectory(), "BatmanAC.exe");
if (File.Exists(GameExe))
{
string ExeChecksum = SetMD5(GameExe);
if (ExeChecksum == ExeChecksumMD5_STEAM || ExeChecksum == ExeChecksumMD5_EPIC || ExeChecksum == ExeChecksumMD5_GOG)
{
return true;
}
}
return false;
if (File.Exists(GameExe));
return true;
}

private void CheckIntroVideoFilesRenamed()
Expand Down

0 comments on commit 573579a

Please sign in to comment.