Emulator configs code cleanup

This commit is contained in:
XargonWan 2022-04-23 21:35:33 +09:00
parent 74a7549104
commit 3370734643
3 changed files with 16 additions and 18 deletions

View file

@ -748,7 +748,6 @@ modules:
# These must be put in home folder, managed by retrodeck.sh # These must be put in home folder, managed by retrodeck.sh
- mkdir -p ${FLATPAK_DEST}/retrodeck/ - mkdir -p ${FLATPAK_DEST}/retrodeck/
- cp es_settings.xml ${FLATPAK_DEST}/retrodeck/es_settings.xml - cp es_settings.xml ${FLATPAK_DEST}/retrodeck/es_settings.xml
- cp retrodeck-retroarch.cfg ${FLATPAK_DEST}/retrodeck/retrodeck-retroarch.cfg
# Logo, res # Logo, res
- rm -f /app/share/emulationstation/resources/graphics/splash.svg - rm -f /app/share/emulationstation/resources/graphics/splash.svg
@ -769,11 +768,13 @@ modules:
- cp com.xargon.retrodeck.desktop /app/share/applications/com.xargon.retrodeck.desktop - cp com.xargon.retrodeck.desktop /app/share/applications/com.xargon.retrodeck.desktop
# Configuring emulators: # Configuring emulators:
- mkdir -p ${FLATPAK_DEST}/retrodeck/emu-configs - mkdir -p ${FLATPAK_DEST}/retrodeck/emu-configs/
# RetroArch
- cp retroarch.cfg ${FLATPAK_DEST}/retrodeck/emu-configs/
# Dolphin # Dolphin
- cp Dolphin.ini ${FLATPAK_DEST}/retrodeck/emu-configs - cp Dolphin.ini ${FLATPAK_DEST}/retrodeck/emu-configs/
# Yuzu # Yuzu
- cp qt-config.ini ${FLATPAK_DEST}/retrodeck/emu-configs - cp qt-config.ini ${FLATPAK_DEST}/retrodeck/emu-configs/
#cleanup: ['*'] #cleanup: ['*']
sources: sources:

View file

@ -58,23 +58,20 @@ then
mkdir -p ~/retrodeck/states mkdir -p ~/retrodeck/states
mkdir -p ~/retrodeck/screenshots mkdir -p ~/retrodeck/screenshots
mkdir -p ~/retrodeck/bios mkdir -p ~/retrodeck/bios
mkdir -p /var/config/retroarch/ # ES-DE
cp -r /app/retrodeck/tools/* /var/config/retrodeck/tools/ cp -r /app/retrodeck/tools/* /var/config/retrodeck/tools/
rm -rf /var/config/retroarch/system
ln -s ~/retrodeck/bios /var/config/retroarch/system
# This should become a sed in the future
cp /app/retrodeck/retrodeck-retroarch.cfg /var/config/retroarch/retroarch.cfg
mkdir -p /var/config/emulationstation/.emulationstation/custom_systems/tools/ mkdir -p /var/config/emulationstation/.emulationstation/custom_systems/tools/
cp /app/retrodeck/tools-gamelist.xml /var/config/retrodeck/tools/gamelist.xml cp /app/retrodeck/tools-gamelist.xml /var/config/retrodeck/tools/gamelist.xml
mkdir -p /var/config/retroarch/cores/ # Initializing emulators configs
cp /app/share/libretro/cores/* /var/config/retroarch/cores/ emuconfigs=/app/retrodeck/emu-configs/
# Initializing standalone emulators configs # RetroArch
mkdir -p /var/config/retroarch/cores/
rm -rf /var/config/retroarch/system
ln -s ~/retrodeck/bios /var/config/retroarch/system
cp /app/share/libretro/cores/* /var/config/retroarch/cores/
cp $emuconfigs/retroarch.cfg /var/config/retroarch/
# Yuzu # Yuzu
mkdir -p ~/retrodeck/bios/switch/ mkdir -p ~/retrodeck/bios/switch/
@ -82,11 +79,11 @@ then
mkdir -p /var/data/yuzu/registered mkdir -p /var/data/yuzu/registered
ln -s ~/retrodeck/bios/switch/keys /var/data/yuzu/keys ln -s ~/retrodeck/bios/switch/keys /var/data/yuzu/keys
ln -s /var/data/yuzu/registered ~/retrodeck/bios/switch/registered ln -s /var/data/yuzu/registered ~/retrodeck/bios/switch/registered
cp /var/config/retroarch/emu-configs/qt-config.ini /var/config/yuzu/qt-config.ini cp $emuconfigs/qt-config.ini /var/config/yuzu/
# Dolphin # Dolphin
mkdir -p /var/config/dolphin-emu/ mkdir -p /var/config/dolphin-emu/
cp /var/config/retroarch/emu-configs/Dolphin.ini /var/config/dolphin-emu/Dolphin.ini cp $emuconfigs/Dolphin.ini /var/config/dolphin-emu/
# Locking RetroDECK # Locking RetroDECK
touch ~/retrodeck/.lock touch ~/retrodeck/.lock