Fixed variables system

This commit is contained in:
XargonWan 2022-09-19 09:25:49 +02:00 committed by GitHub
parent 5ff512665a
commit 67d7b4d74f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,14 +57,23 @@ then
echo "RetroDECK config file not found in $rd_conf" echo "RetroDECK config file not found in $rd_conf"
echo "Initializing" echo "Initializing"
echo "#!/bin/bash" >> $rd_conf # Initializing the variables
version="$hard_version" # if we are here means that the we are in a new installation, so the version is valorized with the hardcoded one version="$hard_version" # if we are here means that the we are in a new installation, so the version is valorized with the hardcoded one
rdhome="$HOME/retrodeck" # the retrodeck home, aka ~/retrodeck rdhome="$HOME/retrodeck" # the retrodeck home, aka ~/retrodeck
roms_folder="$rdhome/roms" # the default roms folder path roms_folder="$rdhome/roms" # the default roms folder path
media_folder="$rdhome/retrodeck/downloaded_media" # the media folder, where all the scraped data is downloaded into media_folder="$rdhome/retrodeck/downloaded_media" # the media folder, where all the scraped data is downloaded into
themes_folder="$rdhome/retrodeck/themes" # the themes folder themes_folder="$rdhome/retrodeck/themes" # the themes folder
sdcard="$default_sd" # Steam Deck SD default path sdcard="$default_sd" # Steam Deck SD default path
# Writing the variables for the first time
echo "#!/bin/bash" >> $rd_conf
echo "version=$version" >> $rd_conf
echo "rdhome=$rdhome" >> $rd_conf
echo "roms_folder=$roms_folder" >> $rd_conf
echo "media_folder=$media_folder" >> $rd_conf
echo "themes_folder=$themes_folder" >> $rd_conf
echo "sdcard=$sdcard" >> $rd_conf
# writing the needed variables in the config file # writing the needed variables in the config file
conf_write conf_write