mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 15:35:38 +00:00
WRAPPER: fixed the emulationstation folder handling
This commit is contained in:
parent
46011bfa70
commit
5fa4ec4f77
21
retrodeck.sh
21
retrodeck.sh
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue