From 0dc64b8fc36384378346edd2f29ba3a6b58ad02d Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Thu, 21 May 2020 18:24:07 +0100 Subject: [PATCH] Update DefaultEngine.ini to add magic SkipSourceControlCheckForEditablePackages option --- ue4-git-setup.ps1 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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