Contingency fix

😭😭😭why😭😭😭
This commit is contained in:
pizzaboxer 2023-09-25 18:10:34 +01:00
parent a6d5d9968d
commit 5649b464e9
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -306,9 +306,16 @@ namespace Bloxstrap
// whether we should wait for roblox to exit to handle stuff in the background or clean up after roblox closes // whether we should wait for roblox to exit to handle stuff in the background or clean up after roblox closes
bool shouldWait = false; bool shouldWait = false;
var startInfo = new ProcessStartInfo()
{
FileName = _playerLocation,
Arguments = _launchCommandLine,
WorkingDirectory = _versionFolder
};
// v2.2.0 - byfron will trip if we keep a process handle open for over a minute, so we're doing this now // v2.2.0 - byfron will trip if we keep a process handle open for over a minute, so we're doing this now
int gameClientPid; int gameClientPid;
using (Process gameClient = Process.Start(_playerLocation, _launchCommandLine)) using (Process gameClient = Process.Start(startInfo)!)
{ {
gameClientPid = gameClient.Id; gameClientPid = gameClient.Id;
} }