From be123075a54bf70b87ec6227598dc8b4c08c8377 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 11 Apr 2023 12:05:13 +0000 Subject: [PATCH] CEMU: basic config, need to be finalized [skip ci] --- emu-configs/cemu/settings.xml | 112 ++++++++++++++++++++++++++++ es-configs/es_find_rules.xml | 1 + functions.sh | 26 +++++++ net.retrodeck.retrodeck.appdata.xml | 13 ++++ 4 files changed, 152 insertions(+) create mode 100644 emu-configs/cemu/settings.xml diff --git a/emu-configs/cemu/settings.xml b/emu-configs/cemu/settings.xml new file mode 100644 index 00000000..8efd56fb --- /dev/null +++ b/emu-configs/cemu/settings.xml @@ -0,0 +1,112 @@ + + + 0 + false + RETRODECKHOMEDIR/bios/cemu + true + 0 + true + false + false + true + false + true + false + true + + true + 1 + + -1 + -1 + + + -1 + -1 + + false + false + + -1 + -1 + + + -1 + -1 + + false + + + + 500 + 60 + 50 + 140 + 160 + 306 + + + + + RETRODECKHOMEDIR/roms/wiiu + + + + + 1 + 00000000000000000000000000000000 + 0 + true + 1 + 0 + 0 + false + true + + 0 + 4294967295 + 100 + true + false + false + false + false + false + false + + + 1 + 4294967295 + 100 + true + false + true + true + + + + + 2147483649 + false + 0 + + + 0 + 1337 + + + + + \ No newline at end of file diff --git a/es-configs/es_find_rules.xml b/es-configs/es_find_rules.xml index 05835dd8..9179cb88 100644 --- a/es-configs/es_find_rules.xml +++ b/es-configs/es_find_rules.xml @@ -100,6 +100,7 @@ + Cemu-wrapper cemu Cemu diff --git a/functions.sh b/functions.sh index cf91b693..9912e50b 100644 --- a/functions.sh +++ b/functions.sh @@ -934,12 +934,28 @@ ryujinx_init() { dir_prep "$rdhome/bios/switch/keys" "/var/config/Ryujinx/system" } +cemu_init() { + echo "----------------------" + echo "Initializing CEMU" + echo "----------------------" + # removing config directory to wipe legacy files + rm -rf /var/config/Cemu + mkdir -pv /var/config/Cemu/ + cp -fvr "$emuconfigs/cemu/"* /var/config/Cemu/ + sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/Cemu/settings.xml + #TODO + #dir_prep "$rdhome/saves/wiiu/cemu" "/var/data/dolphin-emu/GC/EUR" + #dir_prep "$rdhome/screenshots" "/var/data/dolphin-emu/ScreenShots" + #dir_prep "$rdhome/states/cemu" "/var/data/dolphin-emu/StateSaves" +} + standalones_init() { # This script is configuring the standalone emulators with the default files present in emuconfigs folder echo "------------------------------------" echo "Initializing standalone emulators" echo "------------------------------------" + cemu_init citra_init dolphin_init duckstation_init @@ -1013,6 +1029,9 @@ cli_emulator_reset() { "retroarch" ) ra_init ;; + "cemu" ) + cemu_init + ;; "citra" ) citra_init ;; @@ -1118,6 +1137,13 @@ emulators_post_move() { # Ryujinx section sed -i 's#/home/deck/retrodeck#'$rdhome'#g' /var/config/Ryujinx/Config.json dir_prep "$rdhome/bios/switch/keys" "/var/config/Ryujinx/system" + + # Cemu section + sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/Cemu/settings.xml + #TODO + #dir_prep "$rdhome/saves/wiiu/cemu" "/var/data/dolphin-emu/GC/EUR" + #dir_prep "$rdhome/screenshots" "/var/data/dolphin-emu/ScreenShots" + #dir_prep "$rdhome/states/cemu" "/var/data/dolphin-emu/StateSaves" } create_lock() { diff --git a/net.retrodeck.retrodeck.appdata.xml b/net.retrodeck.retrodeck.appdata.xml index fd3b3e95..17ba2d4f 100644 --- a/net.retrodeck.retrodeck.appdata.xml +++ b/net.retrodeck.retrodeck.appdata.xml @@ -65,6 +65,19 @@ GPL-3.0 CC0-1.0 + + https://github.com/XargonWan/RetroDECK/releases/tag/0.6.4b + +

New features - General:

+
    +
  • Added CEMU, WiiU Emulator
  • +
+

Bug fixes and other changes:

+
    +
  • PLACEHOLDER
  • +
+
+
https://github.com/XargonWan/RetroDECK/releases/tag/0.6.5b