From 5684bcec1cfd2a99e44f8504e8b0ab2a8b278e68 Mon Sep 17 00:00:00 2001 From: Pavel Penev Date: Fri, 9 Oct 2015 13:05:59 +0300 Subject: [PATCH] Move IFolder out of GlobalFileSystem.cs --- OpenRA.Game/FileSystem/GlobalFileSystem.cs | 12 ---------- OpenRA.Game/FileSystem/IFolder.cs | 28 ++++++++++++++++++++++ 2 files changed, 28 insertions(+), 12 deletions(-) create mode 100644 OpenRA.Game/FileSystem/IFolder.cs diff --git a/OpenRA.Game/FileSystem/GlobalFileSystem.cs b/OpenRA.Game/FileSystem/GlobalFileSystem.cs index 89813d345f..255e7e1bb3 100644 --- a/OpenRA.Game/FileSystem/GlobalFileSystem.cs +++ b/OpenRA.Game/FileSystem/GlobalFileSystem.cs @@ -17,18 +17,6 @@ using OpenRA.Primitives; namespace OpenRA.FileSystem { - public interface IFolder : IDisposable - { - Stream GetContent(string filename); - bool Exists(string filename); - IEnumerable ClassicHashes(); - IEnumerable CrcHashes(); - IEnumerable AllFileNames(); - void Write(Dictionary contents); - int Priority { get; } - string Name { get; } - } - public static class GlobalFileSystem { public static List MountedFolders = new List(); diff --git a/OpenRA.Game/FileSystem/IFolder.cs b/OpenRA.Game/FileSystem/IFolder.cs new file mode 100644 index 0000000000..fa5aa4df87 --- /dev/null +++ b/OpenRA.Game/FileSystem/IFolder.cs @@ -0,0 +1,28 @@ +#region Copyright & License Information +/* + * Copyright 2007-2015 The OpenRA Developers (see AUTHORS) + * This file is part of OpenRA, which is free software. It is made + * available to you under the terms of the GNU General Public License + * as published by the Free Software Foundation. For more information, + * see COPYING. + */ +#endregion + +using System; +using System.Collections.Generic; +using System.IO; + +namespace OpenRA.FileSystem +{ + public interface IFolder : IDisposable + { + Stream GetContent(string filename); + bool Exists(string filename); + IEnumerable ClassicHashes(); + IEnumerable CrcHashes(); + IEnumerable AllFileNames(); + void Write(Dictionary contents); + int Priority { get; } + string Name { get; } + } +}