Update Log to use worker thread

This commit is contained in:
teinarss
2021-01-10 17:12:35 +01:00
committed by Paul Chote
parent fc0ed75a94
commit 605181efe4
5 changed files with 149 additions and 53 deletions

View File

@@ -39,6 +39,18 @@ namespace OpenRA
class Program
{
static void Main(string[] args)
{
try
{
Run(args);
}
finally
{
Log.Dispose();
}
}
static void Run(string[] args)
{
var engineDir = Environment.GetEnvironmentVariable("ENGINE_DIR");
if (!string.IsNullOrEmpty(engineDir))