Files
OpenRA/OpenRa.FileFormats/Folder.cs
2009-12-05 14:23:59 +13:00

18 lines
310 B
C#

using System.IO;
namespace OpenRa.FileFormats
{
public class Folder : IFolder
{
readonly string path;
public Folder(string path) { this.path = path; }
public Stream GetContent(string filename)
{
try { return File.OpenRead(path + filename); }
catch { return null; }
}
}
}