From 31996cc53bb4680f2ced64c5ff1b44c2d220f78e Mon Sep 17 00:00:00 2001 From: Steam Deck User Date: Wed, 8 Jun 2022 14:42:36 +0200 Subject: [PATCH] EMULATORS: sedded configs, ~/retrodeck with --- emu-configs/Dolphin/Dolphin.ini | 6 +++--- emu-configs/PCSX2_ui.ini | 16 ++++++++-------- emu-configs/yuzu-qt-config.ini | 12 ++++++------ retrodeck.sh | 3 +++ 4 files changed, 20 insertions(+), 17 deletions(-) diff --git a/emu-configs/Dolphin/Dolphin.ini b/emu-configs/Dolphin/Dolphin.ini index b5600273..bb6ae945 100644 --- a/emu-configs/Dolphin/Dolphin.ini +++ b/emu-configs/Dolphin/Dolphin.ini @@ -24,19 +24,19 @@ DSPHLE = True Fullscreen = True DisableScreenSaver = True [GBA] -BIOS = /home/deck/.var/app/net.retrodeck.retrodeck/data/dolphin-emu/GBA/gba_bios.bin +BIOS = /var/data/dolphin-emu/GBA/gba_bios.bin Rom1 = Rom2 = Rom3 = Rom4 = SavesInRomPath = False -SavesPath = /home/deck/.var/app/net.retrodeck.retrodeck/data/dolphin-emu/GBA/Saves/ +SavesPath = /var/data/dolphin-emu/GBA/Saves/ Threads = True [General] ISOPath0 = /run/user/1000/doc/9cd3cde7/wii ISOPath1 = /run/user/1000/doc/14708e0c/gc ISOPaths = 2 -WiiSDCardPath = /home/deck/.var/app/net.retrodeck.retrodeck/data/dolphin-emu/Wii/sd.raw +WiiSDCardPath = /var/data/dolphin-emu/Wii/sd.raw WirelessMac = 00:17:ab:83:9b:d4 HotkeysRequireFocus = True RecursiveISOPaths = True diff --git a/emu-configs/PCSX2_ui.ini b/emu-configs/PCSX2_ui.ini index 3138e970..00f098ce 100644 --- a/emu-configs/PCSX2_ui.ini +++ b/emu-configs/PCSX2_ui.ini @@ -40,16 +40,16 @@ UseDefaultLangs=enabled UseDefaultCheats=enabled UseDefaultCheatsWS=enabled UseDefaultTextures=enabled -Bios=/home/deck/retrodeck/bios -Snapshots=/home/deck/.var/app/net.retrodeck.retrodeck/config/PCSX2/snaps -Savestates=/home/deck/.var/app/net.retrodeck.retrodeck/config/PCSX2/sstates -MemoryCards=/home/deck/.var/app/net.retrodeck.retrodeck/config/PCSX2/memcards -Logs=/home/deck/.var/app/net.retrodeck.retrodeck/config/PCSX2/logs +Bios=~/retrodeck/bios +Snapshots=/var/config/PCSX2/snaps +Savestates=/var/config/PCSX2/sstates +MemoryCards=/var/config/PCSX2/memcards +Logs=/var/config/PCSX2/logs Langs=/app/share/PCSX2/resources/locale -Cheats=/home/deck/.var/app/net.retrodeck.retrodeck/config/PCSX2/cheats -CheatsWS=/home/deck/.var/app/net.retrodeck.retrodeck/config/PCSX2/cheats_ws +Cheats=/var/config/PCSX2/cheats +CheatsWS=/var/config/PCSX2/cheats_ws Cache=/var/config/PCSX2/cache -Textures=/home/deck/.var/app/net.retrodeck.retrodeck/config/PCSX2/textures +Textures=/var/config/PCSX2/textures RunIso=/var/config/PCSX2 RunELF=/var/config/PCSX2 RunDisc= diff --git a/emu-configs/yuzu-qt-config.ini b/emu-configs/yuzu-qt-config.ini index d04c6f0d..c585ccef 100644 --- a/emu-configs/yuzu-qt-config.ini +++ b/emu-configs/yuzu-qt-config.ini @@ -789,7 +789,7 @@ cpuopt_unsafe_unfuse_fma=true cpuopt_unsafe_unfuse_fma\default=true [Data%20Storage] -dump_directory=/home/deck/.var/app/net.retrodeck.retrodeck/data/yuzu/dump +dump_directory=/var/data/yuzu/dump dump_directory\default=true gamecard_current_game=false gamecard_current_game\default=true @@ -797,13 +797,13 @@ gamecard_inserted=false gamecard_inserted\default=true gamecard_path= gamecard_path\default=true -load_directory=/home/deck/.var/app/net.retrodeck.retrodeck/data/yuzu/load +load_directory=/var/data/yuzu/load load_directory\default=true -nand_directory=/home/deck/.var/app/net.retrodeck.retrodeck/data/yuzu/nand +nand_directory=/var/data/yuzu/nand nand_directory\default=true -sdmc_directory=/home/deck/.var/app/net.retrodeck.retrodeck/data/yuzu/sdmc +sdmc_directory=/var/data/yuzu/sdmc sdmc_directory\default=true -tas_directory=/home/deck/.var/app/net.retrodeck.retrodeck/data/yuzu/tas +tas_directory=/var/data/yuzu/tas tas_directory\default=true use_virtual_sd=true use_virtual_sd\default=true @@ -945,7 +945,7 @@ Paths\romsPath=~/retrodeck/roms/switch Paths\symbolsPath= Screenshots\enable_screenshot_save_as=true Screenshots\enable_screenshot_save_as\default=true -Screenshots\screenshot_path=/home/deck/.var/app/net.retrodeck.retrodeck/data/yuzu/screenshots +Screenshots\screenshot_path=/var/data/yuzu/screenshots Shortcuts\Main%20Window\Audio%20Mute\Unmute\Context=1 Shortcuts\Main%20Window\Audio%20Mute\Unmute\Context\default=true Shortcuts\Main%20Window\Audio%20Mute\Unmute\Controller_KeySeq= diff --git a/retrodeck.sh b/retrodeck.sh index c3e47f19..039bbb86 100644 --- a/retrodeck.sh +++ b/retrodeck.sh @@ -103,6 +103,7 @@ standalones_init() { # configuring Yuzu mkdir -pv /var/config/yuzu/ cp -fv $emuconfigs/yuzu-qt-config.ini /var/config/yuzu/qt-config.ini + sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/yuzu/qt-config.ini dir_prep "$rdhome/screenshots" "/var/data/yuzu/screenshots" # Dolphin @@ -114,6 +115,7 @@ standalones_init() { # pcsx2 mkdir -pv /var/config/PCSX2/inis/ cp -fv $emuconfigs/PCSX2_ui.ini /var/config/PCSX2/inis/ + sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/PCSX2/inis/PCSX2_ui.ini cp -fv $emuconfigs/GS.ini /var/config/PCSX2/inis/ cp -fv $emuconfigs/PCSX2_vm.ini /var/config/PCSX2/inis/ dir_prep "$rdhome/states" "/var/config/PCSX2/sstates" @@ -147,6 +149,7 @@ ra_init() { cp -f $emuconfigs/retroarch.cfg /var/config/retroarch/ cp -f $emuconfigs/retroarch-core-options.cfg /var/config/retroarch/ #rm -rf $rdhome/bios/bios # in some situations a double bios symlink is created + sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/retroarch/retroarch.cfg } create_lock() {