sequences for the rest of the buildable buildings, and fixes to make HBOX and MSLO work

- HBOX and MSLO sprites are in temperat/snow mixes with .tem/.sno extensions (and not present in interior)
This commit is contained in:
Bob
2009-10-10 19:30:19 +13:00
parent 4c9bd5c095
commit 4fa05a6d40
5 changed files with 201 additions and 72 deletions

View File

@@ -26,5 +26,20 @@ namespace OpenRa.FileFormats
throw new FileNotFoundException("File not found", filename);
}
public static Stream OpenWithExts( string filename, params string[] exts )
{
foreach( var ext in exts )
{
foreach( IFolder folder in mountedFolders )
{
Stream s = folder.GetContent( filename + ext );
if( s != null )
return s;
}
}
throw new FileNotFoundException( "File not found", filename );
}
}
}