edit KFEditor.ini for brewing to prevent annoying messages
This commit is contained in:
parent
b6dd84d808
commit
960defaa1f
17
builder
17
builder
@ -57,6 +57,7 @@ KFWorkshop="$KFPath/Binaries/WorkshopUserTool.exe"
|
|||||||
KFUnpublish="$KFDoc/KFGame/Unpublished"
|
KFUnpublish="$KFDoc/KFGame/Unpublished"
|
||||||
KFPublish="$KFDoc/KFGame/Published"
|
KFPublish="$KFDoc/KFGame/Published"
|
||||||
KFEditorConf="$KFDoc/KFGame/Config/KFEditor.ini"
|
KFEditorConf="$KFDoc/KFGame/Config/KFEditor.ini"
|
||||||
|
KFLogs="$KFDoc/KFGame/Logs"
|
||||||
|
|
||||||
# Source filesystem
|
# Source filesystem
|
||||||
MutSource="$ScriptDir/.."
|
MutSource="$ScriptDir/.."
|
||||||
@ -512,8 +513,6 @@ function compile ()
|
|||||||
get_latest_multini "$ThirdPartyBin/multini.exe"
|
get_latest_multini "$ThirdPartyBin/multini.exe"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
backup_kfeditorconf
|
|
||||||
|
|
||||||
multini --del "$KFEditorConf" 'ModPackages' 'ModPackages'
|
multini --del "$KFEditorConf" 'ModPackages' 'ModPackages'
|
||||||
for Package in $PackageBuildOrder
|
for Package in $PackageBuildOrder
|
||||||
do
|
do
|
||||||
@ -568,8 +567,6 @@ function compile ()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
find "$KFUnpublish" -type d -empty -delete
|
find "$KFUnpublish" -type d -empty -delete
|
||||||
|
|
||||||
restore_kfeditorconf
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function publish_common ()
|
function publish_common ()
|
||||||
@ -830,18 +827,26 @@ function main ()
|
|||||||
export PATH="$PATH:$ThirdPartyBin"
|
export PATH="$PATH:$ThirdPartyBin"
|
||||||
|
|
||||||
# Modifiers
|
# Modifiers
|
||||||
if is_true "$ArgDebug"; then set -o xtrace; fi
|
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" && is_true "$ArgHelp"; then version; usage; die "" 0; fi
|
||||||
if is_true "$ArgVersion"; then version; die "" 0; fi
|
if is_true "$ArgVersion"; then version; die "" 0; fi
|
||||||
if is_true "$ArgHelp"; then usage; 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 "$ArgInit"; then init; fi
|
||||||
if is_true "$ArgCompile"; then compile; fi
|
if is_true "$ArgCompile"; then compile; fi
|
||||||
if is_true "$ArgBrew"; then brew; fi
|
if is_true "$ArgBrew"; then brew; fi
|
||||||
if is_true "$ArgBrewManual"; then brew_manual; fi
|
if is_true "$ArgBrewManual"; then brew_manual; fi
|
||||||
if is_true "$ArgUpload"; then upload; fi
|
if is_true "$ArgUpload"; then upload; fi
|
||||||
if is_true "$ArgTest"; then run_test; fi
|
if is_true "$ArgTest"; then run_test; fi
|
||||||
|
|
||||||
|
# Restore
|
||||||
|
if is_true "$ArgCompile" || is_true "$ArgBrew"; then restore_kfeditorconf; fi
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user