forked from ihm-tswow/Links-Awakening-DX-HD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
34 lines (31 loc) · 852 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
34
using System;
using System.Windows.Forms;
namespace ProjectZ
{
public static class Program
{
[STAThread]
static void Main(string[] args)
{
var editorMode = false;
var loadFirstSave = false;
foreach (var arg in args)
{
if (arg == "editor")
editorMode = true;
else if (arg == "loadSave")
loadFirstSave = true;
}
try
{
using (var game = new Game1(editorMode, loadFirstSave))
game.Run();
}
catch (Exception exception)
{
MessageBox.Show(exception.StackTrace, exception.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
throw;
}
}
}
}