mirror of
https://github.com/sinbad/UEScripts.git
synced 2025-02-23 13:15:23 +00:00
Only close the editor by default on datasync pull, not push
This commit is contained in:
parent
f17a961d79
commit
f63c8a86fb
@ -23,7 +23,7 @@ function Print-Usage {
|
||||
Write-Output " : (should be root of project)"
|
||||
Write-Output " -prune : Clean up versions of the data older than the latest"
|
||||
Write-Output " -force : Copy ALL BuiltData files regardless of size/timestamp checks"
|
||||
Write-Output " -nocloseeditor : Don't close UE4 editor (this will prevent download of updated files)"
|
||||
Write-Output " -nocloseeditor : Don't close UE4 editor before pulling (may prevent success)"
|
||||
Write-Output " -dryrun : Don't perform any actual actions, just report on what you would do"
|
||||
Write-Output " -help : Print this help"
|
||||
Write-Output " "
|
||||
@ -177,11 +177,15 @@ try {
|
||||
Write-Output "Syncing $uprojname"
|
||||
}
|
||||
|
||||
# Close UE4 as early as possible
|
||||
if (-not $nocloseeditor) {
|
||||
# Close UE4 as early as possible in pull mode
|
||||
if ($mode -eq "pull" -and -not $nocloseeditor) {
|
||||
# Check if UE4 is running, if so try to shut it gracefully
|
||||
if ($dryrun) {
|
||||
Write-Output "Would have closed UE Editor"
|
||||
} else {
|
||||
Close-UE-Editor $uprojname $dryrun
|
||||
}
|
||||
}
|
||||
|
||||
# Create project sync dir if necessary
|
||||
$syncdir = Join-Path $root $uprojname
|
||||
|
Loading…
x
Reference in New Issue
Block a user