mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
add studio constant and update process checks
This commit is contained in:
parent
63ba2608a7
commit
2040dde2fa
@ -15,7 +15,8 @@ namespace Bloxstrap
|
|||||||
{
|
{
|
||||||
public const string ProjectName = "Bloxstrap";
|
public const string ProjectName = "Bloxstrap";
|
||||||
public const string ProjectRepository = "pizzaboxer/bloxstrap";
|
public const string ProjectRepository = "pizzaboxer/bloxstrap";
|
||||||
public const string RobloxAppName = "RobloxPlayerBeta";
|
public const string RobloxPlayerAppName = "RobloxPlayerBeta";
|
||||||
|
public const string RobloxStudioAppName = "RobloxStudioBeta";
|
||||||
|
|
||||||
// used only for communicating between app and menu - use Directories.Base for anything else
|
// used only for communicating between app and menu - use Directories.Base for anything else
|
||||||
public static string BaseDirectory = null!;
|
public static string BaseDirectory = null!;
|
||||||
|
@ -660,7 +660,7 @@ namespace Bloxstrap
|
|||||||
const string LOG_IDENT = "Bootstrapper::Uninstall";
|
const string LOG_IDENT = "Bootstrapper::Uninstall";
|
||||||
|
|
||||||
// prompt to shutdown roblox if its currently running
|
// prompt to shutdown roblox if its currently running
|
||||||
if (Process.GetProcessesByName(App.RobloxAppName).Any())
|
if (Process.GetProcessesByName(App.RobloxPlayerAppName).Any() || Process.GetProcessesByName(App.RobloxStudioAppName).Any())
|
||||||
{
|
{
|
||||||
App.Logger.WriteLine(LOG_IDENT, $"Prompting to shut down all open Roblox instances");
|
App.Logger.WriteLine(LOG_IDENT, $"Prompting to shut down all open Roblox instances");
|
||||||
|
|
||||||
@ -675,13 +675,13 @@ namespace Bloxstrap
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
foreach (Process process in Process.GetProcessesByName("RobloxPlayerBeta"))
|
foreach (Process process in Process.GetProcessesByName(App.RobloxPlayerAppName))
|
||||||
{
|
{
|
||||||
process.CloseMainWindow();
|
process.CloseMainWindow();
|
||||||
process.Close();
|
process.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (Process process in Process.GetProcessesByName("RobloxStudioBeta"))
|
foreach (Process process in Process.GetProcessesByName(App.RobloxStudioAppName))
|
||||||
{
|
{
|
||||||
process.CloseMainWindow();
|
process.CloseMainWindow();
|
||||||
process.Close();
|
process.Close();
|
||||||
@ -938,7 +938,7 @@ namespace Bloxstrap
|
|||||||
// delete any old version folders
|
// delete any old version folders
|
||||||
// we only do this if roblox isnt running just in case an update happened
|
// we only do this if roblox isnt running just in case an update happened
|
||||||
// while they were launching a second instance or something idk
|
// while they were launching a second instance or something idk
|
||||||
if (!Process.GetProcessesByName(App.RobloxAppName).Any())
|
if (!Process.GetProcessesByName(App.RobloxPlayerAppName).Any() && !Process.GetProcessesByName(App.RobloxStudioAppName).Any())
|
||||||
{
|
{
|
||||||
foreach (DirectoryInfo dir in new DirectoryInfo(Paths.Versions).GetDirectories())
|
foreach (DirectoryInfo dir in new DirectoryInfo(Paths.Versions).GetDirectories())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user