Move Platform.cs to OpenRA.FileFormats, fix #765.
This commit is contained in:
committed by
Chris Forbes
parent
608126483e
commit
20458fc552
@@ -97,7 +97,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
|
||||
void InstallMapInner(string path)
|
||||
{
|
||||
var toPath = "{0}{1}maps{1}{2}{1}{3}"
|
||||
.F(Game.SupportDir,Path.DirectorySeparatorChar,
|
||||
.F(Platform.SupportDir,Path.DirectorySeparatorChar,
|
||||
Game.modData.Manifest.Mods[0],
|
||||
Path.GetFileName(path));
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
|
||||
|
||||
/* find some replays? */
|
||||
var rl = widget.GetWidget<ScrollPanelWidget>("REPLAY_LIST");
|
||||
var replayDir = Path.Combine(Game.SupportDir, "Replays");
|
||||
var replayDir = Path.Combine(Platform.SupportDir, "Replays");
|
||||
|
||||
var template = widget.GetWidget<LabelWidget>("REPLAY_TEMPLATE");
|
||||
CurrentReplay = null;
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace OpenRA.Mods.RA.Widgets
|
||||
public string PackagePath = "";
|
||||
public string InstallMode = "";
|
||||
|
||||
public string ResolvedPackagePath { get { return PackagePath.Replace("^", Game.SupportDir); } }
|
||||
public string ResolvedPackagePath { get { return PackagePath.Replace("^", Platform.SupportDir); } }
|
||||
|
||||
public override void DrawInner() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user