Fixed TFD Not Creating Install Directory

This commit is contained in:
James
2015-10-08 23:03:40 +01:00
parent b071bcf28c
commit 5000369463
2 changed files with 6 additions and 1 deletions

View File

@@ -443,6 +443,7 @@ namespace OpenRA.FileSystem
public void ExtractFile(uint index, string fileName)
{
Directory.CreateDirectory(Path.GetDirectoryName(fileName));
using (var destfile = File.Open(fileName, FileMode.Create))
GetContentById(index, destfile);
}

View File

@@ -137,7 +137,11 @@ namespace OpenRA.Mods.Common.Widgets.Logic
}
}
afterInstall();
Game.RunAfterTick(() =>
{
Ui.CloseWindow();
afterInstall();
});
}) { IsBackground = true }.Start();
}