git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1299 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -10,14 +10,15 @@ namespace OpenRa.Game
|
||||
[STAThread]
|
||||
static void Main( string[] args )
|
||||
{
|
||||
if( System.Diagnostics.Debugger.IsAttached )
|
||||
{
|
||||
Run( args );
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault( false );
|
||||
|
||||
Settings settings = new Settings(args);
|
||||
|
||||
new MainWindow( settings ).Run();
|
||||
Run( args );
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
@@ -26,5 +27,15 @@ namespace OpenRa.Game
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
private static void Run( string[] args )
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault( false );
|
||||
|
||||
Settings settings = new Settings( args );
|
||||
|
||||
new MainWindow( settings ).Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user