Skip to content

Commit

Permalink
Fix a few remaining things
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Sep 9, 2024
1 parent 7a0f50b commit ff387cf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
12 changes: 8 additions & 4 deletions Bloxstrap/Installer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,12 @@ public static void DoUninstall(bool keepData)
const string LOG_IDENT = "Installer::DoUninstall";

var processes = new List<Process>();
processes.AddRange(Process.GetProcessesByName(App.RobloxPlayerAppName));

if (!String.IsNullOrEmpty(App.State.Prop.Player.VersionGuid))
processes.AddRange(Process.GetProcessesByName(App.RobloxPlayerAppName));

#if STUDIO_FEATURES
processes.AddRange(Process.GetProcessesByName(App.RobloxStudioAppName));
#endif
if (!String.IsNullOrEmpty(App.State.Prop.Studio.VersionGuid))
processes.AddRange(Process.GetProcessesByName(App.RobloxStudioAppName));

// prompt to shutdown roblox if its currently running
if (processes.Any())
Expand All @@ -179,7 +180,10 @@ public static void DoUninstall(bool keepData)
);

if (result != MessageBoxResult.OK)
{
App.Terminate(ErrorCode.ERROR_CANCELLED);
return;
}

try
{
Expand Down
8 changes: 7 additions & 1 deletion Bloxstrap/LaunchHandler.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Windows;

using Microsoft.Win32;
using Windows.Win32;
using Windows.Win32.Foundation;

Expand Down Expand Up @@ -43,6 +42,8 @@ public static void ProcessLaunchArgs()
LaunchRoblox();
else if (!App.LaunchSettings.QuietFlag.Active)
LaunchMenu();
else
App.Terminate();
}

public static void LaunchInstaller()
Expand All @@ -52,6 +53,7 @@ public static void LaunchInstaller()
if (!interlock.IsAcquired)
{
Frontend.ShowMessageBox(Strings.Dialog_AlreadyRunning_Installer, MessageBoxImage.Stop);
App.Terminate();
return;
}

Expand Down Expand Up @@ -96,6 +98,7 @@ public static void LaunchUninstaller()
if (!interlock.IsAcquired)
{
Frontend.ShowMessageBox(Strings.Dialog_AlreadyRunning_Uninstaller, MessageBoxImage.Stop);
App.Terminate();
return;
}

Expand All @@ -116,7 +119,10 @@ public static void LaunchUninstaller()
}

if (!confirmed)
{
App.Terminate();
return;
}

Installer.DoUninstall(keepData);

Expand Down
2 changes: 1 addition & 1 deletion Bloxstrap/UI/Elements/Dialogs/ConnectivityDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</Grid.ColumnDefinitions>
<Image x:Name="IconImage" Grid.Column="0" Width="32" Height="32" Margin="0,0,15,0" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Source="pack://application:,,,/Resources/MessageBox/Error.png" />
<StackPanel Grid.Column="1">
<TextBlock x:Name="TitleTextBlock" Text="? is unable to connect to ?" FontSize="18" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<TextBlock x:Name="TitleTextBlock" Text="? is unable to connect to ?" FontSize="18" Foreground="{DynamicResource TextFillColorPrimaryBrush}" TextWrapping="Wrap" />
<controls:MarkdownTextBlock x:Name="DescriptionTextBlock" MarkdownText="?" Margin="0,16,0,0" TextWrapping="Wrap" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<TextBlock Text="{x:Static resources:Strings.Dialog_Connectivity_MoreInfo}" Margin="0,16,0,0" TextWrapping="Wrap" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<RichTextBox x:Name="ErrorRichTextBox" Padding="8" Margin="0,8,0,0" Block.LineHeight="2" FontFamily="Courier New" IsReadOnly="True" />
Expand Down
2 changes: 1 addition & 1 deletion Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</Grid.ColumnDefinitions>
<Image Grid.Column="0" Width="32" Height="32" Margin="0,0,15,0" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Source="pack://application:,,,/Resources/MessageBox/Error.png" />
<StackPanel Grid.Column="1">
<TextBlock Text="{x:Static resources:Strings.Dialog_Exception_Info_1}" FontSize="18" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<TextBlock Text="{x:Static resources:Strings.Dialog_Exception_Info_1}" FontSize="18" Foreground="{DynamicResource TextFillColorPrimaryBrush}" TextWrapping="Wrap" />
<RichTextBox x:Name="ErrorRichTextBox" Padding="8" Margin="0,16,0,0" Block.LineHeight="2" FontFamily="Courier New" IsReadOnly="True" />
<controls:MarkdownTextBlock x:Name="HelpMessageMDTextBlock" Margin="0,16,0,0" TextWrapping="Wrap" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
</StackPanel>
Expand Down

0 comments on commit ff387cf

Please sign in to comment.