Remove some duplication

This commit is contained in:
Paul Chote
2011-01-22 18:20:41 +13:00
parent 724a72c98e
commit 8e5f307ba8
2 changed files with 30 additions and 39 deletions

View File

@@ -165,7 +165,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
};
if (Info.InstallMode == "ra")
Game.Utilities.CopyRAFiles(path, parseOutput, onComplete);
Game.Utilities.InstallRAFilesAsync(path, parseOutput, onComplete);
else
ShowDownloadError("Installing from CD not supported");
}
@@ -211,7 +211,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
if (!error)
Game.RunAfterTick(() => ContinueLoading(Info));
};
Game.RunAfterTick(() => Game.Utilities.ExtractZipAsync(file, Info.PackagePath, parseOutput, onComplete));
}
};