Skip mod check if Roblox is running

This commit is contained in:
pizzaboxer 2023-08-23 11:12:48 +01:00
parent 85c19a5e0d
commit 1f86996d7d
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -1041,6 +1041,12 @@ namespace Bloxstrap
{
const string LOG_IDENT = "Bootstrapper::ApplyModifications";
if (Process.GetProcessesByName("RobloxPlayerBeta").Where(x => x.MainModule!.FileName == _playerLocation).Any())
{
App.Logger.WriteLine(LOG_IDENT, "Roblox is running, aborting mod check");
return;
}
SetStatus("Applying Roblox modifications...");
// set executable flags for fullscreen optimizations