mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2024-06-02 19:47:51 -04:00
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:
parent
58d16ad44e
commit
abde918a6f
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue