1
0

edit KFEditor.ini for brewing to prevent annoying messages

This commit is contained in:
GenZmeY 2022-03-20 03:39:31 +03:00
parent b6dd84d808
commit 960defaa1f

15
builder
View File

@ -57,6 +57,7 @@ KFWorkshop="$KFPath/Binaries/WorkshopUserTool.exe"
KFUnpublish="$KFDoc/KFGame/Unpublished"
KFPublish="$KFDoc/KFGame/Published"
KFEditorConf="$KFDoc/KFGame/Config/KFEditor.ini"
KFLogs="$KFDoc/KFGame/Logs"
# Source filesystem
MutSource="$ScriptDir/.."
@ -512,8 +513,6 @@ function compile ()
get_latest_multini "$ThirdPartyBin/multini.exe"
fi
backup_kfeditorconf
multini --del "$KFEditorConf" 'ModPackages' 'ModPackages'
for Package in $PackageBuildOrder
do
@ -568,8 +567,6 @@ function compile ()
fi
find "$KFUnpublish" -type d -empty -delete
restore_kfeditorconf
}
function publish_common ()
@ -832,16 +829,24 @@ function main ()
# Modifiers
if is_true "$ArgDebug"; then set -o xtrace; fi
# Actions
# Help
if is_true "$ArgVersion" && is_true "$ArgHelp"; then version; usage; die "" 0; fi
if is_true "$ArgVersion"; then version; die "" 0; fi
if is_true "$ArgHelp"; then usage; die "" 0; fi
# Backup
if is_true "$ArgCompile" || is_true "$ArgBrew"; then backup_kfeditorconf; fi
# Actions
if is_true "$ArgInit"; then init; fi
if is_true "$ArgCompile"; then compile; fi
if is_true "$ArgBrew"; then brew; fi
if is_true "$ArgBrewManual"; then brew_manual; fi
if is_true "$ArgUpload"; then upload; fi
if is_true "$ArgTest"; then run_test; fi
# Restore
if is_true "$ArgCompile" || is_true "$ArgBrew"; then restore_kfeditorconf; fi
}
main "$@"