Take SpecialPackageRoot into account when installing packages

This commit is contained in:
Paul Chote
2011-01-27 18:48:59 +13:00
parent 817ac42954
commit ef462c5164
3 changed files with 8 additions and 8 deletions

View File

@@ -165,7 +165,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
};
if (Info.InstallMode == "ra")
Game.Utilities.InstallRAFilesAsync(path, parseOutput, onComplete);
Game.Utilities.InstallRAFilesAsync(path, FileSystem.SpecialPackageRoot+Info.PackagePath, 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, FileSystem.SpecialPackageRoot+Info.PackagePath, parseOutput, onComplete));
}
};