Skip to content

Commit 0ef3102

Browse files
namato1Nick A
andauthored
[Feature]: Game emulators (#1151)
* Mirrored gaming changes * Added game emulators for Playstation 1 and 2, Nintendo Gameboy, DS, GameCube, Wii, Switch, and RetroArch * Added docs * removed ghostty from user guide * added flatpak check before installing * used only AURHelper for Arch * Update retroarch.sh fixed misspelling on melondsds-bin and xmv * Added new emulators * Updated TOML file * fixed typo and script error * modified game emulators to install GUI versions and changed a few that were having issues on Arch * Updated pcsxr depends, removed yabause, updated docs * removed accidental character * Added .cache cleanup for removal * fixed shell check double qoute errors * Added gopher64 and organized emulates based on company * Removed pcsxr (Fails to install), Play! set to flatpak for Arch due to failing install, removed mesen 2 as it is not ready for production * Changed retroarch melonds core to proper core * fixed accidental comment on line in play-emu.sh * Added --clearafter arguement to remove cache. This will save space for those who have smaller drives * fixed cleanafter which was spelled wrong --------- Co-authored-by: Nick A <namato@deloitte.com>
1 parent 66296bd commit 0ef3102

File tree

22 files changed

+1363
-0
lines changed

22 files changed

+1363
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/bin/sh -e
2+
3+
. ../../../common-script.sh
4+
5+
installbsnes() {
6+
printf "%b\n" "${YELLOW}Installing bsnes...${RC}"
7+
if ! command_exists bsnes; then
8+
case "$PACKAGER" in
9+
pacman)
10+
"$AUR_HELPER" -S --needed --noconfirm --cleanafter bsnes-hd
11+
;;
12+
*)
13+
if command_exists flatpak; then
14+
"$ESCALATION_TOOL" flatpak install --noninteractive dev.bsnes.bsnes
15+
fi
16+
exit 1
17+
;;
18+
esac
19+
else
20+
printf "%b\n" "${GREEN}bsnes is already installed.${RC}"
21+
fi
22+
}
23+
24+
uninstallbsnes() {
25+
printf "%b\n" "${YELLOW}Uninstalling bsnes...${RC}"
26+
if command_exists bsnes; then
27+
case "$PACKAGER" in
28+
pacman)
29+
"$AUR_HELPER" -R --noconfirm --cleanafter bsnes-hd
30+
;;
31+
*)
32+
"$ESCALATION_TOOL" flatpak uninstall --noninteractive dev.bsnes.bsnes
33+
exit 1
34+
;;
35+
esac
36+
else
37+
printf "%b\n" "${GREEN}bsnes is not installed.${RC}"
38+
fi
39+
}
40+
41+
main() {
42+
printf "%b\n" "${YELLOW}Do you want to Install or Uninstall bsnes${RC}"
43+
printf "%b\n" "1. ${YELLOW}Install${RC}"
44+
printf "%b\n" "2. ${YELLOW}Uninstall${RC}"
45+
printf "%b" "Enter your choice [1-3]: "
46+
read -r CHOICE
47+
case "$CHOICE" in
48+
1) installbsnes ;;
49+
2) uninstallbsnes ;;
50+
*) printf "%b\n" "${RED}Invalid choice.${RC}" && exit 1 ;;
51+
esac
52+
}
53+
54+
checkEnv
55+
checkEscalationTool
56+
main
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#!/bin/sh -e
2+
3+
. ../../../common-script.sh
4+
5+
installDolphin() {
6+
printf "%b\n" "${YELLOW}Installing Dolphin...${RC}"
7+
if ! command_exists dolphin-emu; then
8+
case "$PACKAGER" in
9+
apt-get|nala|dnf|zypper)
10+
"$ESCALATION_TOOL" "$PACKAGER" install -y dolphin-emu
11+
;;
12+
pacman)
13+
"$AUR_HELPER" -S --needed --noconfirm --cleanafter dolphin-emu
14+
;;
15+
*)
16+
if command_exists flatpak; then
17+
"$ESCALATION_TOOL" flatpak install --noninteractive org.DolphinEmu.dolphin-emu
18+
fi
19+
exit 1
20+
;;
21+
esac
22+
else
23+
printf "%b\n" "${GREEN}Dolphin is already installed.${RC}"
24+
fi
25+
}
26+
27+
uninstallDolphin() {
28+
printf "%b\n" "${YELLOW}Uninstalling Dolphin...${RC}"
29+
if command_exists dolphin-emu; then
30+
case "$PACKAGER" in
31+
apt-get|nala|dnf|zypper)
32+
"$ESCALATION_TOOL" "$PACKAGER" remove -y dolphin-emu
33+
;;
34+
pacman)
35+
"$AUR_HELPER" -R --noconfirm --cleanafter dolphin-emu
36+
;;
37+
*)
38+
"$ESCALATION_TOOL" flatpak uninstall --noninteractive org.DolphinEmu.dolphin-emu
39+
exit 1
40+
;;
41+
esac
42+
else
43+
printf "%b\n" "${GREEN}Dolphin is not installed.${RC}"
44+
fi
45+
}
46+
47+
main() {
48+
printf "%b\n" "${YELLOW}Do you want to Install or Uninstall Dolphin${RC}"
49+
printf "%b\n" "1. ${YELLOW}Install${RC}"
50+
printf "%b\n" "2. ${YELLOW}Uninstall${RC}"
51+
printf "%b" "Enter your choice [1-3]: "
52+
read -r CHOICE
53+
case "$CHOICE" in
54+
1) installDolphin ;;
55+
2) uninstallDolphin ;;
56+
*) printf "%b\n" "${RED}Invalid choice.${RC}" && exit 1 ;;
57+
esac
58+
}
59+
60+
checkEnv
61+
checkEscalationTool
62+
main
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
#!/bin/sh -e
2+
3+
. ../../../common-script.sh
4+
5+
installgopher64() {
6+
printf "%b\n" "${YELLOW}Installing gopher64plus...${RC}"
7+
if ! command_exists gopher64plus; then
8+
case "$PACKAGER" in
9+
apt-get|nala)
10+
"$ESCALATION_TOOL" "$PACKAGER" install -y gopher64
11+
;;
12+
dnf)
13+
"$ESCALATION_TOOL" "$PACKAGER" install -y gopher64
14+
;;
15+
pacman)
16+
"$AUR_HELPER" -S --needed --noconfirm --cleanafter gopher64
17+
;;
18+
*)
19+
if command_exists flatpak; then
20+
"$ESCALATION_TOOL" flatpak install --noninteractive io.github.gopher64.gopher64
21+
fi
22+
exit 1
23+
;;
24+
esac
25+
else
26+
printf "%b\n" "${GREEN}gopher64 is already installed.${RC}"
27+
fi
28+
}
29+
30+
uninstallgopher64() {
31+
printf "%b\n" "${YELLOW}Uninstalling gopher64plus...${RC}"
32+
if command_exists gopher64plus; then
33+
case "$PACKAGER" in
34+
apt-get|nala)
35+
"$ESCALATION_TOOL" "$PACKAGER" uninstall -y gopher64
36+
;;
37+
dnf)
38+
"$ESCALATION_TOOL" "$PACKAGER" uninstall -y gopher64
39+
;;
40+
pacman)
41+
"$AUR_HELPER" -R --noconfirm --cleanafter gopher64
42+
;;
43+
*)
44+
if command_exists flatpak; then
45+
"$ESCALATION_TOOL" flatpak uninstall --noninteractive io.github.gopher64.gopher64
46+
fi
47+
exit 1
48+
;;
49+
esac
50+
else
51+
printf "%b\n" "${GREEN}gopher64plus is not installed.${RC}"
52+
fi
53+
}
54+
55+
main() {
56+
printf "%b\n" "${YELLOW}Do you want to Install or Uninstall gopher64${RC}"
57+
printf "%b\n" "1. ${YELLOW}Install${RC}"
58+
printf "%b\n" "2. ${YELLOW}Uninstall${RC}"
59+
printf "%b" "Enter your choice [1-3]: "
60+
read -r CHOICE
61+
case "$CHOICE" in
62+
1) installgopher64 ;;
63+
2) uninstallgopher64 ;;
64+
*) printf "%b\n" "${RED}Invalid choice.${RC}" && exit 1 ;;
65+
esac
66+
}
67+
68+
checkEnv
69+
checkEscalationTool
70+
main
71+
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/bin/sh -e
2+
3+
. ../../../common-script.sh
4+
5+
installMelonDS() {
6+
printf "%b\n" "${YELLOW}Installing MelonDS...${RC}"
7+
if ! command_exists melonDS; then
8+
case "$PACKAGER" in
9+
pacman)
10+
"$AUR_HELPER" -S --needed --noconfirm --cleanafter melonds-bin
11+
;;
12+
*)
13+
if command_exists flatpak; then
14+
"$ESCALATION_TOOL" flatpak install --noninteractive net.kuribo64.melonDS
15+
fi
16+
exit 1
17+
;;
18+
esac
19+
else
20+
printf "%b\n" "${GREEN}MelonDS is already installed.${RC}"
21+
fi
22+
}
23+
24+
uninstallMelonDS() {
25+
printf "%b\n" "${YELLOW}Uninstalling MelonDS...${RC}"
26+
if command_exists melonDS; then
27+
case "$PACKAGER" in
28+
pacman)
29+
"$AUR_HELPER" -R --noconfirm --cleanafter melonds-bin
30+
;;
31+
*)
32+
"$ESCALATION_TOOL" flatpak uninstall --noninteractive net.kuribo64.melonDS
33+
exit 1
34+
;;
35+
esac
36+
else
37+
printf "%b\n" "${GREEN}MelonDS is not installed.${RC}"
38+
fi
39+
}
40+
41+
main() {
42+
printf "%b\n" "${YELLOW}Do you want to Install or Uninstall MelonDS${RC}"
43+
printf "%b\n" "1. ${YELLOW}Install${RC}"
44+
printf "%b\n" "2. ${YELLOW}Uninstall${RC}"
45+
printf "%b" "Enter your choice [1-3]: "
46+
read -r CHOICE
47+
case "$CHOICE" in
48+
1) installMelonDS ;;
49+
2) uninstallMelonDS ;;
50+
*) printf "%b\n" "${RED}Invalid choice.${RC}" && exit 1 ;;
51+
esac
52+
}
53+
54+
checkEnv
55+
checkEscalationTool
56+
main
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#!/bin/sh -e
2+
3+
. ../../../common-script.sh
4+
5+
installMesen2() {
6+
printf "%b\n" "${YELLOW}Installing Mesen2...${RC}"
7+
if ! command_exists mesen2; then
8+
case "$PACKAGER" in
9+
pacman)
10+
"$AUR_HELPER" -S --needed --noconfirm --cleanafter mesen2-git
11+
;;
12+
*)
13+
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
14+
exit 1
15+
;;
16+
esac
17+
else
18+
printf "%b\n" "${GREEN}Mesen2 is already installed.${RC}"
19+
fi
20+
}
21+
22+
uninstallMesen2() {
23+
printf "%b\n" "${YELLOW}Uninstalling Mesen2...${RC}"
24+
if command_exists mesen2; then
25+
case "$PACKAGER" in
26+
pacman)
27+
"$AUR_HELPER" -R --noconfirm --cleanafter mesen2-git
28+
;;
29+
*)
30+
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
31+
exit 1
32+
;;
33+
esac
34+
else
35+
printf "%b\n" "${GREEN}Mesen2 is not installed.${RC}"
36+
fi
37+
}
38+
39+
main() {
40+
printf "%b\n" "${YELLOW}Do you want to Install or Uninstall Mesen2${RC}"
41+
printf "%b\n" "1. ${YELLOW}Install${RC}"
42+
printf "%b\n" "2. ${YELLOW}Uninstall${RC}"
43+
printf "%b" "Enter your choice [1-3]: "
44+
read -r CHOICE
45+
case "$CHOICE" in
46+
1) installMesen2 ;;
47+
2) uninstallMesen2 ;;
48+
*) printf "%b\n" "${RED}Invalid choice.${RC}" && exit 1 ;;
49+
esac
50+
}
51+
52+
checkEnv
53+
checkEscalationTool
54+
main
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#!/bin/sh -e
2+
3+
. ../../../common-script.sh
4+
5+
installmGBA() {
6+
printf "%b\n" "${YELLOW}Installing mGBA...${RC}"
7+
if ! command_exists mgba; then
8+
case "$PACKAGER" in
9+
apt-get|nala)
10+
"$ESCALATION_TOOL" "$PACKAGER" install -y liblua5.4-dev
11+
"$ESCALATION_TOOL" "$PACKAGER" install -y mgba-qt
12+
;;
13+
pacman)
14+
"$AUR_HELPER" -S --needed --noconfirm --cleanafter lua
15+
"$AUR_HELPER" -S --needed --noconfirm --cleanafter mgba-qt
16+
;;
17+
*)
18+
if command_exists flatpak; then
19+
"$ESCALATION_TOOL" flatpak install --noninteractive io.mgba.mGBA
20+
fi
21+
exit 1
22+
;;
23+
esac
24+
else
25+
printf "%b\n" "${GREEN}mGBA is already installed.${RC}"
26+
fi
27+
}
28+
29+
uninstallmGBA() {
30+
printf "%b\n" "${YELLOW}Uninstalling mGBA...${RC}"
31+
if command_exists mgba; then
32+
case "$PACKAGER" in
33+
apt-get|nala)
34+
"$ESCALATION_TOOL" "$PACKAGER" remove -y mgba-qt
35+
;;
36+
pacman)
37+
"$AUR_HELPER" -R --noconfirm --cleanafter mgba-qt
38+
;;
39+
*)
40+
"$ESCALATION_TOOL" flatpak uninstall --noninteractive io.mgba.mGBA
41+
exit 1
42+
;;
43+
esac
44+
else
45+
printf "%b\n" "${GREEN}mGBA is not installed.${RC}"
46+
fi
47+
}
48+
49+
main() {
50+
printf "%b\n" "${YELLOW}Do you want to Install or Uninstall mGBA${RC}"
51+
printf "%b\n" "1. ${YELLOW}Install${RC}"
52+
printf "%b\n" "2. ${YELLOW}Uninstall${RC}"
53+
printf "%b" "Enter your choice [1-3]: "
54+
read -r CHOICE
55+
case "$CHOICE" in
56+
1) installmGBA ;;
57+
2) uninstallmGBA ;;
58+
*) printf "%b\n" "${RED}Invalid choice.${RC}" && exit 1 ;;
59+
esac
60+
}
61+
62+
checkEnv
63+
checkEscalationTool
64+
main

0 commit comments

Comments
 (0)