Update DefaultEngine.ini to add magic SkipSourceControlCheckForEditablePackages option

This commit is contained in:
Steve Streeting 2020-05-21 18:24:07 +01:00
parent f41fe52bab
commit 0dc64b8fc3

View File

@ -143,6 +143,13 @@ if ($help) {
Exit 0 Exit 0
} }
if (-not (Get-Module -ListAvailable -Name PsIni)) {
Write-Output "Missing module: PsIni"
Write-Output "This script uses PsIni to update the UE4 DefaultEngine.ini"
Write-Output "Install it using 'Install-Module PsIni [-Scope CurrentUser]'"
Exit 2
}
if ($src.Length -eq 0) { if ($src.Length -eq 0) {
$src = "." $src = "."
Write-Verbose "-src not specified, assuming current directory" Write-Verbose "-src not specified, assuming current directory"
@ -184,6 +191,15 @@ try {
git lfs track --lockable "$f" git lfs track --lockable "$f"
} }
# Configure DefaultEngine.ini to make Git LFS operations MUCH faster
# [SystemSettingsEditor]
# r.Editor.SkipSourceControlCheckForEditablePackages = 1
# Seriously, without this saving a locked LFS file takes ~5s vs 0.5s
Import-Module PsIni
$engineIni = Get-IniContent "Config/DefaultEngine.ini"
$engineIni["SystemSettingsEditor"] = @{"r.Editor.SkipSourceControlCheckForEditablePackages" = "1"}
Out-IniFile -Force -InputObject $engineIni -FilePath "Config/DefaultEngine.ini"
# TODO git submodule UE4Plugin # TODO git submodule UE4Plugin