18 lines
310 B
C#
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; }
|
|
}
|
|
}
|
|
}
|