From 28a0b87cdaeed65f61322e1f6f5dfa66e105c63a Mon Sep 17 00:00:00 2001 From: XargonWan Date: Sat, 7 Oct 2023 11:50:16 +0200 Subject: [PATCH] Added "Yuzu Custom" as additional "custom" emulator --- .../how-to-install-custom-emulators.txt | 15 +++++++++++++++ .../reference_lists/helper_files_list.cfg | 3 +++ es-configs/es_find_rules.xml | 6 ++++++ es-configs/es_systems.xml | 1 + functions/prepare_emulator.sh | 1 + 5 files changed, 26 insertions(+) create mode 100644 emu-configs/defaults/retrodeck/helper_files/how-to-install-custom-emulators.txt diff --git a/emu-configs/defaults/retrodeck/helper_files/how-to-install-custom-emulators.txt b/emu-configs/defaults/retrodeck/helper_files/how-to-install-custom-emulators.txt new file mode 100644 index 00000000..8a23569a --- /dev/null +++ b/emu-configs/defaults/retrodeck/helper_files/how-to-install-custom-emulators.txt @@ -0,0 +1,15 @@ +There is the possibility to provide custom emutlators provided by the user. + +At the moment the only one available is Yuzu. +Create a folder named "yuzu" lowercase and place there your AppImage, so the path should be: +retrodeck/customs/yuzu/yuzu*.AppImage + +WARNINGS on custom emulators: +- Custom emulators are self managed: means that RetroDECK Team is not supporting nor troubleshooting them. +- Custom emulators could potentially break other included emulators configs: use them at your own risk. +- Remember to make the binary executable, otherwise they won't be launched. + +Related wiki article can be found here: +--- + +The RetroDECK Team diff --git a/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg b/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg index aaa8ad51..6700e277 100644 --- a/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg +++ b/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg @@ -16,3 +16,6 @@ how-to-install-PCSX2-textures.txt^$texture_packs_folder/PCSX2 how-to-install-Mupen64Plus-textures.txt^$texture_packs_folder/RetroArch-Mupen64Plus/cache how-to-install-Mupen64Plus-textures.txt^$texture_packs_folder/RetroArch-Mupen64Plus/hires_texture how-to-install-Duckstation-textures.txt^$texture_packs_folder/Duckstation + +# customs +how-to-install-custom-emulators.txt^$rdhome/customs diff --git a/es-configs/es_find_rules.xml b/es-configs/es_find_rules.xml index e8596a88..c35b67f6 100644 --- a/es-configs/es_find_rules.xml +++ b/es-configs/es_find_rules.xml @@ -841,6 +841,12 @@ ~/.local/share/flatpak/exports/bin/org.yuzu_emu.yuzu + + + + ~/retrodeck/customs/yuzu/yuzu*.AppImage + + diff --git a/es-configs/es_systems.xml b/es-configs/es_systems.xml index 5ffe80a6..b9da6c2e 100644 --- a/es-configs/es_systems.xml +++ b/es-configs/es_systems.xml @@ -1657,6 +1657,7 @@ .nca .NCA .nro .NRO .nso .NSO .nsp .NSP .xci .XCI %INJECT%=%BASENAME%.esprefix %EMULATOR_YUZU% -f -g %ROM% %EMULATOR_RYUJINX% %ROM% + %INJECT%=%BASENAME%.esprefix %EMULATOR_YUZU-CUSTOM% -f -g %ROM% switch switch diff --git a/functions/prepare_emulator.sh b/functions/prepare_emulator.sh index ca61f99e..0f880fe3 100644 --- a/functions/prepare_emulator.sh +++ b/functions/prepare_emulator.sh @@ -642,6 +642,7 @@ prepare_emulator() { dir_prep "$logs_folder/yuzu" "/var/data/yuzu/log" dir_prep "$screenshots_folder" "/var/data/yuzu/screenshots" dir_prep "$mods_folder/Yuzu" "/var/data/yuzu/load" + mkdir -pv "$rdhome/customs/yuzu" # removing dead symlinks as they were present in a past version if [ -d $bios_folder/switch ]; then find $bios_folder/switch -xtype l -exec rm {} \;