Fixed TFD Not Creating Install Directory
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -137,7 +137,11 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
}
|
||||
}
|
||||
|
||||
afterInstall();
|
||||
Game.RunAfterTick(() =>
|
||||
{
|
||||
Ui.CloseWindow();
|
||||
afterInstall();
|
||||
});
|
||||
}) { IsBackground = true }.Start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user