diff --git a/Applications/UniversalEditor.Bootstrapper/Program.cs b/Applications/UniversalEditor.Bootstrapper/Program.cs
index aead2279..c59ed387 100644
--- a/Applications/UniversalEditor.Bootstrapper/Program.cs
+++ b/Applications/UniversalEditor.Bootstrapper/Program.cs
@@ -28,8 +28,13 @@ using UniversalEditor.UserInterface;
namespace UniversalEditor.Bootstrapper
{
- static class Program
+ public class Program : EditorApplication
{
+ public Program()
+ {
+ ShortName = "universal-editor";
+ }
+
///
/// The main entry point for the application.
///
@@ -51,23 +56,7 @@ namespace UniversalEditor.Bootstrapper
return;
}
- // why do we do this? because, if the class was static, it tries to load the 'Engine' type
- // from another library immediately... if it can't be found, it crashes. this way, if it
- // can't be found, we can still catch it since it's loaded on-demand rather than
- // immediately.
- (new BootstrapperInstance()).Main();
- }
-
- private class BootstrapperInstance
- {
- public void Main()
- {
- if (!Engine.Execute())
- {
- MessageDialog.ShowDialog("No engines are available to launch this application.", "Error", MessageDialogButtons.OK, MessageDialogIcon.Error);
- return;
- }
- }
+ (new Program()).Start();
}
}
}
diff --git a/Applications/UniversalEditor.Bootstrapper/UniversalEditor.Bootstrapper.csproj b/Applications/UniversalEditor.Bootstrapper/UniversalEditor.Bootstrapper.csproj
index f2bc04b6..49b5bacc 100644
--- a/Applications/UniversalEditor.Bootstrapper/UniversalEditor.Bootstrapper.csproj
+++ b/Applications/UniversalEditor.Bootstrapper/UniversalEditor.Bootstrapper.csproj
@@ -68,6 +68,10 @@
{29E1C1BB-3EA5-4062-B62F-85EEC703FE07}
MBS.Framework.UserInterface
+
+ {00266B21-35C9-4A7F-A6BA-D54D7FDCC25C}
+ MBS.Framework
+
diff --git a/Applications/UniversalEditor.ConsoleBootstrapper/Program.cs b/Applications/UniversalEditor.ConsoleBootstrapper/Program.cs
index 9f9da3b0..2db8afd1 100644
--- a/Applications/UniversalEditor.ConsoleBootstrapper/Program.cs
+++ b/Applications/UniversalEditor.ConsoleBootstrapper/Program.cs
@@ -5,7 +5,7 @@ using UniversalEditor.UserInterface;
namespace UniversalEditor.ConsoleBootstrapper
{
- class Program
+ public class Program : EditorApplication
{
///
/// The main entry point for the application.
@@ -13,7 +13,8 @@ namespace UniversalEditor.ConsoleBootstrapper
[STAThread]
static void Main()
{
- if (!Engine.Execute())
+ int exitCode = (new Program()).Start();
+ if (exitCode != 0)
{
ConsoleColor oldcolor = Console.ForegroundColor;
Console.ForegroundColor = ConsoleColor.Red;
diff --git a/Applications/UniversalEditor.ConsoleBootstrapper/UniversalEditor.ConsoleBootstrapper.csproj b/Applications/UniversalEditor.ConsoleBootstrapper/UniversalEditor.ConsoleBootstrapper.csproj
index 095e7d2a..4a55e336 100644
--- a/Applications/UniversalEditor.ConsoleBootstrapper/UniversalEditor.ConsoleBootstrapper.csproj
+++ b/Applications/UniversalEditor.ConsoleBootstrapper/UniversalEditor.ConsoleBootstrapper.csproj
@@ -63,6 +63,14 @@
{30467E5C-05BC-4856-AADC-13906EF4CADD}
UniversalEditor.Essential
+
+ {00266B21-35C9-4A7F-A6BA-D54D7FDCC25C}
+ MBS.Framework
+
+
+ {29E1C1BB-3EA5-4062-B62F-85EEC703FE07}
+ MBS.Framework.UserInterface
+