Merge pull request #9622 from DSUK/test_fix

Fixed TFD Installation.
This commit is contained in:
Pavel Penev
2015-10-13 10:48:42 +03:00
3 changed files with 7 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ Also thanks to:
* Iran
* Jacob Dufault (jacobdufault)
* James Dunne (jsd)
* James Gilbert (DSUK)
* Jan-Willem Buurlage (jwbuurlage)
* Jason (atlimit8)
* Jeff Harris (jeff_1amstudios)

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