From 66e7af978cad7789d3ffc419c00d6c1266504436 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Fri, 31 May 2024 09:31:26 -0400 Subject: [PATCH 1/2] Un-localize some extracted arrays used between functions. --- functions/compression.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/compression.sh b/functions/compression.sh index 3e09dc1e..d33f5a2d 100644 --- a/functions/compression.sh +++ b/functions/compression.sh @@ -130,10 +130,10 @@ find_compatible_games() { fi touch "$godot_compression_compatible_games" - local compressable_games_list=() - local all_compressable_games=() - local games_to_compress=() - local target_selection="$1" + compressable_games_list=() + all_compressable_games=() + games_to_compress=() + target_selection="$1" if [[ "$1" == "everything" ]]; then local compression_format="all" From 79b755a45d149b48a6bbdcd741ffd63c17f032f6 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Fri, 31 May 2024 09:34:53 -0400 Subject: [PATCH 2/2] Unlocalize presets-related variables for use between functions. --- functions/presets.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/functions/presets.sh b/functions/presets.sh index 94bf7761..ce384307 100644 --- a/functions/presets.sh +++ b/functions/presets.sh @@ -41,14 +41,14 @@ build_preset_list_options() { fi touch "$godot_current_preset_settings" - local preset="$1" + 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 - local current_preset_settings=() - local current_enabled_systems=() - local current_disabled_systems=() - local changed_systems=() - local changed_presets=() + current_preset_settings=() + current_enabled_systems=() + current_disabled_systems=() + changed_systems=() + changed_presets=() local section_results=$(sed -n '/\['"$preset"'\]/, /\[/{ /\['"$preset"'\]/! { /\[/! p } }' $rd_conf | sed '/^$/d') while IFS= read -r config_line