mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-27 00:05:37 +00:00
Enahcned default sd card check
This commit is contained in:
parent
c728be71d9
commit
f86f8958d3
|
@ -6,7 +6,7 @@
|
||||||
rd_conf="/var/config/retrodeck/retrodeck.cfg" # RetroDECK config file path
|
rd_conf="/var/config/retrodeck/retrodeck.cfg" # RetroDECK config file path
|
||||||
emuconfigs="/app/retrodeck/emu-configs" # folder with all the default emulator configs
|
emuconfigs="/app/retrodeck/emu-configs" # folder with all the default emulator configs
|
||||||
lockfile="/var/config/retrodeck/.lock" # where the lockfile is located
|
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)
|
hard_version="$(cat '/app/retrodeck/version')" # hardcoded version (in the readonly filesystem)
|
||||||
|
|
||||||
conf_write() {
|
conf_write() {
|
||||||
|
@ -63,6 +63,7 @@ then
|
||||||
roms_folder="$rdhome/roms" # the default roms folder path
|
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
|
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
|
themes_folder="$HOME/retrodeck/themes" # the themes folder
|
||||||
|
sdcard="$default_sd" # Steam Deck SD default path
|
||||||
|
|
||||||
# writing the needed variables in the config file
|
# writing the needed variables in the config file
|
||||||
conf_write
|
conf_write
|
||||||
|
|
|
@ -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."
|
--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
|
browse # Calling the browse function
|
||||||
else
|
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"
|
echo "ROMs folder = $roms_folder"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue