mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-27 00:05:37 +00:00
Fixed variables system
This commit is contained in:
parent
5ff512665a
commit
67d7b4d74f
15
global.sh
15
global.sh
|
@ -57,14 +57,23 @@ then
|
|||
echo "RetroDECK config file not found in $rd_conf"
|
||||
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
|
||||
rdhome="$HOME/retrodeck" # the retrodeck home, aka ~/retrodeck
|
||||
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
|
||||
themes_folder="$rdhome/retrodeck/themes" # the themes folder
|
||||
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
|
||||
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
|
||||
conf_write
|
||||
|
||||
|
|
Loading…
Reference in a new issue