mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Fix release error (also better name for it lol)
This commit is contained in:
parent
ff2bcbf1e2
commit
02f90fd196
@ -97,7 +97,7 @@ namespace Bloxstrap
|
||||
_showingExceptionDialog = true;
|
||||
|
||||
if (!IsQuiet)
|
||||
Controls.ShowExceptionDialog(exception);
|
||||
Frontend.ShowExceptionDialog(exception);
|
||||
|
||||
Terminate(ErrorCode.ERROR_INSTALL_FAILURE);
|
||||
#endif
|
||||
@ -212,12 +212,12 @@ namespace Bloxstrap
|
||||
else
|
||||
{
|
||||
if (Process.GetProcessesByName(ProjectName).Length > 1 && !IsQuiet)
|
||||
Methods.ShowMessageBox(
|
||||
Frontend.ShowMessageBox(
|
||||
Bloxstrap.Resources.Strings.Menu_AlreadyRunning,
|
||||
MessageBoxImage.Information
|
||||
);
|
||||
|
||||
Methods.ShowMenu();
|
||||
Frontend.ShowMenu();
|
||||
}
|
||||
}
|
||||
else if (LaunchArgs.Length > 0)
|
||||
@ -231,7 +231,7 @@ namespace Bloxstrap
|
||||
else if (LaunchArgs[0].StartsWith("roblox:"))
|
||||
{
|
||||
if (Settings.Prop.UseDisableAppPatch)
|
||||
Methods.ShowMessageBox(
|
||||
Frontend.ShowMessageBox(
|
||||
Bloxstrap.Resources.Strings.Bootstrapper_DeeplinkTempEnabled,
|
||||
MessageBoxImage.Information
|
||||
);
|
||||
|
@ -157,7 +157,7 @@ namespace Bloxstrap
|
||||
else if (ex.GetType() == typeof(AggregateException))
|
||||
ex = ex.InnerException!;
|
||||
|
||||
Methods.ShowConnectivityDialog("Roblox", message, ex);
|
||||
Frontend.ShowConnectivityDialog("Roblox", message, ex);
|
||||
|
||||
App.Terminate(ErrorCode.ERROR_CANCELLED);
|
||||
}
|
||||
@ -262,7 +262,7 @@ namespace Bloxstrap
|
||||
{
|
||||
MessageBoxResult action = App.Settings.Prop.ChannelChangeMode switch
|
||||
{
|
||||
ChannelChangeMode.Prompt => Methods.ShowMessageBox(
|
||||
ChannelChangeMode.Prompt => Frontend.ShowMessageBox(
|
||||
string.Format(Resources.Strings.Bootstrapper_ChannelOutOfDate, App.Settings.Prop.Channel, RobloxDeployment.DefaultChannel),
|
||||
MessageBoxImage.Warning,
|
||||
MessageBoxButton.YesNo
|
||||
@ -301,7 +301,7 @@ namespace Bloxstrap
|
||||
|
||||
if (!File.Exists(Path.Combine(Paths.System, "mfplat.dll")))
|
||||
{
|
||||
Methods.ShowMessageBox(
|
||||
Frontend.ShowMessageBox(
|
||||
Resources.Strings.Bootstrapper_WMFNotFound,
|
||||
MessageBoxImage.Error
|
||||
);
|
||||
@ -674,7 +674,7 @@ namespace Bloxstrap
|
||||
App.Logger.WriteLine(LOG_IDENT, "An exception occurred when running the auto-updater");
|
||||
App.Logger.WriteException(LOG_IDENT, ex);
|
||||
|
||||
Methods.ShowMessageBox(
|
||||
Frontend.ShowMessageBox(
|
||||
string.Format(Resources.Strings.Bootstrapper_AutoUpdateFailed, releaseInfo.TagName),
|
||||
MessageBoxImage.Information
|
||||
);
|
||||
@ -690,7 +690,7 @@ namespace Bloxstrap
|
||||
{
|
||||
App.Logger.WriteLine(LOG_IDENT, $"Prompting to shut down all open Roblox instances");
|
||||
|
||||
MessageBoxResult result = Methods.ShowMessageBox(
|
||||
MessageBoxResult result = Frontend.ShowMessageBox(
|
||||
Resources.Strings.Bootstrapper_Uninstall_RobloxRunning,
|
||||
MessageBoxImage.Information,
|
||||
MessageBoxButton.OKCancel
|
||||
@ -864,7 +864,7 @@ namespace Bloxstrap
|
||||
|
||||
if (Filesystem.GetFreeDiskSpace(Paths.Base) < totalSizeRequired)
|
||||
{
|
||||
Methods.ShowMessageBox(
|
||||
Frontend.ShowMessageBox(
|
||||
Resources.Strings.Bootstrapper_NotEnoughSpace,
|
||||
MessageBoxImage.Error
|
||||
);
|
||||
@ -1059,7 +1059,7 @@ namespace Bloxstrap
|
||||
|
||||
if (File.Exists(injectorLocation))
|
||||
{
|
||||
Methods.ShowMessageBox(
|
||||
Frontend.ShowMessageBox(
|
||||
Resources.Strings.Bootstrapper_HyperionUpdateInfo,
|
||||
MessageBoxImage.Warning
|
||||
);
|
||||
|
@ -2,6 +2,6 @@
|
||||
{
|
||||
static class BootstrapperStyleEx
|
||||
{
|
||||
public static IBootstrapperDialog GetNew(this BootstrapperStyle bootstrapperStyle) => Methods.GetBootstrapperDialog(bootstrapperStyle);
|
||||
public static IBootstrapperDialog GetNew(this BootstrapperStyle bootstrapperStyle) => Frontend.GetBootstrapperDialog(bootstrapperStyle);
|
||||
}
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ namespace Bloxstrap
|
||||
|
||||
_installLocation = Path.GetDirectoryName(Paths.Process)!;
|
||||
|
||||
var result = Methods.ShowMessageBox(
|
||||
var result = Frontend.ShowMessageBox(
|
||||
string.Format(Resources.Strings.InstallChecker_NotInstalledProperly, _installLocation),
|
||||
MessageBoxImage.Warning,
|
||||
MessageBoxButton.YesNo
|
||||
@ -74,7 +74,7 @@ namespace Bloxstrap
|
||||
{
|
||||
App.Logger.WriteLine(LOG_IDENT, $"Drive has changed from {driveName} to {newDriveName}");
|
||||
|
||||
Methods.ShowMessageBox(
|
||||
Frontend.ShowMessageBox(
|
||||
string.Format(Resources.Strings.InstallChecker_DriveLetterChangeDetected, driveName, newDriveName),
|
||||
MessageBoxImage.Warning,
|
||||
MessageBoxButton.OK
|
||||
@ -87,7 +87,7 @@ namespace Bloxstrap
|
||||
{
|
||||
App.Logger.WriteLine(LOG_IDENT, $"Drive {driveName} does not exist anymore, and has likely been removed");
|
||||
|
||||
var result = Methods.ShowMessageBox(
|
||||
var result = Frontend.ShowMessageBox(
|
||||
string.Format(Resources.Strings.InstallChecker_InstallDriveMissing, driveName),
|
||||
MessageBoxImage.Warning,
|
||||
MessageBoxButton.OKCancel
|
||||
@ -130,7 +130,7 @@ namespace Bloxstrap
|
||||
App.IsSetupComplete = false;
|
||||
|
||||
App.FastFlags.Load();
|
||||
Methods.ShowMenu();
|
||||
Frontend.ShowMenu();
|
||||
|
||||
// exit if we don't click the install button on installation
|
||||
if (App.IsSetupComplete)
|
||||
@ -165,7 +165,7 @@ namespace Bloxstrap
|
||||
}
|
||||
else
|
||||
{
|
||||
result = Methods.ShowMessageBox(
|
||||
result = Frontend.ShowMessageBox(
|
||||
Resources.Strings.InstallChecker_VersionDifferentThanInstalled,
|
||||
MessageBoxImage.Question,
|
||||
MessageBoxButton.YesNo
|
||||
@ -240,13 +240,13 @@ namespace Bloxstrap
|
||||
}
|
||||
else if (!App.IsQuiet)
|
||||
{
|
||||
Methods.ShowMessageBox(
|
||||
Frontend.ShowMessageBox(
|
||||
string.Format(Resources.Strings.InstallChecker_Updated, currentVersionInfo.ProductVersion),
|
||||
MessageBoxImage.Information,
|
||||
MessageBoxButton.OK
|
||||
);
|
||||
|
||||
Methods.ShowMenu();
|
||||
Frontend.ShowMenu();
|
||||
|
||||
App.Terminate();
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ namespace Bloxstrap
|
||||
if (channel == App.State.Prop.LastEnrolledChannel)
|
||||
return;
|
||||
|
||||
MessageBoxResult result = Methods.ShowMessageBox(
|
||||
MessageBoxResult result = Frontend.ShowMessageBox(
|
||||
string.Format(Resources.Strings.ProtocolHandler_RobloxSwitchedChannel, channel, App.Settings.Prop.Channel),
|
||||
MessageBoxImage.Question,
|
||||
MessageBoxButton.YesNo
|
||||
|
@ -6,7 +6,7 @@ namespace Bloxstrap.UI.Elements.Bootstrapper.Base
|
||||
{
|
||||
public static void ShowSuccess(string message, Action? callback)
|
||||
{
|
||||
Methods.ShowMessageBox(message, MessageBoxImage.Information);
|
||||
Frontend.ShowMessageBox(message, MessageBoxImage.Information);
|
||||
|
||||
if (callback is not null)
|
||||
callback();
|
||||
|
@ -126,7 +126,7 @@ namespace Bloxstrap.UI.Elements.ContextMenu
|
||||
|
||||
private void CloseRobloxMenuItem_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MessageBoxResult result = Methods.ShowMessageBox(
|
||||
MessageBoxResult result = Frontend.ShowMessageBox(
|
||||
Bloxstrap.Resources.Strings.ContextMenu_CloseRobloxMessage,
|
||||
MessageBoxImage.Warning,
|
||||
MessageBoxButton.YesNo
|
||||
|
@ -122,7 +122,7 @@ namespace Bloxstrap.UI.Elements.Menu.Pages
|
||||
|
||||
if (App.FastFlags.GetValue(newName) is not null)
|
||||
{
|
||||
Methods.ShowMessageBox("A FastFlag with this name already exists.", MessageBoxImage.Information);
|
||||
Frontend.ShowMessageBox("A FastFlag with this name already exists.", MessageBoxImage.Information);
|
||||
e.Cancel = true;
|
||||
textbox.Text = oldName;
|
||||
return;
|
||||
@ -181,7 +181,7 @@ namespace Bloxstrap.UI.Elements.Menu.Pages
|
||||
}
|
||||
else
|
||||
{
|
||||
Methods.ShowMessageBox("An entry for this FastFlag already exists.", MessageBoxImage.Information);
|
||||
Frontend.ShowMessageBox("An entry for this FastFlag already exists.", MessageBoxImage.Information);
|
||||
|
||||
bool refresh = false;
|
||||
|
||||
@ -256,7 +256,7 @@ namespace Bloxstrap.UI.Elements.Menu.Pages
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Methods.ShowMessageBox(
|
||||
Frontend.ShowMessageBox(
|
||||
"The JSON you've entered does not appear to be valid. Please double check it and try again.\n" +
|
||||
"\n" +
|
||||
"More information:\n" +
|
||||
@ -271,7 +271,7 @@ namespace Bloxstrap.UI.Elements.Menu.Pages
|
||||
|
||||
if (conflictingFlags.Any())
|
||||
{
|
||||
var result = Methods.ShowMessageBox(
|
||||
var result = Frontend.ShowMessageBox(
|
||||
"Some of the flags you are attempting to import already have set values. Would you like to overwrite their current values with the ones defined in the import?\n" +
|
||||
"\n" +
|
||||
"Conflicting flags:\n" +
|
||||
|
@ -6,7 +6,7 @@ using Bloxstrap.UI.Elements.Menu;
|
||||
|
||||
namespace Bloxstrap.UI
|
||||
{
|
||||
static class Methods
|
||||
static class Frontend
|
||||
{
|
||||
public static void ShowMenu() => new MainWindow().ShowDialog();
|
||||
|
@ -42,7 +42,7 @@ namespace Bloxstrap.UI.ViewModels.Menu
|
||||
|
||||
if (string.IsNullOrEmpty(App.BaseDirectory))
|
||||
{
|
||||
Methods.ShowMessageBox(Resources.Strings.Menu_InstallLocation_NotSet, MessageBoxImage.Error);
|
||||
Frontend.ShowMessageBox(Resources.Strings.Menu_InstallLocation_NotSet, MessageBoxImage.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -59,7 +59,7 @@ namespace Bloxstrap.UI.ViewModels.Menu
|
||||
}
|
||||
catch (UnauthorizedAccessException)
|
||||
{
|
||||
Methods.ShowMessageBox(
|
||||
Frontend.ShowMessageBox(
|
||||
Resources.Strings.Menu_InstallLocation_NoWritePerms,
|
||||
MessageBoxImage.Error
|
||||
);
|
||||
@ -67,7 +67,7 @@ namespace Bloxstrap.UI.ViewModels.Menu
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Methods.ShowMessageBox(ex.Message, MessageBoxImage.Error);
|
||||
Frontend.ShowMessageBox(ex.Message, MessageBoxImage.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ namespace Bloxstrap.UI.ViewModels.Menu
|
||||
{
|
||||
string suggestedChange = Path.Combine(App.BaseDirectory, App.ProjectName);
|
||||
|
||||
MessageBoxResult result = Methods.ShowMessageBox(
|
||||
MessageBoxResult result = Frontend.ShowMessageBox(
|
||||
string.Format(Resources.Strings.Menu_InstallLocation_NotEmpty, suggestedChange),
|
||||
MessageBoxImage.Warning,
|
||||
MessageBoxButton.YesNoCancel,
|
||||
@ -95,7 +95,7 @@ namespace Bloxstrap.UI.ViewModels.Menu
|
||||
Directory.GetParent(App.BaseDirectory)!.ToString().ToLowerInvariant() == Paths.UserProfile.ToLowerInvariant() // prevent from installing to an essential user profile folder
|
||||
)
|
||||
{
|
||||
Methods.ShowMessageBox(
|
||||
Frontend.ShowMessageBox(
|
||||
Resources.Strings.Menu_InstallLocation_CantInstall,
|
||||
MessageBoxImage.Error,
|
||||
MessageBoxButton.OK
|
||||
|
@ -30,7 +30,7 @@ namespace Bloxstrap.Utility
|
||||
|
||||
_loadStatus = AssemblyLoadStatus.Failed;
|
||||
|
||||
Methods.ShowMessageBox(
|
||||
Frontend.ShowMessageBox(
|
||||
$"{App.ProjectName} was unable to create shortcuts for the Desktop and Start menu. They will be created the next time Roblox is launched.",
|
||||
MessageBoxImage.Information
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user