Don't remove plugins for the 'Desktop' target platform if we don't have the UEBuildPlatform registered. It breaks a LOT of things if you download the engine to your desktop.

#codereview Josh.Adams

[CL 2535030 by Ben Marsh in Main branch]
This commit is contained in:
Ben Marsh
2015-05-02 19:23:51 -04:00
committed by Ben.Marsh@epicgames.com
parent 53fafaf1c9
commit a503253013

View File

@@ -2525,7 +2525,7 @@ namespace UnrealBuildTool
// Remove any plugins for platforms we don't have
foreach (UnrealTargetPlatform TargetPlatform in Enum.GetValues(typeof(UnrealTargetPlatform)))
{
if (UEBuildPlatform.GetBuildPlatform(TargetPlatform, true) == null)
if (TargetPlatform != UnrealTargetPlatform.Desktop && UEBuildPlatform.GetBuildPlatform(TargetPlatform, true) == null)
{
string DirectoryFragment = String.Format("/{0}/", TargetPlatform.ToString());
ValidPlugins.RemoveAll(x => x.Directory.Replace('\\', '/').Contains(DirectoryFragment));