Various fixes by RavenKilit

This commit is contained in:
XargonWan 2022-09-21 16:22:00 +02:00 committed by GitHub
parent f4c3b02084
commit c22bf430d8
3 changed files with 10 additions and 6 deletions

View file

@ -66,12 +66,12 @@ then
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/downloaded_media" # the media folder, where all the scraped data is downloaded into
themes_folder="$rdhome/retrodeck/themes" # the themes folder themes_folder="$rdhome/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 # Writing the variables for the first time
echo "#!/bin/bash" >> $rd_conf echo '#!/bin/bash' >> $rd_conf
echo "version=$version" >> $rd_conf echo "version=$version" >> $rd_conf
echo "rdhome=$rdhome" >> $rd_conf echo "rdhome=$rdhome" >> $rd_conf
echo "roms_folder=$roms_folder" >> $rd_conf echo "roms_folder=$roms_folder" >> $rd_conf

View file

@ -383,6 +383,10 @@ finit() {
advanced advanced
;; ;;
1 ) # X button quits
kill $$
;;
esac esac
mkdir -pv $roms_folder mkdir -pv $roms_folder

View file

@ -13,6 +13,6 @@ arrIN=(${login//=SEP=/ })
user=${arrIN[0]} user=${arrIN[0]}
pass=${arrIN[1]} pass=${arrIN[1]}
sed -i "s%cheevos_enable =.*%cheevos_enable = \"true\"" $racfg sed -i "s%cheevos_enable =.*%cheevos_enable = \"true\"%" $racfg
sed -i "s%cheevos_username =.*%cheevos_username = \"$user\"" $racfg sed -i "s%cheevos_username =.*%cheevos_username = \"$user\"%" $racfg
sed -i "s%cheevos_password =.*%cheevos_password = \"$pass\"" $racfg sed -i "s%cheevos_password =.*%cheevos_password = \"$pass\"%" $racfg