Load the load screen images from the virtual filesystem.

This commit is contained in:
Paul Chote
2016-02-07 16:18:55 +00:00
parent 79b039d8b9
commit f8992991f5
4 changed files with 4 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ namespace OpenRA.Mods.Common.LoadScreens
if (info.ContainsKey("Image"))
{
using (var stream = File.OpenRead(Platform.ResolvePath(info["Image"])))
using (var stream = modData.ModFiles.Open(info["Image"]))
sheet = new Sheet(SheetType.BGRA, stream);
logo = new Sprite(sheet, new Rectangle(0, 0, 256, 256), TextureChannel.Alpha);