From 4e86f5b252256e23378c525bc1036aee1222a3f1 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 25 Aug 2010 18:09:20 +1200 Subject: [PATCH] Unbreak cnc, defaultmod --- OpenRA.Mods.RA/NullLoadScreen.cs | 22 ++++++++++++++++++++++ OpenRA.Mods.RA/OpenRA.Mods.RA.csproj | 1 + mods/cnc/mod.yaml | 1 + mods/default/mod.yaml | 1 + 4 files changed, 25 insertions(+) create mode 100644 OpenRA.Mods.RA/NullLoadScreen.cs diff --git a/OpenRA.Mods.RA/NullLoadScreen.cs b/OpenRA.Mods.RA/NullLoadScreen.cs new file mode 100644 index 0000000000..ed1e179040 --- /dev/null +++ b/OpenRA.Mods.RA/NullLoadScreen.cs @@ -0,0 +1,22 @@ +#region Copyright & License Information +/* + * Copyright 2007-2010 The OpenRA Developers (see AUTHORS) + * This file is part of OpenRA, which is free software. It is made + * available to you under the terms of the GNU General Public License + * as published by the Free Software Foundation. For more information, + * see LICENSE. + */ +#endregion + +namespace OpenRA.Mods.RA +{ + public class NullLoadScreen : ILoadScreen + { + public void Display() + { + Game.Renderer.BeginFrame(float2.Zero); + Game.Renderer.EndFrame(); + } + } +} + diff --git a/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj b/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj index 22b5905e46..7d35fe2c85 100644 --- a/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj +++ b/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj @@ -240,6 +240,7 @@ + diff --git a/mods/cnc/mod.yaml b/mods/cnc/mod.yaml index fc7f95e187..88834243e3 100644 --- a/mods/cnc/mod.yaml +++ b/mods/cnc/mod.yaml @@ -64,4 +64,5 @@ TileSets: mods/cnc/tileset-win.yaml: Winter mods/cnc/tileset-tem.yaml: Temperate +LoadScreen: NullLoadScreen ShellmapUid:d715c86d9d49d153756b86ef87a825ea8fae6756 diff --git a/mods/default/mod.yaml b/mods/default/mod.yaml index 9fb4f47dd2..f9a075e81f 100644 --- a/mods/default/mod.yaml +++ b/mods/default/mod.yaml @@ -28,4 +28,5 @@ Chrome: ChromeLayout: mods/default/menus.yaml: +LoadScreen: NullLoadScreen ShellmapUid: 95c34889e85a903d7dbb41f13d6c373b44a8b62e \ No newline at end of file