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

@@ -24,7 +24,8 @@ namespace OpenRA.FileFormats.Graphics
{
public static Bitmap Load(string filename)
{
return Load(File.OpenRead(filename));
using (var s = File.OpenRead(filename))
return Load(s);
}
public static Bitmap Load(Stream s)