diff --git a/OpenRA.Game/ModData.cs b/OpenRA.Game/ModData.cs index 3f3944baf6..caad343c15 100644 --- a/OpenRA.Game/ModData.cs +++ b/OpenRA.Game/ModData.cs @@ -53,7 +53,7 @@ namespace OpenRA if (useLoadScreen) { LoadScreen = ObjectCreator.CreateObject(Manifest.LoadScreen.Value); - LoadScreen.Init(Manifest, Manifest.LoadScreen.ToDictionary(my => my.Value)); + LoadScreen.Init(this, Manifest.LoadScreen.ToDictionary(my => my.Value)); LoadScreen.Display(); } @@ -205,7 +205,7 @@ namespace OpenRA public interface ILoadScreen : IDisposable { - void Init(Manifest m, Dictionary info); + void Init(ModData m, Dictionary info); void Display(); void StartGame(Arguments args); } diff --git a/OpenRA.Mods.Cnc/CncLoadScreen.cs b/OpenRA.Mods.Cnc/CncLoadScreen.cs index 45dcb89473..fe98a46924 100644 --- a/OpenRA.Mods.Cnc/CncLoadScreen.cs +++ b/OpenRA.Mods.Cnc/CncLoadScreen.cs @@ -33,7 +33,7 @@ namespace OpenRA.Mods.Cnc Rectangle bounds; Renderer r; - public override void Init(Manifest m, Dictionary info) + public override void Init(ModData modData, Dictionary info) { loadInfo = info; @@ -67,7 +67,7 @@ namespace OpenRA.Mods.Cnc brightBlock = new Sprite(sheet, new Rectangle(320, 0, 16, 35), TextureChannel.Alpha); dimBlock = new Sprite(sheet, new Rectangle(336, 0, 16, 35), TextureChannel.Alpha); - versionText = m.Mod.Version; + versionText = modData.Manifest.Mod.Version; } bool setup; diff --git a/OpenRA.Mods.Common/LoadScreens/BlankLoadScreen.cs b/OpenRA.Mods.Common/LoadScreens/BlankLoadScreen.cs index 231d3552b8..3ef8c6d62e 100644 --- a/OpenRA.Mods.Common/LoadScreens/BlankLoadScreen.cs +++ b/OpenRA.Mods.Common/LoadScreens/BlankLoadScreen.cs @@ -21,7 +21,7 @@ namespace OpenRA.Mods.Common.LoadScreens { public LaunchArguments Launch; - public virtual void Init(Manifest m, Dictionary info) { } + public virtual void Init(ModData m, Dictionary info) { } public virtual void Display() { diff --git a/OpenRA.Mods.Common/LoadScreens/LogoStripeLoadScreen.cs b/OpenRA.Mods.Common/LoadScreens/LogoStripeLoadScreen.cs index 429080f115..16f8e01dec 100644 --- a/OpenRA.Mods.Common/LoadScreens/LogoStripeLoadScreen.cs +++ b/OpenRA.Mods.Common/LoadScreens/LogoStripeLoadScreen.cs @@ -28,7 +28,7 @@ namespace OpenRA.Mods.Common.LoadScreens Sprite stripe, logo; string[] messages = { "Loading..." }; - public override void Init(Manifest m, Dictionary info) + public override void Init(ModData modData, Dictionary info) { // Avoid standard loading mechanisms so we // can display the loadscreen as early as possible diff --git a/OpenRA.Mods.Common/LoadScreens/ModChooserLoadScreen.cs b/OpenRA.Mods.Common/LoadScreens/ModChooserLoadScreen.cs index ae2287651a..b578c7713d 100644 --- a/OpenRA.Mods.Common/LoadScreens/ModChooserLoadScreen.cs +++ b/OpenRA.Mods.Common/LoadScreens/ModChooserLoadScreen.cs @@ -21,7 +21,7 @@ namespace OpenRA.Mods.Common.LoadScreens Sprite sprite; Rectangle bounds; - public void Init(Manifest m, Dictionary info) + public void Init(ModData modData, Dictionary info) { var res = Game.Renderer.Resolution; bounds = new Rectangle(0, 0, res.Width, res.Height);