Save packages to the support dir by default, but continue to support mods/*/packages
This commit is contained in:
@@ -101,7 +101,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
|
||||
|
||||
if (Info.InstallMode != "ra")
|
||||
ShowDownloadError(window, "Installing from CD not supported");
|
||||
else if (InstallRAPackages(window, path, FileSystem.SpecialPackageRoot+Info.PackagePath))
|
||||
else if (InstallRAPackages(window, path, Info.ResolvedPackagePath))
|
||||
Game.RunAfterTick(ContinueLoading);
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
|
||||
status.GetText = () => "Extracting...";
|
||||
progress.Indeterminate = true;
|
||||
|
||||
if (ExtractZip(window, file, FileSystem.SpecialPackageRoot+Info.PackagePath))
|
||||
if (ExtractZip(window, file, Info.ResolvedPackagePath))
|
||||
Game.RunAfterTick(ContinueLoading);
|
||||
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
using OpenRA.Widgets;
|
||||
using System;
|
||||
using OpenRA.Mods.RA.Widgets.Delegates;
|
||||
using System.IO;
|
||||
|
||||
namespace OpenRA.Mods.RA.Widgets
|
||||
{
|
||||
@@ -21,6 +22,8 @@ namespace OpenRA.Mods.RA.Widgets
|
||||
public string PackageURL = "";
|
||||
public string PackagePath = "";
|
||||
public string InstallMode = "";
|
||||
|
||||
public string ResolvedPackagePath { get { return PackagePath.Replace("^", Game.SupportDir); } }
|
||||
|
||||
public override void DrawInner() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user