From e48cd86dcf439b89b53eed2714ef988a6d0965eb Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Wed, 22 Jul 2020 12:02:53 +0100 Subject: [PATCH] Clean up Live Coding patch files --- ue4-cleanup.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ue4-cleanup.ps1 b/ue4-cleanup.ps1 index aada589..a613f33 100644 --- a/ue4-cleanup.ps1 +++ b/ue4-cleanup.ps1 @@ -23,12 +23,16 @@ function Print-Usage { function Cleanup-DLLs($cleanupdir, $projname, $dryrun) { if ($dryrun) { - Write-Output "Would clean up old Hot Reload DLLs/PDBs in $cleanupdir for $projname" + Write-Output "Would clean up temporary DLLs/PDBs in $cleanupdir for $projname" } else { - Write-Output "Cleaning up old Hot Reload DLLs/PDBs in $cleanupdir for $projname" + Write-Output "Cleaning up temporary DLLs/PDBs in $cleanupdir for $projname" } + # Hot Reload files $cleanupfiles = @(Get-ChildItem "$cleanupdir\UE4Editor-$projname-????.dll" | Select-Object -Expand Name) $cleanupfiles += @(Get-ChildItem "$cleanupdir\UE4Editor-$projname-????.pdb" | Select-Object -Expand Name) + # Live Coding files + $cleanupfiles += @(Get-ChildItem "$cleanupdir\UE4Editor-$projname.exe.patch_*" | Select-Object -Expand Name) + $cleanupfiles += @(Get-ChildItem "$cleanupdir\UE4Editor-$projname.pdb.patch_*" | Select-Object -Expand Name) foreach ($cf in $cleanupfiles) { if ($dryrun) { Write-Output "Would have deleted $cleanupdir\$cf"