mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2024-05-20 13:17:55 -04:00
d5e8a36b40
* test proton launch for bigpemu * continue working on config * continue with configs * update proton launch with new proton versions * update from old CEMU stuff to be specific to BigPEmu * begin saves and storage config * testing on deck * typo * change proton to 7 only worked for a tester on 7 will figure out updating later. * add ESDE config * update SRM from new update * idk why the rebase didnt delete the file * add jaguarcd to parser * add jaguarcd to esde * update readme * add to all functions * typo and remove vblank * consistency with casing * typo * update order in esde * typo * update esde config script * move esde xml script to config file * unique command letters * lack of sleep typos * woooo typos * fix xml * typo * convert bigpemu script to curl * nyi set folder * fix after pulling from upstream * additional spacing fixes * fix wget and add if statements * missing a space * add review changes * local data * local data * BigPEmu Tidying * Added hotkeys * Added bigpemu.sh to Applications folder * Cleaned up emuDeckBigPEmu.sh * Added icon * Added BigPEmu to binupdate * Add missing fi in binupdate --------- Co-authored-by: Dragoon Dorise <rodrigosedano@me.com> Co-authored-by: rawdatafeel <108900299+rawdatafeel@users.noreply.github.com>
503 lines
17 KiB
Bash
Executable file
503 lines
17 KiB
Bash
Executable file
#!/bin/bash
|
|
source "$HOME/.config/EmuDeck/backend/functions/all.sh"
|
|
|
|
doUninstall=false
|
|
doUninstallares=true
|
|
doUninstallBigPEmu=true
|
|
doUninstallCemu=true
|
|
doUninstallCemuNative=true
|
|
doUninstallCitra=true
|
|
doUninstallDolphin=true
|
|
doUninstallDuck=true
|
|
doUninstallESDE=true
|
|
doUninstallFlycast=true
|
|
doUninstallMame=true
|
|
doUninstallmelonDS=true
|
|
doUninstallMGBA=true
|
|
doUninstallModel2=true
|
|
doUninstallRA=true
|
|
doUninstallPCSX2=true
|
|
doUninstallPPSSPP=true
|
|
doUninstallPrimeHacks=true
|
|
doUninstallRMG=true
|
|
doUninstallRPCS3=true
|
|
doUninstallRyujinx=true
|
|
doUninstallScummVM=true
|
|
doUninstallSRM=true
|
|
doUninstallSupermodel=true
|
|
doUninstallVita3K=true
|
|
doUninstallXemu=true
|
|
doUninstallXenia=true
|
|
doUninstallYuzu=true
|
|
|
|
LOGFILE="$HOME/Desktop/emudeck-uninstall.log"
|
|
echo "${@}" > "${LOGFILE}" #might as well log out the parameters of the run
|
|
exec > >(tee "${LOGFILE}") 2>&1
|
|
|
|
#Wellcome
|
|
text="`printf "<b>Hi!</b>\nAre you sure you want to uninstall EmuDeck?\n\nIf you are having issues, visit the EmuDeck Discord or Reddit for support. For links, see: https://www.emudeck.com/#download"`"
|
|
|
|
zenity --question \
|
|
--title="EmuDeck" \
|
|
--width=250 \
|
|
--ok-label="I know what I am doing, I would like to uninstall EmuDeck" \
|
|
--cancel-label="Cancel uninstallation" \
|
|
--text="${text}" &> /dev/null
|
|
ans=$?
|
|
if [ $ans -eq 0 ]; then
|
|
doUninstall=true
|
|
else
|
|
exit
|
|
fi
|
|
|
|
clear
|
|
|
|
if [ "$doUninstall" == true ]; then
|
|
|
|
text="`printf "If you would like to delete all your ROM shortcuts in Steam, click the Launch Steam ROM Manager button below.\n\nOnce Steam ROM Manager is launched, go to Settings and select <b>Remove All added app entries</b>\n\n Exit Steam ROM Manager and click Continue to proceed with uninstalling EmuDeck."`"
|
|
|
|
zenity --question \
|
|
--title="EmuDeck" \
|
|
--width=450 \
|
|
--ok-label="Launch Steam ROM Manager" \
|
|
--cancel-label="Continue" \
|
|
--text="${text}"
|
|
ans=$?
|
|
if [ $ans -eq 0 ]; then
|
|
kill -15 "$(pidof steam)"
|
|
$toolsPath/Steam ROM Manager.AppImage
|
|
|
|
else
|
|
echo -e "No"
|
|
fi
|
|
|
|
# Decky Loader
|
|
|
|
if [[ -f "$HOME/homebrew/services/PluginLoader" ]] ; then
|
|
|
|
text="`printf "An installation of Decky Loader was found on your system. Would you like to open the Decky Loader Uninstallation Tool?"`"
|
|
|
|
zenity --question \
|
|
--title="Decky Loader" \
|
|
--width=450 \
|
|
--ok-label="Launch the Decky Loader Uninstallation Tool" \
|
|
--cancel-label="No, continue with uninstalling EmuDeck" \
|
|
--text="${text}"
|
|
ans=$?
|
|
if [ $ans -eq 0 ]; then
|
|
curl -S -s -L -O --output-dir "$HOME/emudeck" --connect-timeout 30 https://github.com/SteamDeckHomebrew/decky-installer/releases/latest/download/user_install_script.sh
|
|
chmod +x "$HOME/emudeck/user_install_script.sh"
|
|
"$HOME/emudeck/user_install_script.sh"
|
|
|
|
else
|
|
echo -e "No"
|
|
fi
|
|
fi
|
|
|
|
|
|
text="`printf "Do you want the EmuDeck Uninstallation Tool to back up your saves? Your saves will be zipped and placed in your Emulation folder after the uninstallation is complete."`"
|
|
|
|
zenity --question \
|
|
--title="Back Up Saves" \
|
|
--width=450 \
|
|
--ok-label="Yes, back up my saves" \
|
|
--cancel-label="No, continue with uninstalling EmuDeck" \
|
|
--text="${text}"
|
|
ans=$?
|
|
if [ $ans -eq 0 ]; then
|
|
mkdir -p "$emulationPath/EmuDeckSavesBackUp"
|
|
rsync -avh --copy-links "$savesPath" "$emulationPath/EmuDeckSavesBackUp"
|
|
cd "$emulationPath"
|
|
zip -r "EmuDeckSavesBackUp.zip" "EmuDeckSavesBackUp"
|
|
rm -rf "$emulationPath/EmuDeckSavesBackUp" &> /dev/null
|
|
else
|
|
echo -e "No"
|
|
fi
|
|
|
|
text="`printf "Do you want the EmuDeck Uninstallation Tool to back up your BIOS? Your BIOS will be zipped and placed in your Emulation folder after the uninstallation is complete."`"
|
|
|
|
zenity --question \
|
|
--title="Back Up BIOS" \
|
|
--width=450 \
|
|
--ok-label="Yes, back up my BIOS" \
|
|
--cancel-label="No, continue with uninstalling EmuDeck" \
|
|
--text="${text}"
|
|
ans=$?
|
|
if [ $ans -eq 0 ]; then
|
|
mkdir -p "$emulationPath/EmuDeckBIOSBackUp"
|
|
rsync -avh --copy-links "$biosPath" "$emulationPath/EmuDeckBIOSBackUp"
|
|
cd "$emulationPath"
|
|
zip -r "EmuDeckBIOSBackUp.zip" "EmuDeckBIOSBackUp"
|
|
rm -rf "$emulationPath/EmuDeckBIOSBackUp" &> /dev/null
|
|
else
|
|
echo -e "No"
|
|
fi
|
|
|
|
|
|
|
|
#Emulator selector
|
|
text="`printf " <b>The Uninstallation Wizard will uninstall EmuDeck, selected emulators, configuration files, and saved games.</b>\n\n Select which emulators you would like to <b>keep</b> installed.\n\n If you do not select an emulator, everything will be uninstalled except your ROMs and BIOS ( Yuzu firmware will be deleted)."`"
|
|
|
|
emusToUninstall=$(zenity --list \
|
|
--title="EmuDeck" \
|
|
--height=500 \
|
|
--width=250 \
|
|
--ok-label="OK" \
|
|
--cancel-label="Exit" \
|
|
--text="${text}" \
|
|
--checklist \
|
|
--column="" \
|
|
--column="Select which emulators you would like to keep installed" \
|
|
1 "ares" \
|
|
2 "BigPEmu" \
|
|
3 "Cemu" \
|
|
4 "Cemu Native" \
|
|
5 "Citra" \
|
|
6 "Dolphin" \
|
|
7 "Duckstation" \
|
|
8 "Flycast" \
|
|
9 "Mame" \
|
|
10 "melonDS" \
|
|
11 "mGBA" \
|
|
12 "Model2" \
|
|
13 "PCSX2" \
|
|
14 "PPSSPP" \
|
|
15 "PrimeHack" \
|
|
16 "RetroArch"\
|
|
17 "RMG" \
|
|
18 "RPCS3" \
|
|
19 "Ryujinx" \
|
|
20 "ScummVM" \
|
|
21 "Supermodel" \
|
|
22 "Vita3K" \
|
|
23 "Xemu" \
|
|
24 "Xenia" \
|
|
25 "Yuzu" )
|
|
|
|
ans=$?
|
|
|
|
if [ $ans -eq 0 ]; then
|
|
|
|
if [[ "$emusToUninstall" == *"ares"* ]]; then
|
|
doUninstallares=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"BigPEmu"* ]]; then
|
|
doUninstallBigPEmu=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"Cemu"* ]]; then
|
|
doUninstallCemu=false
|
|
fi
|
|
if [[ "${emusToUninstall}" == *"Cemu Native"* ]]; then
|
|
doUninstallCemuNative="false"
|
|
fi
|
|
if [[ "$emusToUninstall" == *"Citra"* ]]; then
|
|
doUninstallCitra=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"Dolphin"* ]]; then
|
|
doUninstallDolphin=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"Duckstation"* ]]; then
|
|
doUninstallDuck=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"Flycast"* ]]; then
|
|
doUninstallFlycast=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"Mame"* ]]; then
|
|
doUninstallMame=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"melonDS"* ]]; then
|
|
doUninstallmelonDS=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"mGBA"* ]]; then
|
|
doUninstallMGBA=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"Model2"* ]]; then
|
|
doUninstallModel2=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"PrimeHack"* ]]; then
|
|
doUninstallPrimeHacks=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"PCSX2"* ]]; then
|
|
doUninstallPCSX2=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"PPSSPP"* ]]; then
|
|
doUninstallPPSSPP=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"RetroArch"* ]]; then
|
|
doUninstallRA=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"RPCS3"* ]]; then
|
|
doUninstallRPCS3=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"RMG"* ]]; then
|
|
doUninstallRMG=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"Ryujinx"* ]]; then
|
|
doUninstallRyujinx=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"ScummVM"* ]]; then
|
|
doUninstallScummVM=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"Supermodel"* ]]; then
|
|
doUninstallSupermodel=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"Vita3K"* ]]; then
|
|
doUninstallVita3K=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"Yuzu"* ]]; then
|
|
doUninstallYuzu=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"Xemu"* ]]; then
|
|
doUninstallXemu=false
|
|
fi
|
|
if [[ "$emusToUninstall" == *"Xenia"* ]]; then
|
|
doUninstallXenia=false
|
|
fi
|
|
else
|
|
exit
|
|
fi
|
|
|
|
#Uninstalling
|
|
|
|
(
|
|
|
|
echo "10"
|
|
echo "# Removing selected Emulators" ;
|
|
|
|
if [[ "$doUninstallares" == true ]]; then
|
|
flatpak uninstall dev.ares.ares -y
|
|
rm -rf $HOME/.var/app/dev.ares.ares &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallBigPEmu" == true ]]; then
|
|
rm -rf $HOME/Applications/BigPEmu &>> /dev/null
|
|
rm -rf $HOME/.local/share/applications/BigPEmu.desktop &>> /dev/null
|
|
fi
|
|
if [[ "$doUninstallCemu" == true ]]; then
|
|
find ${romsPath}/wiiu -mindepth 1 -name roms -prune -o -exec rm -rf '{}' \;
|
|
rm -f "$HOME/.local/share/applications/Cemu (Proton).desktop" &> /dev/null
|
|
fi
|
|
if [[ "${doUninstallCemuNative}" == "true" ]]; then
|
|
rm -rf $HOME/Applications/Cemu*.AppImage &> /dev/null
|
|
rm -rf $HOME/.config/Cemu &> /dev/null
|
|
rm -rf $HOME/.local/share/Cemu &> /dev/null
|
|
rm -rf $HOME/.cache/Cemu &> /dev/null
|
|
rm -rf $HOME/.local/share/applications/Cemu.desktop &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallCitra" == true ]]; then
|
|
flatpak uninstall org.citra_emu.citra -y
|
|
rm -rf $HOME/.var/app/org.citra_emu.citra &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallDolphin" == true ]]; then
|
|
flatpak uninstall org.DolphinEmu.dolphin-emu -y
|
|
rm -rf $HOME/.var/app/org.DolphinEmu.dolphin-emu &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallDuck" == true ]]; then
|
|
flatpak uninstall org.duckstation.DuckStation -y
|
|
rm -rf $HOME/.var/app/org.duckstation.DuckStation &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallFlycast" == true ]]; then
|
|
flatpak uninstall org.flycast.Flycast -y
|
|
rm -rf $HOME/.var/app/org.flycast.Flycast &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallMame" == true ]]; then
|
|
flatpak uninstall org.mamedev.MAME -y
|
|
rm -rf $HOME/.var/app/org.mamedev.MAME &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallmelonDS" == true ]]; then
|
|
flatpak uninstall net.kuribo64.melonDS -y
|
|
rm -rf $HOME/.var/app/net.kuribo64.melonDS &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallMGBA" == true ]]; then
|
|
rm -rf $HOME/Applications/mGBA.AppImage &> /dev/null
|
|
rm -rf $HOME/.config/mgba &> /dev/null
|
|
rm -rf $HOME/.local/share/applications/mGBA.desktop &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallModel2" == true ]]; then
|
|
find ${romsPath}/model2 -mindepth 1 -name roms -prune -o -exec rm -rf '{}' \; &>> /dev/null
|
|
rm -f "$HOME/.local/share/applications/Model 2 (Proton).desktop" &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallPCSX2" == true ]]; then
|
|
rm -rf $HOME/Applications/pcsx2-Qt.AppImage &> /dev/null
|
|
rm -rf $HOME/.config/PCSX2 &> /dev/null
|
|
rm -rf $HOME/.local/share/applications/pcsx2-Qt.desktop &> /dev/null
|
|
rm -rf $HOME/.local/share/applications/PCSX2-Qt.desktop &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallPPSSPP" == true ]]; then
|
|
flatpak uninstall org.ppsspp.PPSSPP -y
|
|
rm -rf $HOME/.var/app/org.ppsspp.PPSSPP &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallPrimeHacks" == true ]]; then
|
|
flatpak uninstall io.github.shiiion.primehack -y
|
|
rm -rf $HOME/.var/app/io.github.shiiion.primehack &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallRA" == true ]]; then
|
|
flatpak uninstall org.libretro.RetroArch -y
|
|
rm -rf $HOME/.var/app/org.libretro.RetroArch &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallRMG" == true ]]; then
|
|
flatpak uninstall com.github.Rosalie241.RMG -y
|
|
rm -rf $HOME/.var/app/com.github.Rosalie241.RMG &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallRPCS3" == true ]]; then
|
|
# Flatpak
|
|
flatpak uninstall net.rpcs3.RPCS3 -y
|
|
rm -rf $HOME/.var/app/net.rpcs3.RPCS3 &> /dev/null
|
|
# AppImage
|
|
rm -rf "$HOME/.config/rpcs3" &> /dev/null
|
|
rm -rf "$HOME/.cache/rpcs3" &> /dev/null
|
|
rm -rf $HOME/.local/share/applications/RPCS3.desktop &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallRyujinx" == true ]]; then
|
|
rm -rf $HOME/.config/Ryujinx &> /dev/null
|
|
rm -rf $HOME/Applications/publish &> /dev/null
|
|
rm -rf $HOME/.local/share/applications/Ryujinx.desktop &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallScummVM" == true ]]; then
|
|
flatpak uninstall org.scummvm.ScummVM -y
|
|
rm -rf $HOME/.var/app/org.scummvm.ScummVM &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallSupermodel" == true ]]; then
|
|
flatpak uninstall com.supermodel3.Supermodel -y
|
|
rm -rf $HOME/.var/app/com.supermodel3.Supermodel &>> /dev/null
|
|
rm -rf $HOME/.supermodel &>> /dev/null
|
|
fi
|
|
if [[ "$doUninstallVita3K" == true ]]; then
|
|
rm -rf $HOME/Applications/Vita3K &> /dev/null
|
|
rm -rf $HOME/.local/share/Vita3K &> /dev/null
|
|
rm -rf $HOME/.local/share/applications/Vita3K.desktop &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallXemu" == true ]]; then
|
|
flatpak uninstall app.xemu.xemu -y
|
|
rm -rf $HOME/.var/app/app.xemu.xemu &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallXenia" == true ]]; then
|
|
find ${romsPath}/xbox360 -mindepth 1 -name roms -prune -o -exec rm -rf '{}' \; &> /dev/null
|
|
rm -rf $HOME/.local/share/applications/xenia.desktop &> /dev/null
|
|
fi
|
|
if [[ "$doUninstallYuzu" == true ]]; then
|
|
#flatpak uninstall org.yuzu_emu.yuzu --system -y
|
|
#rm -rf $HOME/.var/app/org.yuzu_emu.yuzu &> /dev/null
|
|
rm -rf $HOME/Applications/yuzu.AppImage &> /dev/null
|
|
rm -rf $HOME/.config/yuzu &> /dev/null
|
|
rm -rf $HOME/.local/share/yuzu &> /dev/null
|
|
rm -rf $HOME/.cache/yuzu &> /dev/null
|
|
rm -rf $HOME/.local/share/applications/yuzu.desktop &> /dev/null
|
|
fi
|
|
|
|
|
|
echo "55"
|
|
echo "# Removing Cloud Backup";
|
|
|
|
#Backup Service
|
|
systemctl --user disable emudeck_saveBackup.timer && rm "$HOME/.config/systemd/user/emudeck_saveBackup.timer" && rm "$HOME/.config/systemd/user/emudeck_saveBackup.service"
|
|
rm -rf "$HOME/Desktop/SaveBackup.desktop" &> /dev/null
|
|
#CloudSync
|
|
systemctl --user stop "EmuDeckCloudSync.service"
|
|
rm -rf rm -rf "$HOME/.config/systemd/user/EmuDeckCloudSync.service" > /dev/null
|
|
#Emudeck's files
|
|
|
|
|
|
echo "60"
|
|
echo "# Removing Steam Input files";
|
|
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/ares_controller_config.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/cemu_controller_config.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/citra_controller_config.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/duckstation_controller_config.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/emudeck_cloud_controller_config.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/emulationstation-de_controller_config.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/melonds_controller_config.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/mGBA_controller_config.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/pcsx2_controller_config.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/ppsspp_controller_config.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/rmg_controller_config.vdf &> /dev/null
|
|
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/emudeck_cloud_controller_config.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/emudeck_controller_generic.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/emudeck_controller_ps4.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/emudeck_controller_ps5.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/emudeck_controller_steamdeck_nintendo.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/emudeck_controller_steamdeck_proton.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/emudeck_controller_steamdeck.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/emudeck_controller_switch_pro.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/emudeck_controller_xbox360.vdf &> /dev/null
|
|
rm -rf $HOME/.steam/steam/controller_base/templates/emudeck_controller_xboxone.vdf &> /dev/null
|
|
|
|
find "$HOME/.steam/steam/tenfoot/resource/images/library/controller/binding_icons" -name 'EmuDeck*' -exec rm {} \;
|
|
|
|
echo "65"
|
|
echo "# Removing EmuDeck AppImage";
|
|
rm -rf $HOME/emudeck &> /dev/null
|
|
rm -rf $HOME/Desktop/EmuDeckCHD.desktop &> /dev/null
|
|
rm -rf $HOME/Desktop/EmuDeckUninstall.desktop &> /dev/null
|
|
rm -rf $HOME/Desktop/EmuDeck.desktop &> /dev/null
|
|
rm -rf $HOME/Desktop/EmuDeckSD.desktop &> /dev/null
|
|
rm -rf $HOME/Desktop/EmuDeckBinUpdate.desktop &> /dev/null
|
|
rm -rf $HOME/Desktop/SteamRomManager.desktop &> /dev/null
|
|
rm -rf $HOME/Applications/EmuDeck.AppImage &> /dev/null
|
|
rm -rf $HOME/Applications/EmuDeck_SaveSync.AppImage &> /dev/null
|
|
rm -rf $HOME/Applications/RemotePlayWhatever.AppImage &> /dev/null
|
|
rm -rf $HOME/.config/EmuDeck
|
|
|
|
echo "70"
|
|
echo "# Removing Emulators Custom Shortcuts";
|
|
rm -rf $HOME/.local/share/applications/EmuDeck.desktop &> /dev/null
|
|
|
|
echo "80"
|
|
echo "# Removing EmuDeck installed tools: Steam ROM Manager, EmulationStation-DE, ULWGL, and Pegasus";
|
|
# Steam ROM Manager
|
|
rm -rf $HOME/.config/steam-rom-manager
|
|
rm -rf "$toolsPath/Steam ROM Manager.AppImage"
|
|
# Not sure if this was named differently in the past, but Steam ROM Manager.desktop is the current name, leaving both in case.
|
|
rm -rf $HOME/.local/share/applications/SRM.desktop &> /dev/null
|
|
rm -rf "$HOME/.local/share/applications/Steam ROM Manager.desktop" &> /dev/null
|
|
# EmulationStation-DE
|
|
rm -rf $HOME/.emulationstation
|
|
rm -rf "$HOME/.local/share/applications/Steam ROM Manager.desktop" &> /dev/null
|
|
rm -rf "$HOME/.local/share/applications/EmulationStation-DE.desktop" &> /dev/null
|
|
rm -rf "$toolsPath/EmulationStation-DE.AppImage"
|
|
# ULWGL, currently used for the Model 2 Emulator
|
|
rm -rf "$toolsPath/ULWGL"
|
|
# Pegasus
|
|
rm -rf "$HOME/.var/app/org.pegasus_frontend.Pegasus/" &> /dev/null
|
|
rm -rf "$HOME/.local/share/applications/Pegasus.desktop" &> /dev/null
|
|
|
|
echo "90"
|
|
echo "# Removing EmuDeck folders";
|
|
rm -rf $toolsPath
|
|
#rm -rf $biosPath
|
|
rm -rf $savesPath
|
|
rm -rf $storagePath
|
|
rm -rf $ESDEscrapData
|
|
rm -rf "$emulationPath/hdpacks"
|
|
rm -rf "$emulationPath/storage"
|
|
|
|
|
|
|
|
|
|
echo "100"
|
|
echo "# Done";
|
|
) |
|
|
zenity --progress \
|
|
--title="Uninstalling EmuDeck..." \
|
|
--text="..." \
|
|
--percentage=0
|
|
--auto-close
|
|
--width="250"
|
|
|
|
if [ "$?" = -1 ] ; then
|
|
zenity --error \
|
|
--text="Uninstall canceled."
|
|
fi
|
|
|
|
|
|
text="`printf " <b>Done!</b>\n\n Thank you for trying EmuDeck out!\n\nYou will find your ROMs in your Emulation folder. Close the EmuDeck application to complete the uninstallation process"`"
|
|
zenity --info \
|
|
--title="EmuDeck" \
|
|
--width="450" \
|
|
--text="${text}"
|
|
|
|
exit
|
|
|
|
fi
|