From 353c626a3727cad095c1f70e4ef2b5ba57138988 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Wed, 13 Nov 2024 10:13:01 -0500 Subject: [PATCH] Add comments on new usage of make_preset_changes(), which now can be called externally --- functions/presets.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/presets.sh b/functions/presets.sh index 86e15c16..bb397d56 100644 --- a/functions/presets.sh +++ b/functions/presets.sh @@ -82,7 +82,9 @@ build_preset_list_options() { make_preset_changes() { - # This function will take an array $choices, which contains the names of systems that have been enabled for this preset and enable them in the backend + # This function will take a preset name $preset and a CSV list $choice, which contains the names of systems that have been enabled for this preset and enable them in the backend + # Any systems which are currently enabled and not in the CSV list $choice will instead be disabled in the backend + # USAGE: make_preset_changes $choice $preset # Fetch incompatible presets from JSON and create a lookup list incompatible_presets=$(jq -r '