Load the load screen images from the virtual filesystem.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user