Esempio n. 1
0
        public static void RunCommandlet(string ProjectName, string UE4Exe, string Commandlet, string Parameters = null)
        {
            FileReference ProjectFile;

            if (!UProjectInfo.TryGetProjectFileName(ProjectName, out ProjectFile))
            {
                throw new AutomationException("Cannot determine project file for {0}", ProjectName);
            }
            RunCommandlet(ProjectFile, UE4Exe, Commandlet, Parameters);
        }
Esempio n. 2
0
        public static void CookCommandlet(string ProjectName)
        {
            FileReference ProjectFile;

            if (ProjectName.Contains('/') || ProjectName.Contains('\\'))
            {
                ProjectFile = new FileReference(ProjectName);
            }
            else if (!UProjectInfo.TryGetProjectFileName(ProjectName, out ProjectFile))
            {
                throw new AutomationException("Cannot determine project path for {0}", ProjectName);
            }
            CookCommandlet(ProjectFile);
        }