rd_conf_backup="/var/config/retrodeck/retrodeck.bak"# Backup of RetroDECK config file from update
emuconfigs="/app/retrodeck/emu-configs"# folder with all the default emulator configs
rd_defaults="$emuconfigs/defaults/retrodeck/retrodeck.cfg"# A default RetroDECK config file
rd_update_patch="/var/config/retrodeck/rd_update.patch"# A static location for the temporary patch file used during retrodeck.cfg updates
bios_checklist="$emuconfigs/defaults/retrodeck/bios_checklist.cfg"# A config file listing BIOS file information that can be verified
compression_targets="$emuconfigs/defaults/retrodeck/compression_targets.cfg"# A config file containing supported compression types per system
easter_egg_checklist="$emuconfigs/defaults/retrodeck/easter_egg_checklist.cfg"# A config file listing days and times when special splash screens should show up
splashscreen_dir="/var/config/emulationstation/.emulationstation/resources/graphics/extra-splashes"# The default location of extra splash screens
current_splash_file="/var/config/emulationstation/.emulationstation/resources/graphics/splash.svg"# The active splash file that will be shown on boot
default_splash_file="/var/config/emulationstation/.emulationstation/resources/graphics/splash-orig.svg"# The default RetroDECK splash screen
lockfile="/var/config/retrodeck/.lock"# where the lockfile is located
if[[$(cat $lockfile)== *"0.4."* ]]||[[$(cat $lockfile)== *"0.3."* ]]||[[$(cat $lockfile)== *"0.2."* ]]||[[$(cat $lockfile)== *"0.1."* ]];then# If the previous version is very out of date, pre-rd_conf
# Check if SD card path has changed from SteamOS update
if[[ ! -d $default_sd&&"$(ls -A /run/media/deck/)"]];then
configurator_generic_dialog "The SD card was not found in the expected location.\nThis may happen when SteamOS is updated.\n\nPlease browse to the current location of the SD card.\n\nIf you are not using an SD card, please click \"Cancel\"."
configurator_generic_dialog "The RetroDECK data folder was not found in the expected location.\nThis may happen when SteamOS is updated.\n\nPlease browse to the current location of the \"retrodeck\" folder."