Files
OpenRA/OpenRa.Game/Program.cs
(no author) cd70038a3c less ../../../
git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1355 993157c7-ee19-0410-b2c4-bb4e9862e678
2007-07-26 08:20:39 +00:00

40 lines
681 B
C#

using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.IO;
namespace OpenRa.Game
{
static class Program
{
[STAThread]
static void Main( string[] args )
{
if( System.Diagnostics.Debugger.IsAttached )
{
Run( args );
return;
}
try
{
Run( args );
}
catch( Exception e )
{
Log.Write( "{0}", e.ToString() );
throw;
}
}
private static void Run( string[] args )
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault( false );
Settings settings = new Settings( args );
new MainWindow( settings ).Run();
}
}
}