add --shp and --png commands to util

This commit is contained in:
Chris Forbes
2011-05-01 14:43:59 +12:00
parent 9d7ac73410
commit 7923f7d83a
5 changed files with 80 additions and 1 deletions

View File

@@ -174,5 +174,11 @@ namespace OpenRA.FileFormats
{
return GetEnumerator();
}
public static ShpReader Load(string filename)
{
using (var s = File.OpenRead(filename))
return new ShpReader(s);
}
}
}