Load the load screen images from the virtual filesystem.
This commit is contained in:
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.LoadScreens
|
||||
var res = Game.Renderer.Resolution;
|
||||
bounds = new Rectangle(0, 0, res.Width, res.Height);
|
||||
|
||||
using (var stream = File.OpenRead(info["Image"]))
|
||||
using (var stream = modData.ModFiles.Open(info["Image"]))
|
||||
{
|
||||
var sheet = new Sheet(SheetType.BGRA, stream);
|
||||
sprite = new Sprite(sheet, new Rectangle(0, 0, 1024, 480), TextureChannel.Alpha);
|
||||
|
||||
Reference in New Issue
Block a user