FRAMEWORK: variabilized features.json location

This commit is contained in:
XargonWan 2024-08-07 16:20:58 +09:00
parent 07b8edb32e
commit a48ba23df0
2 changed files with 3 additions and 2 deletions

View file

@ -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) 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 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 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 # Godot data transfer temp files

View file

@ -169,7 +169,7 @@ update_rd_conf() {
"\(.key):\(.value)", "\(.key):\(.value)",
"\(.value):\(.key)" "\(.value):\(.key)"
] | join("\n") ] | join("\n")
' config/retrodeck/reference_lists/features.json) ' $features)
while IFS= read -r current_setting_line # Read the existing retrodeck.cfg while IFS= read -r current_setting_line # Read the existing retrodeck.cfg
do do
@ -597,7 +597,7 @@ splash_screen() {
($current_day | tonumber) <= (.value.end_date | tonumber) and ($current_day | tonumber) <= (.value.end_date | tonumber) and
($current_time | tonumber) >= (.value.start_time | tonumber) and ($current_time | tonumber) >= (.value.start_time | tonumber) and
($current_time | tonumber) <= (.value.end_time | tonumber) ($current_time | tonumber) <= (.value.end_time | tonumber)
) | .value.filename' config/retrodeck/reference_lists/features.json) ) | .value.filename' $features)
# Determine the splash file to use # Determine the splash file to use
if [[ -n "$splash_screen" ]]; then if [[ -n "$splash_screen" ]]; then