From 155e331a43889fb53f309b460fa7e1409e1c79f2 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Wed, 13 Nov 2024 10:10:07 -0500 Subject: [PATCH] Add comments to build_preset_list_options() --- functions/presets.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/presets.sh b/functions/presets.sh index f0913274..86e15c16 100644 --- a/functions/presets.sh +++ b/functions/presets.sh @@ -3,7 +3,7 @@ change_preset_dialog() { # This function will build a list of all systems compatible with a given preset, their current enable/disabled state and allow the user to change one or more # USAGE: change_preset_dialog "$preset" - + preset="$1" pretty_preset_name=${preset//_/ } # Preset name prettification pretty_preset_name=$(echo $pretty_preset_name | awk '{for(i=1;i<=NF;i++){$i=toupper(substr($i,1,1))substr($i,2)}}1') # Preset name prettification @@ -46,6 +46,8 @@ change_preset_dialog() { build_preset_list_options() { # This function will build a list of all the systems available for a given preset # The list will be generated into a Godot temp file and the variable $current_preset_settings + # The other arrays built (all_systems, changed_systems etc.) are also used in the make_preset_changes() function, so this needs to be called in the same memory space as that function at least once + # USAGE: build_preset_list_options "$preset" if [[ -f "$godot_current_preset_settings" ]]; then rm -f "$godot_current_preset_settings" # Godot data transfer temp files