コード例 #1
0
        private static void WriteConfigFileEntry(InstalledPlatformConfiguration Config, ref List <String> OutEntries)
        {
            string ConfigDescription = "+InstalledPlatformConfigurations=(";

            if (Config.Platform != UnrealTargetPlatform.Unknown)
            {
                ConfigDescription += string.Format("PlatformName=\"{0}\", ", Config.Platform.ToString());
            }
            if (Config.Configuration != UnrealTargetConfiguration.Unknown)
            {
                ConfigDescription += string.Format("Configuration=\"{0}\", ", Config.Configuration.ToString());
            }
            if (Config.PlatformType != TargetType.Program)
            {
                ConfigDescription += string.Format("PlatformType=\"{0}\", ", Config.PlatformType.ToString());
            }
            if (!string.IsNullOrEmpty(Config.Architecture))
            {
                ConfigDescription += string.Format("Architecture=\"{0}\", ", Config.Architecture);
            }
            if (!string.IsNullOrEmpty(Config.RequiredFile))
            {
                ConfigDescription += string.Format("RequiredFile=\"{0}\", ", Config.RequiredFile);
            }
            if (Config.ProjectType != EProjectType.Unknown)
            {
                ConfigDescription += string.Format("ProjectType=\"{0}\", ", Config.ProjectType.ToString());
            }
            ConfigDescription += string.Format("bCanBeDisplayed={0})", Config.bCanBeDisplayed.ToString());

            OutEntries.Add(ConfigDescription);
        }
コード例 #2
0
		private static void WriteConfigFileEntry(InstalledPlatformConfiguration Config, ref List<String> OutEntries)
		{
			string ConfigDescription = "+InstalledPlatformConfigurations=(";
			if (Config.Platform != UnrealTargetPlatform.Unknown)
			{
				ConfigDescription += string.Format("PlatformName=\"{0}\", ", Config.Platform.ToString());
			}
			if (Config.Configuration != UnrealTargetConfiguration.Unknown)
			{
				ConfigDescription += string.Format("Configuration=\"{0}\", ", Config.Configuration.ToString());
			}
			if (Config.PlatformType != TargetRules.TargetType.Program)
			{
				ConfigDescription += string.Format("PlatformType=\"{0}\", ", Config.PlatformType.ToString());
			}
			if (!string.IsNullOrEmpty(Config.Architecture))
			{
				ConfigDescription += string.Format("Architecture=\"{0}\", ", Config.Architecture);
			}
			if (!string.IsNullOrEmpty(Config.RequiredFile))
			{
				ConfigDescription += string.Format("RequiredFile=\"{0}\", ", Config.RequiredFile);
			}
			if (Config.ProjectType != EProjectType.Unknown)
			{
				ConfigDescription += string.Format("ProjectType=\"{0}\", ", Config.ProjectType.ToString());
			}
			ConfigDescription += string.Format("bCanBeDisplayed={0})", Config.bCanBeDisplayed.ToString());

			OutEntries.Add(ConfigDescription);
		}