From 31198c25e5e10a7037ad13b47ae78399e7c1e61a Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Mon, 15 Mar 2010 18:27:57 +1300 Subject: [PATCH] A couple more tweaks --- .../Chrome/{WidgetActions.cs => DefaultWidgetDelegates.cs} | 0 OpenRA.Game/Game.cs | 3 ++- OpenRA.Game/OpenRA.Game.csproj | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) rename OpenRA.Game/Chrome/{WidgetActions.cs => DefaultWidgetDelegates.cs} (100%) diff --git a/OpenRA.Game/Chrome/WidgetActions.cs b/OpenRA.Game/Chrome/DefaultWidgetDelegates.cs similarity index 100% rename from OpenRA.Game/Chrome/WidgetActions.cs rename to OpenRA.Game/Chrome/DefaultWidgetDelegates.cs diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index c9ebaa89ad..238a318e19 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -74,7 +74,8 @@ namespace OpenRA var asms = new List> (typeof(Game).Assembly.GetTypes() .Select(a => a.Namespace) .Distinct() - .Select(b => Pair.New(typeof(Game).Assembly, b))); + .Where(b => b != null) + .Select(c => Pair.New(typeof(Game).Assembly, c))); // Mod assemblies assumed to contain a single namespace foreach (var a in m.Assemblies) diff --git a/OpenRA.Game/OpenRA.Game.csproj b/OpenRA.Game/OpenRA.Game.csproj index 30a4cc14db..7b32648af9 100644 --- a/OpenRA.Game/OpenRA.Game.csproj +++ b/OpenRA.Game/OpenRA.Game.csproj @@ -281,7 +281,7 @@ - +