Fix "access is denied" error

I LOVE TESTING IN PROD
This commit is contained in:
pizzaboxer 2023-08-25 23:25:08 +01:00
parent 35caf8e730
commit a9b3d43ab2
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -980,7 +980,7 @@ namespace Bloxstrap
{ {
const string LOG_IDENT = "Bootstrapper::ApplyModifications"; const string LOG_IDENT = "Bootstrapper::ApplyModifications";
if (Process.GetProcessesByName("RobloxPlayerBeta").Where(x => x.MainModule!.FileName == _playerLocation).Any()) if (Process.GetProcessesByName("RobloxPlayerBeta").Any())
{ {
App.Logger.WriteLine(LOG_IDENT, "Roblox is running, aborting mod check"); App.Logger.WriteLine(LOG_IDENT, "Roblox is running, aborting mod check");
return; return;