Utility now uses named pipe if passed --pipe. Installing mods now works properly too.

This commit is contained in:
Matthew Bowra-Dean
2010-11-05 15:24:32 +13:00
committed by Paul Chote
parent da384af339
commit 0c319e88c3
7 changed files with 77 additions and 33 deletions

View File

@@ -30,7 +30,7 @@ namespace OpenRA.Launcher
private void button2_Click(object sender, EventArgs e)
{
UtilityProgramResponse response = null;
StreamReader response = null;
if (radioButton1.Checked)
response = UtilityProgram.CallWithAdmin("--download-packages", mod);
@@ -41,11 +41,13 @@ namespace OpenRA.Launcher
folderBrowserDialog1.SelectedPath + Path.DirectorySeparatorChar);
}
if (response.IsError)
string s = response.ReadToEnd();
if (Util.IsError(ref s))
DialogResult = DialogResult.No;
else
DialogResult = DialogResult.OK;
response.Close();
Close();
}
}