Configuration Changes

- Added a check for a valid configuration file when starting the server manager.
If config file is not valid, then it will delete the config file and shutdown the manager, with a message to restart the manager.
This commit is contained in:
Brett Hewitson 2022-07-16 13:50:46 +10:00
parent 9e52ccbaa1
commit 5fff2abc91
14 changed files with 244 additions and 76 deletions

View file

@ -30,7 +30,7 @@ namespace ServerManagerTool
{
var details = new StringBuilder();
details.AppendLine("ARK Server Manager Crash Report");
details.AppendLine("Please report this crash to the Ark Server Manager forums - https://arkservermanager.freeforums.net");
details.AppendLine($"Please report this crash to the Server Manager discord - {Config.Default.DiscordUrl}");
details.AppendLine();
details.AppendLine($"Assembly: {Assembly.GetExecutingAssembly()}");
@ -64,7 +64,7 @@ namespace ServerManagerTool
message.AppendLine($"Crash Dump: {crashFile}");
details.AppendLine();
details.AppendLine();
message.AppendLine("Please report this crash to the Ark Server Manager forums - https://arkservermanager.freeforums.net");
message.AppendLine($"Please report this crash to the Server Manager discord - {Config.Default.DiscordUrl}");
message.AppendLine("The crash log will now be opened in notepad.");
var result = MessageBox.Show(message.ToString(), "ARK Server Manager crashed", MessageBoxButton.OK, MessageBoxImage.Exclamation);