Utility now uses named pipe if passed --pipe. Installing mods now works properly too.
This commit is contained in:
committed by
Paul Chote
parent
da384af339
commit
0c319e88c3
@@ -24,12 +24,14 @@ namespace OpenRA.Launcher
|
||||
{
|
||||
InitializeComponent();
|
||||
quitButton.Click += (o, e) => { Application.Exit(); };
|
||||
var response = UtilityProgram.Call("--settings-value", configPath, "Game.Mods");
|
||||
|
||||
if (response.IsError)
|
||||
currentMods = new string[] { "ra" };
|
||||
else
|
||||
currentMods = response.Response.Split(',');
|
||||
using (var s = UtilityProgram.Call("--settings-value", configPath, "Game.Mods"))
|
||||
{
|
||||
var response = s.ReadToEnd();
|
||||
if (Util.IsError(ref response))
|
||||
currentMods = new string[] { "ra" };
|
||||
else
|
||||
currentMods = response.Split(',');
|
||||
}
|
||||
|
||||
UpdateModLabel();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user