-
Notifications
You must be signed in to change notification settings - Fork 3
/
Program.cs
33 lines (32 loc) · 910 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Drawing;
using GameLibrary;
using System.Reflection;
using System.Resources;
namespace RisenEditor
{
static class Program
{
[STAThread]
static void Main()
{
try
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
D3DApplication App = new App();
App.CreateDevice();
App.Run();
}
catch (Exception e)
{
string s = e.Message + " Stack trace : " + e.StackTrace;
SystemLog.Append(LogImportance.Direct, s);
SystemLog.Flush();
MessageBox.Show("A critical error has occured, an error message can be found in the log.");
}
}
}
}