Enahcned default sd card check

This commit is contained in:
XargonWan 2022-09-19 09:04:44 +02:00 committed by GitHub
parent 72c43cb809
commit ac0934fb35
2 changed files with 3 additions and 2 deletions

View file

@ -6,7 +6,7 @@
rd_conf="/var/config/retrodeck/retrodeck.cfg" # RetroDECK config file path
emuconfigs="/app/retrodeck/emu-configs" # folder with all the default emulator configs
lockfile="/var/config/retrodeck/.lock" # where the lockfile is located
sdcard="/run/media/mmcblk0p1" # Steam Deck SD default path
default_sd="/run/media/mmcblk0p1" # Steam Deck SD default path
hard_version="$(cat '/app/retrodeck/version')" # hardcoded version (in the readonly filesystem)
conf_write() {
@ -63,6 +63,7 @@ then
roms_folder="$rdhome/roms" # the default roms folder path
media_folder="$HOME/retrodeck/downloaded_media" # the media folder, where all the scraped data is downloaded into
themes_folder="$HOME/retrodeck/themes" # the themes folder
sdcard="$default_sd" # Steam Deck SD default path
# writing the needed variables in the config file
conf_write

View file

@ -373,7 +373,7 @@ finit() {
--text="SD Card was not find in the default location.\nPlease choose the SD Card root.\nA retrodeck/roms folder will be created starting from the directory that you selected."
browse # Calling the browse function
else
roms_folder="$sdcard/retrodeck/roms"
roms_folder="$sdcard/retrodeck/roms" # sdcard variable is correct as its given by browse function
echo "ROMs folder = $roms_folder"
fi
;;