Fix UE5 editor exe name for closing editor

This commit is contained in:
Steve Streeting 2022-04-19 12:20:56 +01:00
parent e87b45e948
commit b3df8fa5b8

View File

@ -22,7 +22,7 @@ function Close-UE-Editor {
Remove-Variable ue4proc Remove-Variable ue4proc
# Also close UE5 # Also close UE5
$ue5proc = Get-Process UEEditor -ErrorAction SilentlyContinue | Where-Object {$_.MainWindowTitle -like "$uprojectname*" } $ue5proc = Get-Process UnrealEditor -ErrorAction SilentlyContinue | Where-Object {$_.MainWindowTitle -like "$uprojectname*" }
if ($ue5proc) { if ($ue5proc) {
if ($dryrun) { if ($dryrun) {
Write-Output "UE5 project is currently open in editor, would have closed" Write-Output "UE5 project is currently open in editor, would have closed"