mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-01-18 14:55:38 +00:00
Merge remote-tracking branch 'upstream/cooker-0.6.3b' into cooker-0.7.0b-icenine451
This commit is contained in:
commit
8d35c97ade
10
.github/workflows/cooker-selfhosted.yml
vendored
10
.github/workflows/cooker-selfhosted.yml
vendored
|
@ -17,9 +17,10 @@ jobs:
|
|||
runs-on: self-hosted
|
||||
steps:
|
||||
|
||||
# - name: Remove stuck mounts
|
||||
# run: sudo umount -f /home/administrator/actions-runner/_work/RetroDECK/RetroDECK/.flatpak-builder/rofiles/*
|
||||
# continue-on-error: true
|
||||
# Circumventing this bug: https://github.com/flatpak/flatpak-builder/issues/317
|
||||
- name: Remove stuck mounts
|
||||
run: sudo umount -f /home/ubuntu/actions-runner/_work/RetroDECK/RetroDECK/.flatpak-builder/rofiles/*
|
||||
continue-on-error: true
|
||||
|
||||
- name: Generate build ID
|
||||
id: generating_buildid
|
||||
|
@ -80,7 +81,8 @@ jobs:
|
|||
artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz"
|
||||
allowUpdates: true
|
||||
#prerelease: true
|
||||
draft: false
|
||||
makeLatest: true
|
||||
#draft: true
|
||||
token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
|
||||
repo: RetroDECK-cooker
|
||||
continue-on-error: true
|
||||
|
|
10
.github/workflows/main-selfhosted.yml
vendored
10
.github/workflows/main-selfhosted.yml
vendored
|
@ -17,9 +17,10 @@ jobs:
|
|||
runs-on: self-hosted
|
||||
steps:
|
||||
|
||||
# - name: Remove stuck mounts
|
||||
# run: sudo umount -f /home/administrator/actions-runner/_work/RetroDECK/RetroDECK/.flatpak-builder/rofiles/*
|
||||
# continue-on-error: true
|
||||
# Circumventing this bug: https://github.com/flatpak/flatpak-builder/issues/317
|
||||
- name: Remove stuck mounts
|
||||
run: sudo umount -f /home/ubuntu/actions-runner/_work/RetroDECK/RetroDECK/.flatpak-builder/rofiles/*
|
||||
continue-on-error: true
|
||||
|
||||
- name: Generate build ID
|
||||
id: generating_buildid
|
||||
|
@ -81,7 +82,8 @@ jobs:
|
|||
bodyFile: "body.md"
|
||||
artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz"
|
||||
allowUpdates: true
|
||||
prerelease: true
|
||||
#prerelease: true
|
||||
makeLatest: true
|
||||
token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
|
||||
repo: RetroDECK
|
||||
continue-on-error: true
|
||||
|
|
|
@ -14,11 +14,11 @@ Theme = darkfusion
|
|||
|
||||
|
||||
[Folders]
|
||||
Bios = ~/retrodeck/roms/bios
|
||||
Snapshots = ~/retrodeck/screenshots
|
||||
Savestates = ~/retrodeck/states/ps2/pcsx2
|
||||
MemoryCards = ~/retrodeck/saves/ps2/memcards
|
||||
Logs = ~/retrodeck/.logs
|
||||
Bios = RETRODECKHOMEDIR/roms/bios
|
||||
Snapshots = RETRODECKHOMEDIR/screenshots
|
||||
Savestates = RETRODECKHOMEDIR/states/ps2/pcsx2
|
||||
MemoryCards = RETRODECKHOMEDIR/saves/ps2/memcards
|
||||
Logs = RETRODECKHOMEDIR/.logs
|
||||
Cheats = /var/config/PCSX2/cheats
|
||||
CheatsWS = /var/config/PCSX2/cheats_ws
|
||||
CheatsNI = cheats_ni
|
||||
|
|
|
@ -296,10 +296,10 @@ Multitap2_Slot4_Filename = Mcd-Multitap2-Slot04.ps2
|
|||
|
||||
|
||||
[Folders]
|
||||
Bios = ~/retrodeck/bios
|
||||
Snapshots = ~/retrodeck/screenshots
|
||||
SaveStates = ~/retrodeck/states/ps2/pcsx2
|
||||
MemoryCards = ~/retrodeck/saves/ps2/pcsx2/memcards
|
||||
Bios = RETRODECKHOMEDIR/bios
|
||||
Snapshots = RETRODECKHOMEDIR/screenshots
|
||||
SaveStates = RETRODECKHOMEDIR/states/ps2/pcsx2
|
||||
MemoryCards = RETRODECKHOMEDIR/saves/ps2/pcsx2/memcards
|
||||
Logs = logs
|
||||
Cheats = cheats
|
||||
CheatsWS = cheats_ws
|
||||
|
@ -447,4 +447,4 @@ PressureModifier = 0.500000
|
|||
|
||||
|
||||
[GameList]
|
||||
RecursivePaths = ~/retrodeck/roms/ps2
|
||||
RecursivePaths = RETRODECKHOMEDIR/roms/ps2
|
|
@ -40,11 +40,11 @@ UseDefaultLangs=enabled
|
|||
UseDefaultCheats=enabled
|
||||
UseDefaultCheatsWS=enabled
|
||||
UseDefaultTextures=enabled
|
||||
Bios=~/retrodeck/roms/bios
|
||||
Snapshots=~/retrodeck/screenshots
|
||||
Savestates=~/retrodeck/states/ps2/pcsx2
|
||||
MemoryCards=~/retrodeck/saves/ps2/memcards
|
||||
Logs=~/retrodeck/.logs
|
||||
Bios=RETRODECKHOMEDIR/roms/bios
|
||||
Snapshots=RETRODECKHOMEDIR/screenshots
|
||||
Savestates=RETRODECKHOMEDIR/states/ps2/pcsx2
|
||||
MemoryCards=RETRODECKHOMEDIR/saves/ps2/memcards
|
||||
Logs=RETRODECKHOMEDIR/.logs
|
||||
Langs=/app/share/PCSX2/resources/locale
|
||||
Cheats=/var/config/PCSX2/cheats
|
||||
CheatsWS=/var/config/PCSX2/cheats_ws
|
||||
|
|
|
@ -104,9 +104,9 @@ use_cpu_jit=true
|
|||
use_cpu_jit\default=true
|
||||
|
||||
[Data%20Storage]
|
||||
nand_directory=/home/deck/retrodeck/saves/n3ds/citra/nand/
|
||||
nand_directory=RETRODECKHOMEDIR/saves/n3ds/citra/nand/
|
||||
nand_directory\default=false
|
||||
sdmc_directory=/home/deck/retrodeck/saves/n3ds/citra/sdmc/
|
||||
sdmc_directory=RETRODECKHOMEDIR/saves/n3ds/citra/sdmc/
|
||||
sdmc_directory\default=false
|
||||
use_custom_storage=true
|
||||
use_custom_storage\default=false
|
||||
|
@ -335,7 +335,7 @@ Paths\gamedirs\3\deep_scan=false
|
|||
Paths\gamedirs\3\deep_scan\default=true
|
||||
Paths\gamedirs\3\expanded=true
|
||||
Paths\gamedirs\3\expanded\default=true
|
||||
Paths\gamedirs\3\path=/home/deck/retrodeck/roms/n3ds
|
||||
Paths\gamedirs\3\path=RETRODECKHOMEDIR/roms/n3ds
|
||||
Paths\gamedirs\size=3
|
||||
Paths\language=en
|
||||
Paths\language\default=false
|
||||
|
@ -343,7 +343,7 @@ Paths\moviePlaybackPath=
|
|||
Paths\movieRecordPath=
|
||||
Paths\recentFiles=@Invalid()
|
||||
Paths\romsPath=
|
||||
Paths\screenshotPath=/home/deck/retrodeck/screenshots
|
||||
Paths\screenshotPath=RETRODECKHOMEDIR/screenshots
|
||||
Paths\screenshotPath\default=false
|
||||
Paths\symbolsPath=
|
||||
Paths\videoDumpingPath=
|
||||
|
@ -369,8 +369,8 @@ Shortcuts\Main%20Window\Decrease%20Speed%20Limit\KeySeq=-
|
|||
Shortcuts\Main%20Window\Decrease%20Speed%20Limit\KeySeq\default=true
|
||||
Shortcuts\Main%20Window\Exit%20Citra\Context=1
|
||||
Shortcuts\Main%20Window\Exit%20Citra\Context\default=true
|
||||
Shortcuts\Main%20Window\Exit%20Citra\KeySeq=T
|
||||
Shortcuts\Main%20Window\Exit%20Citra\KeySeq\default=false
|
||||
Shortcuts\Main%20Window\Exit%20Citra\KeySeq=Ctrl+Q
|
||||
Shortcuts\Main%20Window\Exit%20Citra\KeySeq\default=true
|
||||
Shortcuts\Main%20Window\Exit%20Fullscreen\Context=1
|
||||
Shortcuts\Main%20Window\Exit%20Fullscreen\Context\default=true
|
||||
Shortcuts\Main%20Window\Exit%20Fullscreen\KeySeq=Y
|
||||
|
@ -425,8 +425,8 @@ Shortcuts\Main%20Window\Stop%20Emulation\KeySeq=F5
|
|||
Shortcuts\Main%20Window\Stop%20Emulation\KeySeq\default=true
|
||||
Shortcuts\Main%20Window\Swap%20Screens\Context=1
|
||||
Shortcuts\Main%20Window\Swap%20Screens\Context\default=true
|
||||
Shortcuts\Main%20Window\Swap%20Screens\KeySeq=F9
|
||||
Shortcuts\Main%20Window\Swap%20Screens\KeySeq\default=true
|
||||
Shortcuts\Main%20Window\Swap%20Screens\KeySeq=T
|
||||
Shortcuts\Main%20Window\Swap%20Screens\KeySeq\default=false
|
||||
Shortcuts\Main%20Window\Toggle%203D\Context=2
|
||||
Shortcuts\Main%20Window\Toggle%203D\Context\default=true
|
||||
Shortcuts\Main%20Window\Toggle%203D\KeySeq=Ctrl+3
|
||||
|
|
|
@ -24,19 +24,19 @@ DSPHLE = True
|
|||
Fullscreen = True
|
||||
DisableScreenSaver = True
|
||||
[GBA]
|
||||
BIOS = ~/retrodeck/bios
|
||||
BIOS = RETRODECKHOMEDIR/bios
|
||||
Rom1 =
|
||||
Rom2 =
|
||||
Rom3 =
|
||||
Rom4 =
|
||||
SavesInRomPath = False
|
||||
SavesPath = ~/retrodeck/saves/gba
|
||||
SavesPath = RETRODECKHOMEDIR/saves/gba
|
||||
Threads = True
|
||||
[General]
|
||||
ISOPath0 = ~/retrodeck/roms/wii
|
||||
ISOPath1 = ~/retrodeck/roms/gc
|
||||
ISOPath0 = RETRODECKHOMEDIR/roms/wii
|
||||
ISOPath1 = RETRODECKHOMEDIR/roms/gc
|
||||
ISOPaths = 2
|
||||
WiiSDCardPath = ~/retrodeck/saves/wii/dolphin/sd.raw
|
||||
WiiSDCardPath = RETRODECKHOMEDIR/saves/wii/dolphin/sd.raw
|
||||
WirelessMac = 00:17:ab:83:9b:d4
|
||||
HotkeysRequireFocus = True
|
||||
RecursiveISOPaths = True
|
||||
|
|
|
@ -75,9 +75,9 @@ JIT_BranchOptimisations=1
|
|||
JIT_LiteralOptimisations=1
|
||||
JIT_FastMemory=1
|
||||
ExternalBIOSEnable=1
|
||||
BIOS9Path=~/retrodeck/bios/bios9.bin
|
||||
BIOS7Path=~/retrodeck/bios/bios7.bin
|
||||
FirmwarePath=~/retrodeck/bios/firmware.bin
|
||||
BIOS9Path=RETRODECKHOMEDIR/bios/bios9.bin
|
||||
BIOS7Path=RETRODECKHOMEDIR/bios/bios7.bin
|
||||
FirmwarePath=RETRODECKHOMEDIR/bios/firmware.bin
|
||||
DSiBIOS9Path=
|
||||
DSiBIOS7Path=
|
||||
DSiFirmwarePath=
|
||||
|
@ -123,8 +123,8 @@ RecentROM_6=
|
|||
RecentROM_7=
|
||||
RecentROM_8=
|
||||
RecentROM_9=
|
||||
SaveFilePath=~/retrodeck/saves/nds/melonds
|
||||
SavestatePath=~/retrodeck/states/nds/melonds
|
||||
SaveFilePath=RETRODECKHOMEDIR/saves/nds/melonds
|
||||
SavestatePath=RETRODECKHOMEDIR/states/nds/melonds
|
||||
CheatFilePath=
|
||||
EnableCheats=0
|
||||
MouseHide=0
|
||||
|
|
|
@ -3036,12 +3036,12 @@ run_ahead_hide_warnings = "false"
|
|||
run_ahead_secondary_instance = "true"
|
||||
runtime_log_directory = "default"
|
||||
save_file_compression = "false"
|
||||
savefile_directory = "~/retrodeck/saves"
|
||||
savefile_directory = "RETRODECKHOMEDIR/saves"
|
||||
savefiles_in_content_dir = "false"
|
||||
savestate_auto_index = "false"
|
||||
savestate_auto_load = "true"
|
||||
savestate_auto_save = "true"
|
||||
savestate_directory = "~/retrodeck/states"
|
||||
savestate_directory = "RETRODECKHOMEDIR/states"
|
||||
savestate_file_compression = "true"
|
||||
savestate_max_keep = "0"
|
||||
savestate_thumbnail_enable = "false"
|
||||
|
@ -3049,7 +3049,7 @@ savestates_in_content_dir = "false"
|
|||
scan_without_core_match = "false"
|
||||
screen_brightness = "100"
|
||||
screen_orientation = "0"
|
||||
screenshot_directory = "~/retrodeck/screenshots"
|
||||
screenshot_directory = "RETRODECKHOMEDIR/screenshots"
|
||||
screenshots_in_content_dir = "false"
|
||||
settings_show_accessibility = "true"
|
||||
settings_show_achievements = "true"
|
||||
|
|
|
@ -805,7 +805,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
|
||||
|
@ -813,13 +813,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/retrodeck/saves/switch/yuzu/nand
|
||||
nand_directory=RETRODECKHOMEDIR/saves/switch/yuzu/nand
|
||||
nand_directory\default=true
|
||||
sdmc_directory=/home/deck/retrodeck/saves/switch/yuzu/sdmc
|
||||
sdmc_directory=RETRODECKHOMEDIR/saves/switch/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
|
||||
|
@ -995,7 +995,7 @@ Paths\gamedirs\4\deep_scan=false
|
|||
Paths\gamedirs\4\deep_scan\default=true
|
||||
Paths\gamedirs\4\expanded=true
|
||||
Paths\gamedirs\4\expanded\default=true
|
||||
Paths\gamedirs\4\path=/home/deck/retrodeck/roms/switch
|
||||
Paths\gamedirs\4\path=RETRODECKHOMEDIR/roms/switch
|
||||
Paths\gamedirs\size=4
|
||||
Paths\language=en
|
||||
Paths\language\default=false
|
||||
|
@ -1004,7 +1004,7 @@ Paths\romsPath=
|
|||
Paths\symbolsPath=
|
||||
Screenshots\enable_screenshot_save_as=true
|
||||
Screenshots\enable_screenshot_save_as\default=true
|
||||
Screenshots\screenshot_path=/home/deck/retrodeck/screenshots/
|
||||
Screenshots\screenshot_path=RETRODECKHOMEDIR/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=Home+Dpad_Right
|
||||
|
|
|
@ -327,18 +327,6 @@
|
|||
<entry>~/bin/pcsx2*-Qt.AppImage</entry>
|
||||
</rule>
|
||||
</emulator>
|
||||
<emulator name="PCSX2-LEGACY">
|
||||
<!-- Sony PlayStation 2 emulator PCSX2 (legacy) -->
|
||||
<rule type="systempath">
|
||||
<entry>PCSX2</entry>
|
||||
<entry>pcsx2</entry>
|
||||
<entry>net.pcsx2.PCSX2</entry>
|
||||
</rule>
|
||||
<rule type="staticpath">
|
||||
<entry>/var/lib/flatpak/exports/bin/net.pcsx2.PCSX2</entry>
|
||||
<entry>~/.local/share/flatpak/exports/bin/net.pcsx2.PCSX2</entry>
|
||||
</rule>
|
||||
</emulator>
|
||||
<emulator name="PICO-8">
|
||||
<!-- PICO-8 Fantasy Console (game engine) -->
|
||||
<rule type="systempath">
|
||||
|
|
|
@ -824,7 +824,7 @@
|
|||
<fullname>Nintendo 3DS</fullname>
|
||||
<path>%ROMPATH%/n3ds</path>
|
||||
<extension>.3ds .3DS .3dsx .3DSX .app .APP .axf .AXF .cci .CCI .cxi .CXI .elf .ELF .7z .7Z .zip .ZIP</extension>
|
||||
<command label="Citra (Standalone)">%EMULATOR_CITRA% -f %ROM%</command>
|
||||
<command label="Citra (Standalone)">%EMULATOR_CITRA% %ROM%</command>
|
||||
<command label="Citra">%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/citra_libretro.so %ROM%</command>
|
||||
<command label="Citra 2018">%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/citra2018_libretro.so %ROM%</command>
|
||||
<platform>n3ds</platform>
|
||||
|
@ -1071,7 +1071,6 @@
|
|||
<command label="PCSX2 (Standalone)">%EMULATOR_PCSX2% -batch %ROM%</command>
|
||||
<extension>.bin .BIN .chd .CHD .ciso .CISO .cso .CSO .dump .DUMP .elf .ELF .gz .GZ .m3u .M3U .mdf .MDF .img .IMG .iso .ISO .isz .ISZ .ngr .NRG</extension>
|
||||
<command label="PCSX2">%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/pcsx2_libretro.so %ROM%</command>
|
||||
<!-- <command label="PCSX2 Legacy (Standalone)">%EMULATOR_PCSX2-LEGACY% -REMOVEME-nogui %ROM%</command> -->
|
||||
<!-- <command label="Play! (Standalone)">%EMULATOR_PLAY!% --disc %ROM%</command> -->
|
||||
<platform>ps2</platform>
|
||||
<theme>ps2</theme>
|
||||
|
@ -1614,7 +1613,7 @@
|
|||
<system>
|
||||
<name>tools</name>
|
||||
<fullname>RetroDECK Tools</fullname>
|
||||
<path>/var/config/retrodeck/tools</path>
|
||||
<path>/app/tools</path>
|
||||
<extension>.sh .SH</extension>
|
||||
<command>bash %ROM%</command>
|
||||
<platform>tools</platform>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<gameList>
|
||||
<game>
|
||||
<path>/app/bin/configurator.sh</path>
|
||||
<path>./configurator.sh</path>
|
||||
<name>RetroDECK Configurator</name>
|
||||
<desc>Change settings, move folders and more!</desc>
|
||||
<nogamecount>true</nogamecount>
|
||||
|
|
76
functions.sh
76
functions.sh
|
@ -868,6 +868,13 @@ dir_prep() {
|
|||
|
||||
echo -e "\n[DIR PREP]\nMoving $symlink in $real" #DEBUG
|
||||
|
||||
# if the symlink dir is already a symlink, unlink it first, to prevent recursion
|
||||
if [ -L "$symlink" ];
|
||||
then
|
||||
echo "$symlink is already a symlink, unlinking to prevent recursives" #DEBUG
|
||||
unlink "$symlink"
|
||||
fi
|
||||
|
||||
# if the dest dir exists we want to backup it
|
||||
if [ -d "$symlink" ];
|
||||
then
|
||||
|
@ -878,6 +885,7 @@ dir_prep() {
|
|||
# if the real dir is already a symlink, unlink it first
|
||||
if [ -L "$real" ];
|
||||
then
|
||||
echo "$real is already a symlink, unlinking to prevent recursives" #DEBUG
|
||||
unlink "$real"
|
||||
fi
|
||||
|
||||
|
@ -926,7 +934,7 @@ yuzu_init() {
|
|||
rm -rf /var/config/yuzu
|
||||
mkdir -pv /var/config/yuzu/
|
||||
cp -fvr $emuconfigs/yuzu/* /var/config/yuzu/
|
||||
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/yuzu/qt-config.ini
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/yuzu/qt-config.ini
|
||||
dir_prep "$rdhome/screenshots" "/var/data/yuzu/screenshots"
|
||||
dir_prep "$mods_folder/Yuzu" "/var/data/yuzu/load"
|
||||
}
|
||||
|
@ -939,7 +947,7 @@ dolphin_init() {
|
|||
rm -rf /var/config/dolphin-emu
|
||||
mkdir -pv /var/config/dolphin-emu/
|
||||
cp -fvr "$emuconfigs/dolphin/"* /var/config/dolphin-emu/
|
||||
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/dolphin-emu/Dolphin.ini
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/dolphin-emu/Dolphin.ini
|
||||
dir_prep "$rdhome/saves/gc/dolphin/EUR" "/var/data/dolphin-emu/GC/EUR"
|
||||
dir_prep "$rdhome/saves/gc/dolphin/USA" "/var/data/dolphin-emu/GC/USA"
|
||||
dir_prep "$rdhome/saves/gc/dolphin/JAP" "/var/data/dolphin-emu/GC/JAP"
|
||||
|
@ -959,7 +967,7 @@ primehack_init() {
|
|||
rm -rf /var/config/primehack
|
||||
mkdir -pv /var/config/primehack/
|
||||
cp -fvr "$emuconfigs/primehack/"* /var/config/primehack/
|
||||
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/primehack/Dolphin.ini
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/primehack/Dolphin.ini
|
||||
dir_prep "$rdhome/saves/gc/primehack/EUR" "/var/data/primehack/GC/EUR"
|
||||
dir_prep "$rdhome/saves/gc/primehack/USA" "/var/data/primehack/GC/USA"
|
||||
dir_prep "$rdhome/saves/gc/primehack/JAP" "/var/data/primehack/GC/JAP"
|
||||
|
@ -981,8 +989,8 @@ pcsx2_init() {
|
|||
mkdir -pv "$rdhome/saves/ps2/pcsx2/memcards"
|
||||
mkdir -pv "$rdhome/states/ps2/pcsx2"
|
||||
cp -fvr $emuconfigs/PCSX2/* /var/config/PCSX2/inis/
|
||||
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/PCSX2/inis/PCSX2_ui.ini
|
||||
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/PCSX2/inis/PCSX2.ini
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/PCSX2/inis/PCSX2_ui.ini
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/PCSX2/inis/PCSX2.ini
|
||||
#dir_prep "$rdhome/states/ps2/pcsx2" "/var/config/PCSX2/sstates"
|
||||
#dir_prep "$rdhome/screenshots" "/var/config/PCSX2/snaps"
|
||||
#dir_prep "$rdhome/.logs" "/var/config/PCSX2/logs"
|
||||
|
@ -1000,8 +1008,7 @@ melonds_init() {
|
|||
mkdir -pv "$rdhome/states/nds/melonds"
|
||||
dir_prep "$rdhome/bios" "/var/config/melonDS/bios"
|
||||
cp -fvr $emuconfigs/melonDS.ini /var/config/melonDS/
|
||||
# Replace ~/retrodeck with $rdhome as ~ cannot be understood by MelonDS
|
||||
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/melonDS/melonDS.ini
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/melonDS/melonDS.ini
|
||||
}
|
||||
|
||||
citra_init() {
|
||||
|
@ -1016,7 +1023,7 @@ citra_init() {
|
|||
dir_prep "$rdhome/bios/citra/sysdata" "/var/data/citra-emu/sysdata"
|
||||
dir_prep "$rdhome/.logs/citra" "/var/data/citra-emu/log"
|
||||
cp -fv $emuconfigs/citra/qt-config.ini /var/config/citra-emu/qt-config.ini
|
||||
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/citra-emu/qt-config.ini
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/citra-emu/qt-config.ini
|
||||
dir_prep "$mods_folder/Citra" "/var/data/citra-emu/load/mods/"
|
||||
dir_prep "$texture_packs_folder/Citra" "/var/data/citra-emu/load/textures/"
|
||||
}
|
||||
|
@ -1039,9 +1046,10 @@ xemu_init() {
|
|||
mkdir -pv $rdhome/saves/xbox/xemu/
|
||||
# removing config directory to wipe legacy files
|
||||
rm -rf /var/config/xemu
|
||||
mkdir -pv /var/data/xemu/
|
||||
cp -fv $emuconfigs/xemu.toml /var/data/xemu/xemu.toml
|
||||
sed -i 's#/home/deck/retrodeck#'$rdhome'#g' /var/data/xemu/xemu.toml
|
||||
rm -rf /var/data/xemu
|
||||
dir_prep "/var/config/xemu" "/var/data/xemu" # Creating config folder in /var/config for consistentcy and linking back to original location where emulator will look
|
||||
cp -fv $emuconfigs/xemu.toml /var/config/xemu/xemu.toml
|
||||
sed -i 's#/home/deck/retrodeck#'$rdhome'#g' /var/config/xemu/xemu.toml
|
||||
# Preparing HD dummy Image if the image is not found
|
||||
if [ ! -f $rdhome/bios/xbox_hdd.qcow2 ]
|
||||
then
|
||||
|
@ -1122,7 +1130,7 @@ ra_init() {
|
|||
mkdir -pv /var/config/retroarch/config/
|
||||
cp -rf $emuconfigs/retroarch/core-overrides/* /var/config/retroarch/config
|
||||
#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
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/retroarch/retroarch.cfg
|
||||
|
||||
# PPSSPP
|
||||
echo "--------------------------------"
|
||||
|
@ -1215,15 +1223,6 @@ cli_emulator_reset() {
|
|||
esac
|
||||
}
|
||||
|
||||
tools_init() {
|
||||
rm -rfv /var/config/retrodeck/tools/
|
||||
mkdir -pv /var/config/retrodeck/tools/
|
||||
cp -rfv /app/retrodeck/tools/* /var/config/retrodeck/tools/
|
||||
mkdir -pv /var/config/emulationstation/.emulationstation/custom_systems/tools/
|
||||
rm -rfv /var/config/retrodeck/tools/gamelist.xml
|
||||
cp -fv /app/retrodeck/tools-gamelist.xml /var/config/retrodeck/tools/gamelist.xml
|
||||
}
|
||||
|
||||
update_splashscreens() {
|
||||
# This script will purge any existing ES graphics and reload them from RO space into somewhere ES will look for it
|
||||
# USAGE: update_splashscreens
|
||||
|
@ -1244,6 +1243,7 @@ emulators_post_move() {
|
|||
dir_prep "$rdhome/bios" "/var/config/retroarch/system"
|
||||
dir_prep "$rdhome/.logs/retroarch" "/var/config/retroarch/logs"
|
||||
dir_prep "$rdhome/shaders/retroarch" "/var/config/retroarch/shaders"
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/retroarch/retroarch.cfg
|
||||
|
||||
# Yuzu section
|
||||
dir_prep "$rdhome/bios/switch/keys" "/var/data/yuzu/keys"
|
||||
|
@ -1252,10 +1252,10 @@ emulators_post_move() {
|
|||
dir_prep "$rdhome/saves/switch/yuzu/sdmc" "/var/data/yuzu/sdmc"
|
||||
dir_prep "$rdhome/.logs/yuzu" "/var/data/yuzu/log"
|
||||
dir_prep "$rdhome/screenshots" "/var/data/yuzu/screenshots"
|
||||
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/yuzu/qt-config.ini
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/yuzu/qt-config.ini
|
||||
|
||||
# Dolphin section
|
||||
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/dolphin-emu/Dolphin.ini
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/dolphin-emu/Dolphin.ini
|
||||
dir_prep "$rdhome/saves/gc/dolphin/EUR" "/var/data/dolphin-emu/GC/EUR"
|
||||
dir_prep "$rdhome/saves/gc/dolphin/USA" "/var/data/dolphin-emu/GC/USA"
|
||||
dir_prep "$rdhome/saves/gc/dolphin/JAP" "/var/data/dolphin-emu/GC/JAP"
|
||||
|
@ -1264,7 +1264,7 @@ emulators_post_move() {
|
|||
dir_prep "$rdhome/saves/wii/dolphin" "/var/data/dolphin-emu/Wii/"
|
||||
|
||||
# Primehack section
|
||||
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/primehack/Dolphin.ini
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/primehack/Dolphin.ini
|
||||
dir_prep "$rdhome/saves/gc/primehack/EUR" "/var/data/primehack/GC/EUR"
|
||||
dir_prep "$rdhome/saves/gc/primehack/USA" "/var/data/primehack/GC/USA"
|
||||
dir_prep "$rdhome/saves/gc/primehack/JAP" "/var/data/primehack/GC/JAP"
|
||||
|
@ -1273,17 +1273,17 @@ emulators_post_move() {
|
|||
dir_prep "$rdhome/saves/wii/primehack" "/var/data/primehack/Wii/"
|
||||
|
||||
# PCSX2 section
|
||||
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/PCSX2/inis/PCSX2_ui.ini
|
||||
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/PCSX2/inis/PCSX2.ini
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/PCSX2/inis/PCSX2_ui.ini
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/PCSX2/inis/PCSX2.ini
|
||||
|
||||
# MelonDS section
|
||||
dir_prep "$rdhome/bios" "/var/config/melonDS/bios"
|
||||
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/melonDS/melonDS.ini
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/melonDS/melonDS.ini
|
||||
|
||||
# Citra section
|
||||
dir_prep "$rdhome/bios/citra/sysdata" "/var/data/citra-emu/sysdata"
|
||||
dir_prep "$rdhome/.logs/citra" "/var/data/citra-emu/log"
|
||||
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/citra-emu/qt-config.ini
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/citra-emu/qt-config.ini
|
||||
|
||||
# RPCS3 section
|
||||
sed -i 's#/home/deck/retrodeck#'$rdhome'#g' /var/config/rpcs3/vfs.yml
|
||||
|
@ -1477,7 +1477,6 @@ finit() {
|
|||
|
||||
# Recreating the folder
|
||||
rm -rfv /var/config/emulationstation/
|
||||
rm -rfv /var/config/retrodeck/tools/
|
||||
mkdir -pv /var/config/emulationstation/
|
||||
|
||||
# Initializing ES-DE
|
||||
|
@ -1485,8 +1484,6 @@ finit() {
|
|||
emulationstation --home /var/config/emulationstation --create-system-dirs
|
||||
update_splashscreens
|
||||
|
||||
mkdir -pv /var/config/retrodeck/tools/
|
||||
|
||||
#zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --title "RetroDECK" --text="RetroDECK will now install the needed files.\nPlease wait up to one minute,\nanother message will notify when the process will be finished.\n\nPress OK to continue."
|
||||
|
||||
# Initializing ROMs folder - Original in retrodeck home (or SD Card)
|
||||
|
@ -1510,12 +1507,11 @@ finit() {
|
|||
# PICO-8
|
||||
dir_prep "$bios_folder/pico-8" "$HOME/.lexaloffle/pico-8" # Store binary and config files together. The .lexaloffle directory is a hard-coded location for the PICO-8 config file, cannot be changed
|
||||
dir_prep "$roms_folder/pico8" "$bios_folder/pico-8/carts" # Symlink default game location to RD roms for cleanliness (this location is overridden anyway by the --root_path launch argument anyway)
|
||||
dir_prep "$bios_folder/pico-8/cdata" "$saves_folder/pico-8" # PICO-8 saves folder
|
||||
dir_prep "$saves_folder/pico-8" "$bios_folder/pico-8/cdata" # PICO-8 saves folder
|
||||
|
||||
(
|
||||
ra_init
|
||||
standalones_init
|
||||
tools_init
|
||||
) |
|
||||
zenity --icon-name=net.retrodeck.retrodeck --progress --no-cancel --pulsate --auto-close \
|
||||
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||
|
@ -1749,3 +1745,17 @@ configurator_destination_choice_dialog() {
|
|||
|
||||
echo $choice
|
||||
}
|
||||
|
||||
configurator_reset_confirmation_dialog() {
|
||||
# This dialog provides a confirmation for any reset functions, before the reset is actually performed.
|
||||
# USAGE: $(configurator_reset_confirmation_dialog "emulator being reset" "action text")
|
||||
# This function will return a "true" if the user clicks Confirm, and "false" if they click Cancel.
|
||||
choice=$(zenity --title "RetroDECK Configurator Utility - Reset $1" --question --no-wrap --cancel-label="Cancel" --ok-label="Confirm" \
|
||||
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||
--text="$2")
|
||||
if [[ $? == "0" ]]; then
|
||||
echo "true"
|
||||
else
|
||||
echo "false"
|
||||
fi
|
||||
}
|
|
@ -36,15 +36,15 @@
|
|||
</screenshot>
|
||||
</screenshots>
|
||||
<description>
|
||||
<p>What is Retrodeck?
|
||||
RetroDECK is an emulation and retro gaming solution to catalog and play your game collection directly from Linux in one unified application.
|
||||
<p>What is Retrodeck?</p>
|
||||
<p>RetroDECK is an emulation and retro gaming solution to catalog and play your game collection directly from Linux in one unified application.
|
||||
It's inspired by other embedded emulation systems like AmberELEC, EmuELEC, CoreELEC, Lakka, and Batocera.
|
||||
RetroDECK is powered by EmulationStation Desktop Edition, that uses RetroArch and other standalone emulators to allow you to import and play your favorite games in a tidy environment.
|
||||
No other software is needed as everything it's already included in one package!</p>
|
||||
<p>BETA NOTICE: RetroDECK is still in Beta and the team is actively developing and adding more features.</p>
|
||||
<p>About the Beta:
|
||||
The primary focus during the beta period is on SteamOS and the Steam Deck but we hope to expand to more devices and general Linux desktop in the future (NOTE: It can be run on Linux desktop right now but there will be some manual configurations needed for input, storage location and other tiny hickups).</p>
|
||||
<p>NOTE: Albeit RetroDECK could possibily work on every distro, it's supported only on Steam Deck.</p>
|
||||
The primary focus during the beta period is on SteamOS and the Steam Deck but we hope to expand to more devices and general Linux desktop in the future</p>
|
||||
<p>NOTE: It can be run on Linux desktop right now but there will be some manual configurations needed for input, storage location and other tiny hickups.</p>
|
||||
<p>
|
||||
INSTALLATION INSTRUCTIONS FOR THE STEAM DECK:
|
||||
<ul>
|
||||
|
@ -54,18 +54,32 @@
|
|||
<li>4. [OPTIONAL] Download Steam Grids graphics for RetroDECK with BoilR</li>
|
||||
</ul>
|
||||
</p>
|
||||
<p>For more detailed information check our wiki:
|
||||
https://github.com/XargonWan/RetroDECK/wiki</p>
|
||||
<p>If you want to sponsor the project:
|
||||
https://www.patreon.com/RetroDECK</p>
|
||||
<p>If you want to join the RetroDECK community check our:
|
||||
Discord: https://discord.gg/Dz3szYsP8g
|
||||
Reddit: https://www.reddit.com/r/RetroDECK/</p>
|
||||
<p>For more detailed information check our wiki:</p>
|
||||
<p>https://github.com/XargonWan/RetroDECK/wiki</p>
|
||||
<p>If you want to sponsor the project:</p>
|
||||
<p>https://www.patreon.com/RetroDECK</p>
|
||||
<p>If you want to join the RetroDECK community check our:</p>
|
||||
<p>Discord: https://discord.gg/Dz3szYsP8g</p>
|
||||
<p>Reddit: https://www.reddit.com/r/RetroDECK/</p>
|
||||
<p>If you want to help out with the project join the "i-want-to-help" channel on our Discord.</p>
|
||||
</description>
|
||||
<project_license>GPL-3.0</project_license>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<releases>
|
||||
<release version="0.6.3b" date="2023-03-22">
|
||||
<url>https://github.com/XargonWan/RetroDECK/releases/tag/0.6.3b</url>
|
||||
<description>
|
||||
<ul>
|
||||
<li>Added support support for multiple file compression via CLI.</li>
|
||||
<li>Added support support for multiple file compression in the Configurator.</li>
|
||||
<li>Fixed some missing layout changes.</li>
|
||||
<li>Removed the reset tools command.</li>
|
||||
<li>Fixed a bug in the compression tool with certain filenames with spaces.</li>
|
||||
<li>Fixed a manifest bug that caused a conflict between Dolphin and Primehack in certain scenarios.</li>
|
||||
<li>Shipped a new configuration to account for the config format changes made by Yuzu and Citra in the latest updates.</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
<release version="0.6.2b" date="2023-03-15">
|
||||
<url>https://github.com/XargonWan/RetroDECK/releases/tag/0.6.2b</url>
|
||||
<description>
|
||||
|
|
|
@ -1068,14 +1068,15 @@ modules:
|
|||
- cp -rf res/extra-splashes/ ${FLATPAK_DEST}/retrodeck/graphics
|
||||
- cp -f res/icon.svg /app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg
|
||||
|
||||
# Tools
|
||||
- mv -f es-configs/tools-gamelist.xml ${FLATPAK_DEST}/retrodeck/
|
||||
|
||||
# Launchable scripts
|
||||
# RetroDECK core script
|
||||
- cp retrodeck.sh /app/bin/retrodeck.sh
|
||||
- chmod +x /app/bin/retrodeck.sh
|
||||
- cp tools/configurator.sh /app/bin/configurator.sh
|
||||
- chmod +x /app/bin/configurator.sh
|
||||
|
||||
# Tools
|
||||
- mkdir -p /app/tools
|
||||
- cp tools/configurator.sh /app/tools/configurator.sh
|
||||
- chmod +x /app/tools/configurator.sh
|
||||
- cp es-configs/tools-gamelist.xml /app/tools/gamelist.xml
|
||||
|
||||
# Function libraries
|
||||
- mkdir -p /app/libexec
|
||||
|
|
|
@ -35,12 +35,23 @@ post_update() {
|
|||
# In version 0.6.2b, the following changes were made that required config file updates/reset:
|
||||
# - Put Dolphin and Primehack save states in different folders inside $rd_home/states
|
||||
# - Fix symlink to hard-coded PICO-8 config folder (dir_prep doesn't like ~)
|
||||
# - Overwrite Citra and Yuzu configs, as controller mapping was broken due to emulator updates.
|
||||
|
||||
dir_prep "$rdhome/states/dolphin" "/var/data/dolphin-emu/StateSaves"
|
||||
dir_prep "$rdhome/states/primehack" "/var/data/primehack/StateSaves"
|
||||
|
||||
rm -rf "$HOME/~/" # Remove old incorrect location from 0.6.2b
|
||||
rm -f "$HOME/.lexaloffle/pico-8" # Remove old symlink to prevent recursion
|
||||
dir_prep "$bios_folder/pico-8" "$HOME/.lexaloffle/pico-8" # Store binary and config files together. The .lexaloffle directory is a hard-coded location for the PICO-8 config file, cannot be changed
|
||||
dir_prep "$saves_folder/pico-8" "$bios_folder/pico-8/cdata" # PICO-8 saves folder structure was backwards, fixing for consistency.
|
||||
|
||||
cp -fv $emuconfigs/citra/qt-config.ini /var/config/citra-emu/qt-config.ini
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/citra-emu/qt-config.ini
|
||||
cp -fvr $emuconfigs/yuzu/* /var/config/yuzu/
|
||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/yuzu/qt-config.ini
|
||||
|
||||
# Remove unneeded tools folder, as location has changed to RO space
|
||||
rm -rfv /var/config/retrodeck/tools/
|
||||
fi
|
||||
if [[ $prev_version -le "070" ]]; then
|
||||
# In version 0.7.0b, the following changes were made that required config file updates/reset or other changes to the filesystem:
|
||||
|
@ -62,7 +73,6 @@ post_update() {
|
|||
|
||||
# The following commands are run every time.
|
||||
|
||||
tools_init
|
||||
update_splashscreens
|
||||
update_rd_conf
|
||||
) |
|
||||
|
|
15
retrodeck.sh
15
retrodeck.sh
|
@ -20,7 +20,6 @@ Arguments:
|
|||
--configurator Starts the RetroDECK Configurator
|
||||
--compress <file> Compresses target file to .chd format. Supports .cue, .iso and .gdi formats
|
||||
--reset-emulator <emulator> Reset one or more emulator configs to the default values
|
||||
--reset-tools Reset the RetroDECK Tools section
|
||||
--reset-retrodeck Starts the initial RetroDECK installer (backup your data first!)
|
||||
|
||||
For flatpak run specific options please run: flatpak run -h
|
||||
|
@ -45,7 +44,7 @@ https://retrodeck.net
|
|||
exit
|
||||
;;
|
||||
--configurator*)
|
||||
sh /app/bin/configurator.sh
|
||||
sh /app/tools/configurator.sh
|
||||
exit
|
||||
;;
|
||||
--reset-emulator*)
|
||||
|
@ -67,18 +66,6 @@ https://retrodeck.net
|
|||
exit
|
||||
fi
|
||||
;;
|
||||
--reset-tools*)
|
||||
echo "You are about to reset the RetroDECK tools."
|
||||
read -p "Enter 'y' to continue, 'n' to stop: " response
|
||||
if [[ $response == [yY] ]]; then
|
||||
tools_init
|
||||
read -p "The process has been completed, press Enter key to start RetroDECK."
|
||||
shift # Continue launch after previous command is finished
|
||||
else
|
||||
read -p "The process has been cancelled, press Enter key to exit."
|
||||
exit
|
||||
fi
|
||||
;;
|
||||
--reset-retrodeck*)
|
||||
echo "You are about to reset RetroDECK completely!"
|
||||
read -p "Enter 'y' to continue, 'n' to stop: " response
|
||||
|
|
|
@ -87,6 +87,7 @@ configurator_reset_dialog() {
|
|||
case $emulator_to_reset in
|
||||
|
||||
"RetroArch" )
|
||||
if [[ $(configurator_reset_confirmation_dialog "RetroArch" "Are you sure you want to reset the RetroArch emulator to default settings?\n\nThis process cannot be undone.") == "true" ]]; then
|
||||
if [[ check_network_connectivity == "true" ]]; then
|
||||
ra_init
|
||||
configurator_process_complete_dialog "resetting $emulator_to_reset"
|
||||
|
@ -94,49 +95,94 @@ configurator_reset_dialog() {
|
|||
configurator_generic_dialog "You do not appear to be connected to a network with internet access.\n\nThe RetroArch reset process requires some files from the internet to function properly.\n\nPlease retry this process once a network connection is available."
|
||||
configurator_reset_dialog
|
||||
fi
|
||||
else
|
||||
configurator_generic_dialog "Reset process cancelled."
|
||||
configurator_reset_dialog
|
||||
fi
|
||||
;;
|
||||
|
||||
"Citra" )
|
||||
if [[ $(configurator_reset_confirmation_dialog "Citra" "Are you sure you want to reset the Citra emulator to default settings?\n\nThis process cannot be undone.") == "true" ]]; then
|
||||
citra_init
|
||||
configurator_process_complete_dialog "resetting $emulator_to_reset"
|
||||
else
|
||||
configurator_generic_dialog "Reset process cancelled."
|
||||
configurator_reset_dialog
|
||||
fi
|
||||
;;
|
||||
|
||||
"Dolphin" )
|
||||
if [[ $(configurator_reset_confirmation_dialog "Dolphin" "Are you sure you want to reset the Dolphin emulator to default settings?\n\nThis process cannot be undone.") == "true" ]]; then
|
||||
dolphin_init
|
||||
configurator_process_complete_dialog "resetting $emulator_to_reset"
|
||||
else
|
||||
configurator_generic_dialog "Reset process cancelled."
|
||||
configurator_reset_dialog
|
||||
fi
|
||||
;;
|
||||
|
||||
"Duckstation" )
|
||||
if [[ $(configurator_reset_confirmation_dialog "Duckstation" "Are you sure you want to reset the Duckstation emulator to default settings?\n\nThis process cannot be undone.") == "true" ]]; then
|
||||
duckstation_init
|
||||
configurator_process_complete_dialog "resetting $emulator_to_reset"
|
||||
else
|
||||
configurator_generic_dialog "Reset process cancelled."
|
||||
configurator_reset_dialog
|
||||
fi
|
||||
;;
|
||||
|
||||
"MelonDS" )
|
||||
if [[ $(configurator_reset_confirmation_dialog "MelonDS" "Are you sure you want to reset the MelonDS emulator to default settings?\n\nThis process cannot be undone.") == "true" ]]; then
|
||||
melonds_init
|
||||
configurator_process_complete_dialog "resetting $emulator_to_reset"
|
||||
else
|
||||
configurator_generic_dialog "Reset process cancelled."
|
||||
configurator_reset_dialog
|
||||
fi
|
||||
;;
|
||||
|
||||
"PCSX2" )
|
||||
if [[ $(configurator_reset_confirmation_dialog "PCSX2" "Are you sure you want to reset the PCSX2 emulator to default settings?\n\nThis process cannot be undone.") == "true" ]]; then
|
||||
pcsx2_init
|
||||
configurator_process_complete_dialog "resetting $emulator_to_reset"
|
||||
else
|
||||
configurator_generic_dialog "Reset process cancelled."
|
||||
configurator_reset_dialog
|
||||
fi
|
||||
;;
|
||||
|
||||
"PPSSPP" )
|
||||
if [[ $(configurator_reset_confirmation_dialog "PPSSPP" "Are you sure you want to reset the PPSSPP emulator to default settings?\n\nThis process cannot be undone.") == "true" ]]; then
|
||||
ppssppsdl_init
|
||||
configurator_process_complete_dialog "resetting $emulator_to_reset"
|
||||
else
|
||||
configurator_generic_dialog "Reset process cancelled."
|
||||
configurator_reset_dialog
|
||||
fi
|
||||
;;
|
||||
|
||||
"Primehack" )
|
||||
if [[ $(configurator_reset_confirmation_dialog "Primehack" "Are you sure you want to reset the Primehack emulator to default settings?\n\nThis process cannot be undone.") == "true" ]]; then
|
||||
primehack_init
|
||||
configurator_process_complete_dialog "resetting $emulator_to_reset"
|
||||
else
|
||||
configurator_generic_dialog "Reset process cancelled."
|
||||
configurator_reset_dialog
|
||||
fi
|
||||
;;
|
||||
|
||||
"RPCS3" )
|
||||
if [[ $(configurator_reset_confirmation_dialog "RPCS3" "Are you sure you want to reset the RPCS3 emulator to default settings?\n\nThis process cannot be undone.") == "true" ]]; then
|
||||
rpcs3_init
|
||||
configurator_process_complete_dialog "resetting $emulator_to_reset"
|
||||
else
|
||||
configurator_generic_dialog "Reset process cancelled."
|
||||
configurator_reset_dialog
|
||||
fi
|
||||
;;
|
||||
|
||||
"XEMU" )
|
||||
if [[ $(configurator_reset_confirmation_dialog "XEMU" "Are you sure you want to reset the XEMU emulator to default settings?\n\nThis process cannot be undone.") == "true" ]]; then
|
||||
if [[ check_network_connectivity == "true" ]]; then
|
||||
xemu_init
|
||||
configurator_process_complete_dialog "resetting $emulator_to_reset"
|
||||
|
@ -144,11 +190,20 @@ configurator_reset_dialog() {
|
|||
configurator_generic_dialog "You do not appear to be connected to a network with internet access.\n\nThe Xemu reset process requires some files from the internet to function properly.\n\nPlease retry this process once a network connection is available."
|
||||
configurator_reset_dialog
|
||||
fi
|
||||
else
|
||||
configurator_generic_dialog "Reset process cancelled."
|
||||
configurator_reset_dialog
|
||||
fi
|
||||
;;
|
||||
|
||||
"Yuzu" )
|
||||
if [[ $(configurator_reset_confirmation_dialog "Yuzu" "Are you sure you want to reset the Yuzu emulator to default settings?\n\nThis process cannot be undone.") == "true" ]]; then
|
||||
yuzu_init
|
||||
configurator_process_complete_dialog "resetting $emulator_to_reset"
|
||||
else
|
||||
configurator_generic_dialog "Reset process cancelled."
|
||||
configurator_reset_dialog
|
||||
fi
|
||||
;;
|
||||
|
||||
"" ) # No selection made or Back button clicked
|
||||
|
@ -159,7 +214,7 @@ configurator_reset_dialog() {
|
|||
;;
|
||||
|
||||
"Reset All Emulators" )
|
||||
|
||||
if [[ $(configurator_reset_confirmation_dialog "all emulators" "Are you sure you want to reset all emulators to default settings?\n\nThis process cannot be undone.") == "true" ]]; then
|
||||
if [[ check_network_connectivity == "true" ]]; then
|
||||
ra_init
|
||||
standalones_init
|
||||
|
@ -168,9 +223,14 @@ configurator_reset_dialog() {
|
|||
configurator_generic_dialog "You do not appear to be connected to a network with internet access.\n\nThe all-emulator reset process requires some files from the internet to function properly.\n\nPlease retry this process once a network connection is available."
|
||||
configurator_reset_dialog
|
||||
fi
|
||||
else
|
||||
configurator_generic_dialog "Reset process cancelled."
|
||||
configurator_reset_dialog
|
||||
fi
|
||||
;;
|
||||
|
||||
"Reset RetroDECK" )
|
||||
if [[ $(configurator_reset_confirmation_dialog "RetroDECK" "Are you sure you want to reset RetroDECK entirely?\n\nThis process cannot be undone.") == "true" ]]; then
|
||||
zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap \
|
||||
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||
--title "RetroDECK Configurator Utility - Reset RetroDECK" \
|
||||
|
@ -178,6 +238,10 @@ configurator_reset_dialog() {
|
|||
rm -f "$lockfile"
|
||||
rm -f "$rd_conf"
|
||||
configurator_process_complete_dialog "resetting RetroDECK"
|
||||
else
|
||||
configurator_generic_dialog "Reset process cancelled."
|
||||
configurator_reset_dialog
|
||||
fi
|
||||
;;
|
||||
|
||||
"" ) # No selection made or Back button clicked
|
||||
|
@ -567,11 +631,11 @@ configurator_check_bios_files_basic() {
|
|||
do
|
||||
bios_file_found="No"
|
||||
bios_hash_matched="No"
|
||||
if [[ -f "$bios_dir/$bios_subdir$bios_file" ]]; then
|
||||
if [[ -f "$bios_folder/$bios_subdir$bios_file" ]]; then
|
||||
bios_file_found="Yes"
|
||||
if [[ $bios_hash == "Unknown" ]]; then
|
||||
bios_hash_matched="Unknown"
|
||||
elif [[ $(md5sum "$bios_dir/$bios_subdir$bios_file" | awk '{ print $1 }') == "$bios_hash" ]]; then
|
||||
elif [[ $(md5sum "$bios_folder/$bios_subdir$bios_file" | awk '{ print $1 }') == "$bios_hash" ]]; then
|
||||
bios_hash_matched="Yes"
|
||||
fi
|
||||
fi
|
||||
|
@ -594,11 +658,11 @@ configurator_check_bios_files_advanced() {
|
|||
do
|
||||
bios_file_found="No"
|
||||
bios_hash_matched="No"
|
||||
if [[ -f "$bios_dir/$bios_subdir$bios_file" ]]; then
|
||||
if [[ -f "$bios_folder/$bios_subdir$bios_file" ]]; then
|
||||
bios_file_found="Yes"
|
||||
if [[ $bios_hash == "Unknown" ]]; then
|
||||
bios_hash_matched="Unknown"
|
||||
elif [[ $(md5sum "$bios_dir/$bios_subdir$bios_file" | awk '{ print $1 }') == "$bios_hash" ]]; then
|
||||
elif [[ $(md5sum "$bios_folder/$bios_subdir$bios_file" | awk '{ print $1 }') == "$bios_hash" ]]; then
|
||||
bios_hash_matched="Yes"
|
||||
fi
|
||||
fi
|
||||
|
@ -621,6 +685,7 @@ configurator_troubleshooting_tools_dialog() {
|
|||
choice=$(zenity --list --title="RetroDECK Configurator Utility - Change Options" --cancel-label="Back" \
|
||||
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --width=1200 --height=720 \
|
||||
--column="Choice" --column="Action" \
|
||||
"Move RetroDECK" "Move RetroDECK files between internal/SD card or to a custom location" \
|
||||
"Multi-file game structure check" "Verify the proper structure of multi-file or multi-disc games" \
|
||||
"Basic BIOS file check" "Show a list of systems that BIOS files are found for" \
|
||||
"Advanced BIOS file check" "Show advanced information about common BIOS files" \
|
||||
|
@ -628,6 +693,11 @@ configurator_troubleshooting_tools_dialog() {
|
|||
|
||||
case $choice in
|
||||
|
||||
"Move RetroDECK" )
|
||||
configurator_generic_dialog "This option will move the RetroDECK data folder (ROMs, saves, BIOS etc.) to a new location.\n\nPlease choose where to move the RetroDECK data folder."
|
||||
configurator_move_dialog
|
||||
;;
|
||||
|
||||
"Multi-file game structure check" )
|
||||
configurator_check_multifile_game_structure
|
||||
;;
|
||||
|
@ -880,17 +950,15 @@ configurator_developer_dialog() {
|
|||
|
||||
configurator_welcome_dialog() {
|
||||
if [[ $developer_options == "true" ]]; then
|
||||
welcome_menu_options=("Move RetroDECK" "Move RetroDECK files between internal/SD card or to a custom location" \
|
||||
"RetroArch Presets" "Change RetroArch presets, log into RetroAchievements etc." \
|
||||
welcome_menu_options=("RetroArch Presets" "Change RetroArch presets, log into RetroAchievements etc." \
|
||||
"Emulator Options" "Launch and configure each emulators settings (for advanced users)" \
|
||||
"Tools and Troubleshooting" "Run RetroDECK troubleshooting tools for common issues" \
|
||||
"Tools and Troubleshooting" "Move RetroDECK to a new location, compress games and perform basic troubleshooting" \
|
||||
"Reset" "Reset specific parts or all of RetroDECK" \
|
||||
"Developer Options" "Welcome to the DANGER ZONE")
|
||||
else
|
||||
welcome_menu_options=("Move RetroDECK" "Move RetroDECK files between internal/SD card or to a custom location" \
|
||||
"RetroArch Presets" "Change RetroArch presets, log into RetroAchievements etc." \
|
||||
welcome_menu_options=("RetroArch Presets" "Change RetroArch presets, log into RetroAchievements etc." \
|
||||
"Emulator Options" "Launch and configure each emulators settings (for advanced users)" \
|
||||
"Tools and Troubleshooting" "Run RetroDECK troubleshooting tools for common issues" \
|
||||
"Tools and Troubleshooting" "Move RetroDECK to a new location, compress games and perform basic troubleshooting" \
|
||||
"Reset" "Reset specific parts or all of RetroDECK" )
|
||||
fi
|
||||
|
||||
|
@ -901,11 +969,6 @@ configurator_welcome_dialog() {
|
|||
|
||||
case $choice in
|
||||
|
||||
"Move RetroDECK" )
|
||||
configurator_generic_dialog "This option will move the RetroDECK data folder (ROMs, saves, BIOS etc.) to a new location.\n\nPlease choose where to move the RetroDECK data folder."
|
||||
configurator_move_dialog
|
||||
;;
|
||||
|
||||
"RetroArch Presets" )
|
||||
configurator_retroarch_options_dialog
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue