mirror of
https://github.com/Phantop/LADXHD.git
synced 2024-11-24 07:22:50 +00:00
35 lines
908 B
C#
35 lines
908 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)
|
|
{
|
|
System.Windows.Forms.MessageBox.Show(exception.StackTrace, exception.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
|
throw;
|
|
}
|
|
}
|
|
}
|
|
}
|