You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
935 B

  1. using System;
  2. using System.IO;
  3. using IPA.Utilities;
  4. #if NET3
  5. using Net3_Proxy;
  6. using Path = Net3_Proxy.Path;
  7. using File = Net3_Proxy.File;
  8. using Directory = Net3_Proxy.Directory;
  9. #endif
  10. namespace IPA.Injector
  11. {
  12. internal class AntiPiracy
  13. {
  14. public static bool IsInvalid(string path)
  15. {
  16. var dataPlugins = Path.Combine(GameVersionEarly.ResolveDataPath(path), "Plugins");
  17. return
  18. File.Exists(Path.Combine(path, "IGG-GAMES.COM.url")) ||
  19. File.Exists(Path.Combine(path, "SmartSteamEmu.ini")) ||
  20. File.Exists(Path.Combine(path, "GAMESTORRENT.CO.url")) ||
  21. File.Exists(Path.Combine(dataPlugins, "BSteam crack.dll")) ||
  22. File.Exists(Path.Combine(dataPlugins, "HUHUVR_steam_api64.dll")) ||
  23. Directory.GetFiles(BeatSaber.PluginsPath, "*.ini", SearchOption.TopDirectoryOnly).Length > 0;
  24. }
  25. }
  26. }