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
# - Emulator Options (Behind one-time power user warning dialog)
# - Launch RetroArch
# - Launch Cemu
# - Launch Citra
# - Launch Dolphin
# - Launch Duckstation
@ -38,6 +39,7 @@ source /app/libexec/functions.sh
# - Reset
# - Reset Specific Emulator
# - Reset RetroArch
# - Reset Cemu
# - Reset Citra
# - Reset Dolphin
# - Reset Duckstation
@ -73,6 +75,7 @@ configurator_reset_dialog() {
--text="Which emulator do you want to reset to default?" \
--column="Emulator" --column="Action" \
"RetroArch" "Reset RetroArch to default settings" \
"Cemu" "Reset Cemu to default settings" \
"Citra" "Reset Citra to default settings" \
"Dolphin" "Reset Dolphin to default settings" \
"Duckstation" "Reset Duckstation to default settings" \
@ -96,6 +99,16 @@ configurator_reset_dialog() {
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" )
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
@ -287,6 +300,7 @@ configurator_power_user_changes_dialog() {
--hide-header \
--column=emulator \
"RetroArch" \
"Cemu" \
"Citra" \
"Dolphin" \
"Duckstation" \
@ -304,6 +318,10 @@ configurator_power_user_changes_dialog() {
retroarch
;;
"Cemu" )
Cemu-wrapper
;;
"Citra" )
citra-qt
;;