Move a using into the Mono specific code path

This commit is contained in:
abcdefg30
2021-11-06 23:58:02 +01:00
committed by reaperrr
parent 280dd8e2a5
commit 93c45255f1

View File

@@ -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