From 93c45255f1532e749f7a263e5439f207ea9e3eb3 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Sat, 6 Nov 2021 23:58:02 +0100 Subject: [PATCH] Move a using into the Mono specific code path --- OpenRA.Game/Game.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index 6b448e7636..1d61b4610b 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -16,7 +16,6 @@ using System.Globalization; using System.IO; using System.Linq; using System.Net; -using System.Reflection; using System.Runtime; using System.Threading; using OpenRA.Graphics; @@ -357,7 +356,8 @@ namespace OpenRA var platformType = loader.LoadDefaultAssembly().GetTypes().SingleOrDefault(t => typeof(IPlatform).IsAssignableFrom(t)); #else - var assembly = Assembly.LoadFile(rendererPath); + // NOTE: This is currently the only use of System.Reflection in this file, so would give an unused using error if we import it above + var assembly = System.Reflection.Assembly.LoadFile(rendererPath); var platformType = assembly.GetTypes().SingleOrDefault(t => typeof(IPlatform).IsAssignableFrom(t)); #endif