示例#1
0
        public string GetBuildTargetDisplayName(BuildTarget target)
        {
            BuildPlatform[] array = this.buildPlatforms;
            string          result;

            for (int i = 0; i < array.Length; i++)
            {
                BuildPlatform buildPlatform = array[i];
                if (buildPlatform.defaultTarget == target)
                {
                    result = buildPlatform.title.text;
                    return(result);
                }
            }
            switch (target)
            {
            case BuildTarget.StandaloneOSXUniversal:
            case BuildTarget.StandaloneOSXIntel:
                goto IL_96;

            case (BuildTarget)3:
IL_58:
                switch (target)
                {
                case BuildTarget.StandaloneLinux64:
                case BuildTarget.StandaloneLinuxUniversal:
                    goto IL_A1;

                case BuildTarget.WP8Player:
IL_71:
                    switch (target)
                    {
                    case BuildTarget.StandaloneLinux:
                        goto IL_A1;

                    case BuildTarget.StandaloneWindows64:
                        goto IL_8B;
                    }
                    result = "Unsupported Target";
                    return(result);

                case BuildTarget.StandaloneOSXIntel64:
                    goto IL_96;
                }
                goto IL_71;
IL_A1:
                result = "Linux";
                return(result);

            case BuildTarget.StandaloneWindows:
                goto IL_8B;
            }
            goto IL_58;
IL_8B:
            result = "Windows";
            return(result);

IL_96:
            result = "Mac OS X";
            return(result);
        }
示例#2
0
        public string GetBuildTargetDisplayName(BuildTargetGroup group, BuildTarget target)
        {
            BuildPlatform[] array = this.buildPlatforms;
            string          result;

            for (int i = 0; i < array.Length; i++)
            {
                BuildPlatform buildPlatform = array[i];
                if (buildPlatform.defaultTarget == target && buildPlatform.targetGroup == group)
                {
                    result = buildPlatform.title.text;
                    return(result);
                }
            }
            switch (target)
            {
            case BuildTarget.StandaloneOSX:
            case BuildTarget.StandaloneOSXIntel:
                goto IL_A2;

            case (BuildTarget)3:
IL_64:
                switch (target)
                {
                case BuildTarget.StandaloneLinux64:
                case BuildTarget.StandaloneLinuxUniversal:
                    goto IL_AD;

                case BuildTarget.WP8Player:
IL_7D:
                    switch (target)
                    {
                    case BuildTarget.StandaloneLinux:
                        goto IL_AD;

                    case BuildTarget.StandaloneWindows64:
                        goto IL_97;
                    }
                    result = "Unsupported Target";
                    return(result);

                case BuildTarget.StandaloneOSXIntel64:
                    goto IL_A2;
                }
                goto IL_7D;
IL_AD:
                result = "Linux";
                return(result);

            case BuildTarget.StandaloneWindows:
                goto IL_97;
            }
            goto IL_64;
IL_97:
            result = "Windows";
            return(result);

IL_A2:
            result = "Mac OS X";
            return(result);
        }