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