Move Platform.cs to OpenRA.FileFormats, fix #765.

This commit is contained in:
Matthew Bowra-Dean
2011-05-18 20:55:25 +12:00
committed by Chris Forbes
parent 608126483e
commit 20458fc552
11 changed files with 96 additions and 89 deletions

View File

@@ -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));

View File

@@ -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;

View File

@@ -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() {}
}