Model 2 Emulator: Delete Proton folder on uninstall

* Proton folder was somehow corrupting in a few installs, added to uninstall function so users can cleanly flush their Model 2 installation
This commit is contained in:
rawdatafeel 2024-05-14 10:23:08 -04:00
parent 58d16ad44e
commit abde918a6f
2 changed files with 13 additions and 1 deletions

View file

@ -112,9 +112,20 @@ Model2_wipeSettings(){
#Uninstall
Model2_uninstall(){
if [ -d "${HOME}/.local/share/Steam" ]; then
STEAMPATH="${HOME}/.local/share/Steam"
elif [ -d "${HOME}/.steam/steam" ]; then
STEAMPATH="${HOME}/.steam/steam"
else
echo "Steam install not found"
fi
setMSG "Uninstalling $Model2_emuName. Saves and ROMs will be retained in the ROMs folder."
find ${romsPath}/model2 -mindepth 1 -name roms -prune -o -exec rm -rf '{}' \; &>> /dev/null
rm -rf "$HOME/.local/share/applications/Model 2 Emulator (Proton).desktop"
rm -rf "$HOME/.local/share/applications/Model 2 Emulator (Proton).desktop" &>> /dev/null
rm -rf "$STEAMPATH/compatibilitytools.d/ULWGL-Proton-8.0-5-3" &>> /dev/null
rm -rf "$HOME/.local/share/ULWGL" &> /dev/null
Model2_wipeSettings
}

View file

@ -325,6 +325,7 @@ fi
rm -f "$HOME/.local/share/applications/Model 2 (Proton).desktop" &> /dev/null
# Current name.
rm -f "$HOME/.local/share/applications/Model 2 Emulator (Proton).desktop" &> /dev/null
rm -rf "$HOME/.steam/steam/compatibilitytools.d/ULWGL-Proton-8.0-5-3"
fi
if [[ "$doUninstallPCSX2" == true ]]; then
rm -rf $HOME/Applications/pcsx2-Qt.AppImage &> /dev/null