RetroDECK/tools/configure-emulators.sh

62 lines
1.3 KiB
Bash
Raw Normal View History

#!/bin/bash
zenity --title "RetroDECK" --question --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --text="Doing some changes in the emulator's configuration may create serious issues,\nplease continue only if you know what you're doing.\n\nDo you want to continue?"
if [ $? == 1 ] #no
then
exit 0
fi
2022-07-04 20:49:58 +00:00
emulator="$(zenity --list \
2022-09-04 19:52:56 +00:00
--width=600 \
--height=350 \
--title "RetroDECK" \
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
--text="Which emulator do you want to configure?" \
--hide-header \
2022-07-04 20:49:58 +00:00
--column=emulator \
"RetroArch" \
"Citra" \
"Dolphin" \
2022-09-04 19:52:56 +00:00
"Duckstation" \
"MelonDS" \
2022-09-04 19:52:56 +00:00
"PCSX2-QT" \
"PCSX2 (Legacy)" \
"PPSSPP" \
"RPCS3" \
"XEMU" \
"Yuzu")"
2022-07-04 20:49:58 +00:00
if [ $emulator == "RetroArch" ]
then
retroarch
2022-07-04 20:49:58 +00:00
elif [ $emulator == "Citra" ]
then
citra-qt
2022-07-04 20:49:58 +00:00
elif [ $emulator == "Dolphin" ]
then
dolphin-emu
2022-09-04 19:52:56 +00:00
elif [ $emulator == "Duckstation" ]
then
duckstation-qt
2022-07-04 20:49:58 +00:00
elif [ $emulator == "MelonDS" ]
then
melonDS
2022-09-04 19:52:56 +00:00
elif [ $emulator == "PCSX2 (Legacy)" ]
then
pcsx2
2022-09-04 19:52:56 +00:00
elif [ $emulator == "pcsx2-qt" ]
then
pcsx2-qt
2022-07-04 20:49:58 +00:00
elif [ $emulator == "PPSSPP" ]
then
PPSSPPSDL
2022-07-04 20:49:58 +00:00
elif [ $emulator == "RPCS3" ]
then
rpcs3
2022-07-04 20:49:58 +00:00
elif [ $emulator == "Yuzu" ]
then
yuzu
elif [ $emulator == "XEMU" ]
then
xemu
fi