git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1299 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
(no author)
2007-07-18 10:42:31 +00:00
parent f06d1aa5d5
commit edf0feb265
8 changed files with 229 additions and 26 deletions

View File

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