now that we inherit from EditorApplication (defined in UniversalEditor.UserInterface.dll), this check is useless and doesn't work if the DLL is missing

This commit is contained in:
Michael Becker 2022-03-21 00:04:03 -04:00
parent 1f96edaef5
commit 3eaf148e31
No known key found for this signature in database
GPG Key ID: DA394832305DA332

View File

@ -42,21 +42,6 @@ namespace UniversalEditor.Bootstrapper
[STAThread]
static void Main()
{
try
{
string path =
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)
+ System.IO.Path.DirectorySeparatorChar.ToString()
+ "UniversalEditor.UserInterface.dll";
Assembly asm = System.Reflection.Assembly.LoadFile(path);
}
catch
{
MessageDialog.ShowDialog("The file 'UniversalEditor.UserInterface.dll' is required for this software to run, but is either missing or corrupted. Please re-install the software and try again.", "Error", MessageDialogButtons.OK, MessageDialogIcon.Error);
return;
}
(new Program()).Start();
}
}