Added Ryujinx to the Configurator

This commit is contained in:
XargonWan 2023-09-27 09:36:36 +02:00
parent c8449dd74c
commit e08fb8850e
2 changed files with 29 additions and 27 deletions

View file

@ -539,32 +539,32 @@ prepare_emulator() {
fi fi
fi fi
# if [[ "$emulator" =~ ^(ryujunx|Ryujinx|all)$ ]]; then if [[ "$emulator" =~ ^(ryujunx|Ryujinx|all)$ ]]; then
# if [[ "$action" == "reset" ]]; then # Run reset-only commands if [[ "$action" == "reset" ]]; then # Run reset-only commands
# echo "------------------------" echo "------------------------"
# echo "Initializing RYUJINX" echo "Initializing RYUJINX"
# echo "------------------------" echo "------------------------"
# if [[ $multi_user_mode == "true" ]]; then if [[ $multi_user_mode == "true" ]]; then
# rm -rf "$multi_user_data_folder/$SteamAppUser/config/Ryujinx" rm -rf "$multi_user_data_folder/$SteamAppUser/config/Ryujinx"
# mkdir -p "$multi_user_data_folder/$SteamAppUser/config/Ryujinx/system" mkdir -p "$multi_user_data_folder/$SteamAppUser/config/Ryujinx/system"
# cp -fv $emuconfigs/ryujinx/* "$multi_user_data_folder/$SteamAppUser/config/Ryujinx" cp -fv $emuconfigs/ryujinx/* "$multi_user_data_folder/$SteamAppUser/config/Ryujinx"
# sed -i 's#/home/deck/retrodeck#'$rdhome'#g' "$multi_user_data_folder/$SteamAppUser/config/Ryujinx/Config.json" sed -i 's#/home/deck/retrodeck#'$rdhome'#g' "$multi_user_data_folder/$SteamAppUser/config/Ryujinx/Config.json"
# dir_prep "$multi_user_data_folder/$SteamAppUser/config/Ryujinx" "/var/config/Ryujinx" dir_prep "$multi_user_data_folder/$SteamAppUser/config/Ryujinx" "/var/config/Ryujinx"
# else else
# # removing config directory to wipe legacy files # removing config directory to wipe legacy files
# rm -rf /var/config/Ryujinx rm -rf /var/config/Ryujinx
# mkdir -p /var/config/Ryujinx/system mkdir -p /var/config/Ryujinx/system
# cp -fv $emuconfigs/ryujinx/* /var/config/Ryujinx cp -fv $emuconfigs/ryujinx/* /var/config/Ryujinx
# sed -i 's#/home/deck/retrodeck#'$rdhome'#g' "$ryujinxconf" sed -i 's#/home/deck/retrodeck#'$rdhome'#g' "$ryujinxconf"
# fi fi
# fi fi
# if [[ "$action" == "reset" ]] || [[ "$action" == "postmove" ]]; then # Run commands that apply to both resets and moves if [[ "$action" == "reset" ]] || [[ "$action" == "postmove" ]]; then # Run commands that apply to both resets and moves
# dir_prep "$bios_folder/switch/keys" "/var/config/Ryujinx/system" dir_prep "$bios_folder/switch/keys" "/var/config/Ryujinx/system"
# fi fi
# if [[ "$action" == "postmove" ]]; then # Run only post-move commands if [[ "$action" == "postmove" ]]; then # Run only post-move commands
# sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' "$ryujinxconf" # This is an unfortunate one-off because set_setting_value does not currently support JSON sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' "$ryujinxconf" # This is an unfortunate one-off because set_setting_value does not currently support JSON
# fi fi
# fi fi
if [[ "$emulator" =~ ^(xemu|XEMU|all)$ ]]; then if [[ "$emulator" =~ ^(xemu|XEMU|all)$ ]]; then
if [[ "$action" == "reset" ]]; then # Run reset-only commands if [[ "$action" == "reset" ]]; then # Run reset-only commands

View file

@ -432,7 +432,9 @@ configurator_open_emulator_dialog() {
"Primehack" "Open the Metroid Prime emulator Primehack" \ "Primehack" "Open the Metroid Prime emulator Primehack" \
"RPCS3" "Open the PS3 emulator RPCS3" \ "RPCS3" "Open the PS3 emulator RPCS3" \
"XEMU" "Open the Xbox emulator XEMU" \ "XEMU" "Open the Xbox emulator XEMU" \
"Yuzu" "Open the Switch emulator Yuzu" ) "Yuzu" "Open the Switch emulator Yuzu" \
"Ryujinx" "Open the Switch emulator Ryujinx"
)
case $emulator in case $emulator in