mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05:39 +00:00
XargonWan
4cd537d809
- Tweaked some retroarch and DE settings - Updated and integrated startup script
31 lines
1.3 KiB
Bash
31 lines
1.3 KiB
Bash
#!/bin/bash
|
|
|
|
# if we got the .lock file it means that it's not a first run
|
|
if [ ! -f ~/retrodeck/.lock ]
|
|
then
|
|
#mkdir -p /tmp/retrodeck_logs/
|
|
#ln -s /tmp/retrodeck_logs/ ~/retrodeck/logs/
|
|
#touch ~/retrodeck/logs/retrodeck.log
|
|
#echo "RetroDECK: .lock file not found, initializing."
|
|
mkdir -p ~/retrodeck/.emulationstation
|
|
mkdir -p ~/retrodeck/saves
|
|
mkdir -p ~/retrodeck/states
|
|
mkdir -p ~/retrodeck/screenshots
|
|
mkdir -p /var/config/retroarch/
|
|
rm -rf ~/retrodeck/.emulationstation/es_settings.xml
|
|
rm -rf ~/retrodeck/.emulationstation/es_input.xml
|
|
cp /app/retrodeck/es_settings.xml ~/retrodeck/.emulationstation/es_settings.xml
|
|
cp /app/retrodeck/es_settings.xml ~/retrodeck/.emulationstation/es_input.xml
|
|
cp /app/retrodeck/retrodeck-retroarch.cfg /var/config/retroarch/retroarch.cfg
|
|
touch ~/retrodeck/.lock
|
|
fi
|
|
|
|
#numFields=$(xmlstarlet sel -t -m '//system' -o "." /app/share/emulationstation/resources/systems/unix/es_systems.xml | wc -c)
|
|
#for i in $(seq 1 $numFields); do
|
|
# system=$(xmlstarlet sel -t -m "//system[$i]" -v "name" /app/share/emulationstation/resources/systems/unix/es_systems.xml)
|
|
# if test -d ~/retrodeck/roms/${system}; then
|
|
# mkdir -p ~/retrodeck/roms/${system}
|
|
# fi
|
|
#done
|
|
|
|
emulationstation --home ~/retrodeck/ |