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/reference_lists/bios_checklist.cfg"# A config file listing BIOS file information that can be verified
compression_targets="$emuconfigs/defaults/retrodeck/reference_lists/compression_targets.cfg"# A config file containing supported compression types per system
zip_compressable_extensions="$emuconfigs/defaults/retrodeck/reference_lists/zip_compressable_extensions.cfg"# A config file containing every file extension that is allowed to be compressed to .zip format, because there are a lot!
easter_egg_checklist="$emuconfigs/defaults/retrodeck/reference_lists/easter_egg_checklist.cfg"# A config file listing days and times when special splash screens should show up
input_validation="$emuconfigs/defaults/retrodeck/reference_lists/input_validation.cfg"# A config file listing valid CLI inputs
finit_options_list="$emuconfigs/defaults/retrodeck/reference_lists/finit_options_list.cfg"# A config file listing available optional installs during finit
multi_user_emulator_config_dirs="$emuconfigs/defaults/retrodeck/reference_lists/multi_user_emulator_config_dirs.cfg"# A list of emulator config folders that can be safely linked/unlinked entirely in multi-user mode
presets_dir="$emuconfigs/defaults/retrodeck/presets"# Repository for all system preset config files
incompatible_presets_reference_list="$emuconfigs/defaults/retrodeck/reference_lists/incompatible_presets.cfg"# A config file listing all incompatible presets for reference (eg. cannot have borders and widescreen enabled simultaniously)
pretty_system_names_reference_list="$emuconfigs/defaults/retrodeck/reference_lists/pretty_system_names.cfg"# An internal translation list for turning internal names (eg. gbc) to "pretty" names (Nintendo GameBoy Color)
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
if[[$(find /run/media/deck/* -maxdepth 0 -type d -print | wc -l) -eq 1]];then# If there is only one SD card found in the new SteamOS 3.5 location, assign it as the default
default_sd="$(find /run/media/deck/* -maxdepth 0 -type d -print)"
else# If the default legacy path cannot be found, and there are multiple entries in the new Steam OS 3.5 SD card path, let the user pick which one to use
configurator_generic_dialog "RetroDECK Setup""The SD card was not found in the default location, and multiple drives were detected.\nPlease browse to the location of the desired SD card.\n\nIf you are not using an SD card, please click \"Cancel\"."
configurator_generic_dialog "RetroDECK Setup""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."