mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2025-05-06 00:12:49 +00:00
checkInstalledEmus
This commit is contained in:
parent
d9117d2324
commit
d870f51899
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
checkInstalledEmus(){
|
checkInstalledEmus(){
|
||||||
|
|
||||||
#Add Emulators that are supposed to be installed
|
#Add Emulators that are supposed to be installed
|
||||||
if $doInstallRA; then
|
if $doInstallRA; then
|
||||||
emuList+=("RetroArch")
|
emuList+=("RetroArch")
|
||||||
fi
|
fi
|
||||||
@ -12,12 +12,6 @@ checkInstalledEmus(){
|
|||||||
if $doInstallRPCS3; then
|
if $doInstallRPCS3; then
|
||||||
emuList+=("RPCS3")
|
emuList+=("RPCS3")
|
||||||
fi
|
fi
|
||||||
if $doInstallYuzu; then
|
|
||||||
emuList+=("Yuzu")
|
|
||||||
fi
|
|
||||||
if $doInstallCitra; then
|
|
||||||
emuList+=("Citra")
|
|
||||||
fi
|
|
||||||
if $doInstallDuck; then
|
if $doInstallDuck; then
|
||||||
emuList+=("DuckStation")
|
emuList+=("DuckStation")
|
||||||
fi
|
fi
|
||||||
@ -41,21 +35,57 @@ checkInstalledEmus(){
|
|||||||
fi
|
fi
|
||||||
if $doInstallMAME; then
|
if $doInstallMAME; then
|
||||||
emuList+=("MAME")
|
emuList+=("MAME")
|
||||||
fi
|
fi
|
||||||
|
if $doInstallAzahar; then
|
||||||
|
emuList+=("Azahar")
|
||||||
|
fi
|
||||||
|
if $doInstallRMG; then
|
||||||
|
emuList+=("RMG")
|
||||||
|
fi
|
||||||
|
if $doInstallScummVM; then
|
||||||
|
emuList+=("ScummVM")
|
||||||
|
fi
|
||||||
|
if $doInstallVita3K; then
|
||||||
|
emuList+=("Vita3K")
|
||||||
|
fi
|
||||||
|
if $doInstallMGBA; then
|
||||||
|
emuList+=("mGBA")
|
||||||
|
fi
|
||||||
|
if $doInstallFlycast; then
|
||||||
|
emuList+=("Flycast")
|
||||||
|
fi
|
||||||
|
if $doInstallmelonDS; then
|
||||||
|
emuList+=("melonDS")
|
||||||
|
fi
|
||||||
|
if $doInstallBigPEmu; then
|
||||||
|
emuList+=("BigPEmu")
|
||||||
|
fi
|
||||||
|
if $doInstallSupermodel; then
|
||||||
|
emuList+=("Supermodel")
|
||||||
|
fi
|
||||||
|
if $doInstallXenia; then
|
||||||
|
emuList+=("Xenia")
|
||||||
|
fi
|
||||||
|
if $doInstallModel2; then
|
||||||
|
emuList+=("Model2")
|
||||||
|
fi
|
||||||
|
if $doInstallShadPS4; then
|
||||||
|
emuList+=("ShadPS4")
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
errorOnInstall=false
|
errorOnInstall=false
|
||||||
errosOnInstallDetailed=""
|
errosOnInstallDetailed=""
|
||||||
|
|
||||||
for emu in "${emuList[@]}"
|
for emu in "${emuList[@]}"
|
||||||
do
|
do
|
||||||
if ! ${emu}_IsInstalled; then
|
if ! ${emu}_IsInstalled; then
|
||||||
errorOnInstall=true
|
errorOnInstall=true
|
||||||
errosOnInstallDetailed+="${emu}\n"
|
errosOnInstallDetailed+="${emu}\n"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if $errorOnInstall; then
|
if $errorOnInstall; then
|
||||||
text="$(printf "<b>We have found the following emulators were not installed:</b>\n\n ${errosOnInstallDetailed}\n\n You may try again, make sure your Internet Connection is working properly")"
|
text="$(printf "<b>We have found the following emulators were not installed:</b>\n\n ${errosOnInstallDetailed}\n\n You may try again, make sure your Internet Connection is working properly")"
|
||||||
zenity --error \
|
zenity --error \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user