mirror of
https://github.com/sinbad/UEScripts.git
synced 2025-02-23 13:15:23 +00:00
Update DefaultEngine.ini to add magic SkipSourceControlCheckForEditablePackages option
This commit is contained in:
parent
f41fe52bab
commit
0dc64b8fc3
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user