34 lines
705 B
C#

using System;
using System.Collections.Generic;
using System.Reflection;
using UniversalEditor.UserInterface;
namespace UniversalEditor.ConsoleBootstrapper
{
class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
if (!Engine.Execute())
{
ConsoleColor oldcolor = Console.ForegroundColor;
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("ERROR: No engines are available to launch this application.");
Console.ForegroundColor = oldcolor;
Pause();
}
}
private static void Pause()
{
Console.Write("Press any key to continue . . . ");
Console.ReadKey(true);
}
}
}