Esempio n. 1
0
        public string GetPlatformPath(UnrealTargetRole Type, UnrealTargetPlatform Platform)
        {
            if (Type.UsesEditor())
            {
                return(UnrealPath.FullName);
            }

            string BuildPath = BuildPaths.ElementAt(0);

            if (string.IsNullOrEmpty(BuildPath))
            {
                return(null);
            }

            string PlatformPath = Path.Combine(BuildPath, UnrealHelpers.GetPlatformName(Platform, Type, UsesSharedBuildType));

            // On some builds we stage the actual loose files into a "Staged" folder
            if (Directory.Exists(PlatformPath) && Directory.Exists(Path.Combine(PlatformPath, "staged")))
            {
                PlatformPath = Path.Combine(PlatformPath, "Staged");
            }

            // Urgh - build share uses a different style...
            if (Platform == UnrealTargetPlatform.Android && BuildName.Equals("Local", StringComparison.OrdinalIgnoreCase) == false)
            {
                PlatformPath = PlatformPath.Replace("Android_ETC2Client", "Android\\FullPackages");
            }

            return(PlatformPath);
        }