33 lines
458 B
C#
33 lines
458 B
C#
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace OpenRa
|
|
{
|
|
static class Program
|
|
{
|
|
[STAThread]
|
|
static void Main( string[] args )
|
|
{
|
|
if( 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();
|
|
}
|
|
}
|
|
} |