CEMU: Added to configurator

This commit is contained in:
XargonWan 2023-04-11 12:12:04 +00:00
parent be123075a5
commit bdbebef584

View file

@ -18,6 +18,7 @@ source /app/libexec/functions.sh
# - Login prompt # - Login prompt
# - Emulator Options (Behind one-time power user warning dialog) # - Emulator Options (Behind one-time power user warning dialog)
# - Launch RetroArch # - Launch RetroArch
# - Launch Cemu
# - Launch Citra # - Launch Citra
# - Launch Dolphin # - Launch Dolphin
# - Launch Duckstation # - Launch Duckstation
@ -38,6 +39,7 @@ source /app/libexec/functions.sh
# - Reset # - Reset
# - Reset Specific Emulator # - Reset Specific Emulator
# - Reset RetroArch # - Reset RetroArch
# - Reset Cemu
# - Reset Citra # - Reset Citra
# - Reset Dolphin # - Reset Dolphin
# - Reset Duckstation # - Reset Duckstation
@ -73,6 +75,7 @@ configurator_reset_dialog() {
--text="Which emulator do you want to reset to default?" \ --text="Which emulator do you want to reset to default?" \
--column="Emulator" --column="Action" \ --column="Emulator" --column="Action" \
"RetroArch" "Reset RetroArch to default settings" \ "RetroArch" "Reset RetroArch to default settings" \
"Cemu" "Reset Cemu to default settings" \
"Citra" "Reset Citra to default settings" \ "Citra" "Reset Citra to default settings" \
"Dolphin" "Reset Dolphin to default settings" \ "Dolphin" "Reset Dolphin to default settings" \
"Duckstation" "Reset Duckstation to default settings" \ "Duckstation" "Reset Duckstation to default settings" \
@ -96,6 +99,16 @@ configurator_reset_dialog() {
fi fi
;; ;;
"Cemu" )
if [[ $(configurator_reset_confirmation_dialog "Cemu" "Are you sure you want to reset the Cemu emulator to default settings?\n\nThis process cannot be undone.") == "true" ]]; then
cemu_init
configurator_process_complete_dialog "resetting $emulator_to_reset"
else
configurator_generic_dialog "Reset process cancelled."
configurator_reset_dialog
fi
;;
"Citra" ) "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 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 citra_init
@ -287,6 +300,7 @@ configurator_power_user_changes_dialog() {
--hide-header \ --hide-header \
--column=emulator \ --column=emulator \
"RetroArch" \ "RetroArch" \
"Cemu" \
"Citra" \ "Citra" \
"Dolphin" \ "Dolphin" \
"Duckstation" \ "Duckstation" \
@ -304,6 +318,10 @@ configurator_power_user_changes_dialog() {
retroarch retroarch
;; ;;
"Cemu" )
Cemu-wrapper
;;
"Citra" ) "Citra" )
citra-qt citra-qt
;; ;;