LADXHD/Program.cs
2023-12-14 17:21:22 -05:00

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;
}
}
}
}