From 5fa4ec4f77dd8d7d1965fc04f58597694cabd097 Mon Sep 17 00:00:00 2001 From: Steam Deck User Date: Wed, 8 Jun 2022 11:54:58 +0200 Subject: [PATCH] WRAPPER: fixed the emulationstation folder handling --- retrodeck.sh | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/retrodeck.sh b/retrodeck.sh index 6074d5ef..4873156f 100644 --- a/retrodeck.sh +++ b/retrodeck.sh @@ -3,7 +3,7 @@ lockfile="$HOME/retrodeck/.lock" # where the lockfile is located version="$(cat /app/retrodeck/version)" # version info taken from the version file rdhome="$HOME/retrodeck" # the retrodeck home, aka ~/retrodecck -emuconfigs="/app/retrodeck/emu-configs" # folder with all the default emulator configs +emuconfigs="/app/retrodeck/emu-configs" # folder with all the default emulator configs sdcard="/run/media/mmcblk0p1" # Steam Deck SD default path # Functions area @@ -58,6 +58,21 @@ dir_prep() { echo $symlink is now $real } +cfg_init() { + # Initializing retrodeck config file + #rdconf=/var/config/retrodeck/retrodeck.cfg + + # if I got a config file already I parse it + #if [] + + #else + # touch $rdconf + #fi + + #$roms_folder > /var/config/retrodeck/retrodeck.cfg + return +} + # is_mounted() { # # This script checks if the provided path in $1 is mounted # mount | awk -v DIR="$1" '{if ($3 == DIR) { exit 0}} ENDFILE{exit -1}' @@ -205,12 +220,16 @@ finit() { zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --title "RetroDECK" --text="EmulationStation will now initialize the system.\nPlease DON'T EDIT THE ROMS LOCATION, just select:\n\nCREATE DIRECTORIES\nYES\nOK\nQUIT\n\nRetroDECK will manage the rest." # Recreating the folder - /var/config/retrodeck/tools/ + rm -rfv /var/config/emulationstation/ + rm -rfv /var/config/retrodeck/tools/ mkdir -pv /var/config/emulationstation/ + # Initializing ES-DE # TODO: after the next update of ES-DE this will not be needed start_retrodeck + mkdir -pv /var/config/retrodeck/tools/ + zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --title "RetroDECK" --text="RetroDECK will now install the needed files.\nPlease wait up to one minute,\nanother message will notify when the process will be finished.\n\nPress OK to continue." # Initializing ROMs folder - Original in retrodeck home (or SD Card)