mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-21 21:45:39 +00:00
TOOLS: unified all the emulators config in a single script, good idea?
This commit is contained in:
parent
b12fdf0000
commit
14f0c1ab6c
|
@ -84,4 +84,11 @@
|
|||
<nogamecount>true</nogamecount>
|
||||
<nomultiscrape>true</nomultiscrape>
|
||||
</game>
|
||||
</gameList>
|
||||
<game>
|
||||
<path>./configure-emulators.sh</path>
|
||||
<name>Configure Emulators</name>
|
||||
<desc>Choose an emulator to configure.</desc>
|
||||
<nogamecount>true</nogamecount>
|
||||
<nomultiscrape>true</nomultiscrape>
|
||||
</game>
|
||||
</gameList>
|
48
tools/configure-emulators.sh
Normal file
48
tools/configure-emulators.sh
Normal file
|
@ -0,0 +1,48 @@
|
|||
#!/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
|
||||
|
||||
border="$(zenity --list \
|
||||
--title "RetroDECK" \
|
||||
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||
--text="Which emulator do you want to configure?" \
|
||||
--hide-header \
|
||||
--column=Border \
|
||||
"RetroArch" \
|
||||
"Citra" \
|
||||
"Dolphin" \
|
||||
"MelonDS" \
|
||||
"PCSX2" \
|
||||
"PPSSPP" \
|
||||
"RPCS3" \
|
||||
"Yuzu")"
|
||||
|
||||
if [ $border == "RetroArch" ]
|
||||
then
|
||||
retroarch
|
||||
elif [ $border == "Citra" ]
|
||||
then
|
||||
citra-qt
|
||||
elif [ $border == "Dolphin" ]
|
||||
then
|
||||
dolphin-emu
|
||||
elif [ $border == "MelonDS" ]
|
||||
then
|
||||
melonDS
|
||||
elif [ $border == "PCSX2" ]
|
||||
then
|
||||
pcsx2
|
||||
elif [ $border == "PPSSPP" ]
|
||||
then
|
||||
PPSSPPSDL
|
||||
elif [ $border == "RPCS3" ]
|
||||
then
|
||||
rpcs3
|
||||
elif [ $border == "Yuzu" ]
|
||||
then
|
||||
yuzu
|
||||
fi
|
Loading…
Reference in a new issue