diff --git a/ue4-git-setup.ps1 b/ue4-git-setup.ps1 index 4e3e1f9..736f7a3 100644 --- a/ue4-git-setup.ps1 +++ b/ue4-git-setup.ps1 @@ -143,6 +143,13 @@ if ($help) { 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) { $src = "." Write-Verbose "-src not specified, assuming current directory" @@ -184,6 +191,15 @@ try { 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