public static string GetUBTExe(this EngineInstall EngineInstall) { if (EngineInstall.GetVersion().MajorVersion >= 5) { return(Path.Combine(EngineInstall.InstallDirectory, "Engine", "Binaries", "DotNET", "UnrealBuildTool", "UnrealBuildTool.exe")); } return(Path.Combine(EngineInstall.InstallDirectory, "Engine", "Binaries", "DotNET", "UnrealBuildTool.exe")); }
public static string GetEditorExe(this EngineInstall EngineInstall, OperationParameters operationParameters) { string mainEditorName = EngineInstall.GetVersion().MajorVersion >= 5 ? "UnrealEditor" : "UE4Editor"; return(Path.Combine(EngineInstall.InstallDirectory, "Engine", "Binaries", "Win64", operationParameters.Configuration == BuildConfiguration.DebugGame ? mainEditorName + "-Win64-DebugGame.exe" : mainEditorName + ".exe")); }