git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1067 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -7,16 +7,16 @@ namespace OpenRa.Core
|
|||||||
{
|
{
|
||||||
public static class FileSystem
|
public static class FileSystem
|
||||||
{
|
{
|
||||||
static List<IMountable> packages = new List<IMountable>();
|
static List<IPackage> packages = new List<IPackage>();
|
||||||
|
|
||||||
public static void Mount(IMountable package)
|
public static void Mount(IPackage package)
|
||||||
{
|
{
|
||||||
packages.Add(package);
|
packages.Add(package);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static Stream GetItem(string filename)
|
internal static Stream GetItem(string filename)
|
||||||
{
|
{
|
||||||
foreach (IMountable package in packages)
|
foreach (IPackage package in packages)
|
||||||
{
|
{
|
||||||
Stream s = package.GetItem(filename);
|
Stream s = package.GetItem(filename);
|
||||||
if (s != null)
|
if (s != null)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using System.IO;
|
|||||||
|
|
||||||
namespace OpenRa.Core
|
namespace OpenRa.Core
|
||||||
{
|
{
|
||||||
public interface IMountable
|
public interface IPackage
|
||||||
{
|
{
|
||||||
Stream GetItem(string filename);
|
Stream GetItem(string filename);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user