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

@@ -19,7 +19,6 @@ namespace OpenRA.FileFormats
public static class FileSystem
{
static List<IFolder> mountedFolders = new List<IFolder>();
public static string SupportDir = "."; // Default to "current dir" if we aren't told otherwise
static Cache<uint, List<IFolder>> allFiles = new Cache<uint, List<IFolder>>( _ => new List<IFolder>() );
@@ -77,7 +76,7 @@ namespace OpenRA.FileFormats
// paths starting with ^ are relative to the support dir
if (name.StartsWith("^"))
name = FileSystem.SupportDir+name.Substring(1);
name = Platform.SupportDir+name.Substring(1);
var a = (Action)(() => FileSystem.MountInner(OpenPackage(name)));