This commit is contained in:
Chris Forbes
2011-01-07 20:38:29 +13:00
parent e46b00f9c4
commit 712eb437ea

View File

@@ -55,7 +55,7 @@ namespace OpenRA.Launcher
modList.Add(m);
if (!allMods.ContainsKey(m))
{
System.Windows.Forms.MessageBox.Show("allMods does not contain " + m);
MessageBox.Show("allMods does not contain " + m);
return false;
}
while (!string.IsNullOrEmpty(allMods[m].Requires))
@@ -174,11 +174,11 @@ namespace OpenRA.Launcher
var p = UtilityProgram.Call("--download-url", pipename,
(_, e) =>
{
using (var reader = new StreamReader(pipe))
{
var data = reader.ReadToEnd();
document.InvokeScript(callbackName, new object[] { data });
Form.ActiveForm.Invoke((Delegate)(Action)(() =>
document.InvokeScript(callbackName, new object[] { data })));
}
}, url);