Skip to content

Commit

Permalink
Merge pull request #238 from kurokobo/fix-verifier
Browse files Browse the repository at this point in the history
fix: change to verify only for existing dlls
  • Loading branch information
denverquane authored Jul 7, 2021
2 parents 002ff64 + 71c8f15 commit 7acb661
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions AmongUsCapture/Verification/GameVerifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ public static bool VerifySteamHash(string executablePath)
{
baseDllFolder = Path.Join(Directory.GetParent(executablePath).FullName, "/Among Us_Data/Plugins/x86_64/");
}
var steam_apiCert = AuthenticodeTools.IsTrusted(Path.Join(baseDllFolder, "steam_api.dll"));
var steam_api64Cert = AuthenticodeTools.IsTrusted(Path.Join(baseDllFolder, "steam_api64.dll"));
var steam_apiCertPath = Path.Join(baseDllFolder, "steam_api.dll");
var steam_api64CertPath = Path.Join(baseDllFolder, "steam_api64.dll");
var steam_apiCert = !File.Exists(steam_apiCertPath) || AuthenticodeTools.IsTrusted(steam_apiCertPath);
var steam_api64Cert = !File.Exists(steam_api64CertPath) || AuthenticodeTools.IsTrusted(steam_api64CertPath);
//Settings.conInterface.WriteModuleTextColored("GameVerifier",Color.Yellow,$"steam_apiCert: {steam_apiCert}");
//Settings.conInterface.WriteModuleTextColored("GameVerifier",Color.Yellow,$"steam_api64Cert: {steam_api64Cert}");
return (steam_apiCert) && (steam_api64Cert);
Expand Down

0 comments on commit 7acb661

Please sign in to comment.