mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-02-06 06:55:37 +00:00
TOOLS: fixed scripts
This commit is contained in:
parent
96e1804a82
commit
a764c68ada
|
@ -18,8 +18,12 @@ then # found external folder and not the internal
|
||||||
new_roms_path=~/retrodeck
|
new_roms_path=~/retrodeck
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p $new_roms_path
|
kdialog --title "RetroDECK" --warningyesno "Should I move the roms from\n\n$roms_path/roms\n\nto\n\n$new_roms_path/roms?"
|
||||||
mv -f $roms_path/roms $new_roms_path/roms
|
if [ $? == 0 ] #yes
|
||||||
rm -f /var/config/emulationstation/ROMs
|
then
|
||||||
ln -s $new_roms_path/roms /var/config/emulationstation/ROMs
|
mkdir -p $new_roms_path
|
||||||
rm -f $roms_path/roms
|
mv -f $roms_path/roms $new_roms_path/roms
|
||||||
|
rm -f /var/config/emulationstation/ROMs
|
||||||
|
ln -s $new_roms_path/roms /var/config/emulationstation/ROMs
|
||||||
|
rm -f $roms_path/roms
|
||||||
|
fi
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
kdialog --title "RetroDECK" --warningyesno "Doing some changes in the RetroArch configuration may create serious issues, please continue only if you know what you're doing.\n\nDo you want to continue?"
|
kdialog --title "RetroDECK" --warningyesno "Doing some changes in the RetroArch configuration may create serious issues, please continue only if you know what you're doing.\n\nDo you want to continue?"
|
||||||
if [ $? == 0 ]; then
|
if [ $? == 0 ]
|
||||||
retroarch
|
then
|
||||||
|
retroarch
|
||||||
|
fi
|
Loading…
Reference in a new issue