Skip to content

Commit

Permalink
Update void check (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
WGzeyu authored Nov 18, 2022
1 parent a29617a commit e2b4a63
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ModAssistant/Classes/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,23 @@ public static bool IsVoid()
{
string directory = App.BeatSaberInstallDirectory;
string pluginsDirectory = Path.Combine(directory, "Beat Saber_Data", "Plugins");
string pluginsx86Directory = Path.Combine(directory, "Beat Saber_Data", "Plugins", "x86_64");

if(File.Exists(Path.Combine(pluginsx86Directory, "steam_api64.dll")))
{
string gamesteamapimd5 = Utils.CalculateMD5(Path.Combine(pluginsx86Directory, "steam_api64.dll"));
if(gamesteamapimd5 == "0276b122929fcd74fee949142d65f6a2" || gamesteamapimd5 == "2a905fbd9833970217ae3fe83118929b")
{
return true;
}
}
if (File.Exists(Path.Combine(directory, "IGG-GAMES.COM.url")) ||
File.Exists(Path.Combine(directory, "SmartSteamEmu.ini")) ||
File.Exists(Path.Combine(directory, "GAMESTORRENT.CO.url")) ||
File.Exists(Path.Combine(pluginsDirectory, "BSteam crack.dll")) ||
File.Exists(Path.Combine(pluginsDirectory, "HUHUVR_steam_api64.dll")) ||
File.Exists(Path.Combine(pluginsx86Directory, "171VR_提供破解补丁.txt")) ||
File.Exists(Path.Combine(pluginsx86Directory, "171VR_最全VR游戏下载网站.html")) ||
Directory.GetFiles(pluginsDirectory, "*.ini", SearchOption.TopDirectoryOnly).Where(x => Path.GetFileName(x) != "desktop.ini").Any())
return true;
return false;
Expand Down

0 comments on commit e2b4a63

Please sign in to comment.