You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AM2RModPacker/Atomic.Mac/Program.cs

29 lines
796 B

using Eto.Forms;
namespace Atomic.Mac;
class Program
{
[STAThread]
static void Main(string[] args)
{
var application = new Application(Eto.Platforms.macOS);
application.UnhandledException += ApplicationOnUnhandledException;
try
{
application.Run(new ModPacker());
}
catch (Exception e)
{
Console.WriteLine($"Unhandled Exception!\n*****Stack Trace*****\n\n{e}");
}
}
private static void ApplicationOnUnhandledException(object sender, Eto.UnhandledExceptionEventArgs e)
{
Application.Instance.Invoke(() =>
{
MessageBox.Show($"Unhandled Exception!\n*****Stack Trace*****\n\n{e.ExceptionObject}", "GTK", MessageBoxType.Error);
});
}
}