mirror of
https://github.com/Phantop/LADXHD.git
synced 2024-10-31 20:04:18 +00:00
34 lines
885 B
C#
34 lines
885 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
} |