git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@2049 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
35
OpenRa.Game/Support/Program.cs
Normal file
35
OpenRa.Game/Support/Program.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
static void Run( string[] args )
|
||||
{
|
||||
new MainWindow( new Settings( args ) ).Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user