From a48ba23df085a45215db7d2783f910c17c6e2d92 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 7 Aug 2024 16:20:58 +0900 Subject: [PATCH] FRAMEWORK: variabilized features.json location --- functions/global.sh | 1 + functions/other_functions.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/global.sh b/functions/global.sh index 5cfdf78b..f1cebd58 100644 --- a/functions/global.sh +++ b/functions/global.sh @@ -54,6 +54,7 @@ incompatible_presets_reference_list="$config/retrodeck/reference_lists/incompati pretty_system_names_reference_list="$config/retrodeck/reference_lists/pretty_system_names.cfg" # An internal translation list for turning internal names (eg. gbc) to "pretty" names (Nintendo GameBoy Color) git_organization_name="RetroDECK" # The name of the organization in our git repository such as GitHub cooker_repository_name="Cooker" # The name of the cooker repository under RetroDECK organization +features="$config/retrodeck/reference_lists/features.json" # A file where all the RetroDECK and component capabilities are kept for querying # Godot data transfer temp files diff --git a/functions/other_functions.sh b/functions/other_functions.sh index adaa56e5..e84fbaea 100644 --- a/functions/other_functions.sh +++ b/functions/other_functions.sh @@ -169,7 +169,7 @@ update_rd_conf() { "\(.key):\(.value)", "\(.value):\(.key)" ] | join("\n") - ' config/retrodeck/reference_lists/features.json) + ' $features) while IFS= read -r current_setting_line # Read the existing retrodeck.cfg do @@ -597,7 +597,7 @@ splash_screen() { ($current_day | tonumber) <= (.value.end_date | tonumber) and ($current_time | tonumber) >= (.value.start_time | tonumber) and ($current_time | tonumber) <= (.value.end_time | tonumber) - ) | .value.filename' config/retrodeck/reference_lists/features.json) + ) | .value.filename' $features) # Determine the splash file to use if [[ -n "$splash_screen" ]]; then