diff --git a/OpenRA.FileFormats/FileSystem/FileSystem.cs b/OpenRA.FileFormats/FileSystem/FileSystem.cs index 886f308046..6046908e67 100644 --- a/OpenRA.FileFormats/FileSystem/FileSystem.cs +++ b/OpenRA.FileFormats/FileSystem/FileSystem.cs @@ -19,8 +19,8 @@ namespace OpenRA.FileFormats public static class FileSystem { public static List MountedFolders = new List(); - static Cache> classicHashIndex = new Cache>( _ => new List() ); - static Cache> crcHashIndex = new Cache>( _ => new List() ); + static Cache> classicHashIndex = new Cache>(_ => new List()); + static Cache> crcHashIndex = new Cache>(_ => new List()); public static List FolderPaths = new List(); @@ -89,11 +89,12 @@ namespace OpenRA.FileFormats public static void Mount(string name, string annotation) { var optional = name.StartsWith("~"); - if (optional) name = name.Substring(1); + if (optional) + name = name.Substring(1); // paths starting with ^ are relative to the support dir if (name.StartsWith("^")) - name = Platform.SupportDir+name.Substring(1); + name = Platform.SupportDir + name.Substring(1); FolderPaths.Add(name); Action a = () => FileSystem.MountInner(OpenPackage(name, annotation, order++)); @@ -115,7 +116,7 @@ namespace OpenRA.FileFormats public static bool Unmount(IFolder mount) { - return (MountedFolders.RemoveAll(f => f == mount) > 0); + return MountedFolders.RemoveAll(f => f == mount) > 0; } public static void Mount(IFolder mount) @@ -151,7 +152,7 @@ namespace OpenRA.FileFormats public static Stream OpenWithExts(string filename, params string[] exts) { - if (filename.IndexOfAny(new char[] { '/', '\\' } ) == -1) + if (filename.IndexOfAny(new char[] { '/', '\\' }) == -1) { foreach (var ext in exts) {