TOOLS: fixed scripts

This commit is contained in:
XargonWan 2022-04-25 11:45:26 +09:00
parent 96e1804a82
commit a764c68ada
2 changed files with 13 additions and 7 deletions

View file

@ -18,8 +18,12 @@ then # found external folder and not the internal
new_roms_path=~/retrodeck
fi
mkdir -p $new_roms_path
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
kdialog --title "RetroDECK" --warningyesno "Should I move the roms from\n\n$roms_path/roms\n\nto\n\n$new_roms_path/roms?"
if [ $? == 0 ] #yes
then
mkdir -p $new_roms_path
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

View file

@ -1,5 +1,7 @@
#!/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?"
if [ $? == 0 ]; then
retroarch
if [ $? == 0 ]
then
retroarch
fi