Skip to content

Commit

Permalink
update & uninstall shadps4
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonDorise committed Dec 26, 2024
1 parent 9c45f61 commit 6798443
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 50 deletions.
16 changes: 16 additions & 0 deletions tools/binupdate/binupdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,17 @@ function runBinDownloads {
messages+=("There was a problem updating RPCS3")
fi
fi
if [[ "$binsToDL" == *"ShadPS4"* ]]; then
((progresspct += pct)) || true
echo "$progresspct"
echo "# Updating ShadPS4"
if ShadPS4_install "true" 2>&1; then
messages+=("ShadPS4 Updated Successfully")
else
messages+=("There was a problem updating ShadPS4")
fi
fi

if [[ "$binsToDL" == *"Ryujinx"* ]]; then
((progresspct += pct)) || true
echo "$progresspct"
Expand Down Expand Up @@ -269,6 +280,11 @@ if [ "$(RPCS3_IsInstalled ""$emuDeckEmuTypeAppImage"")" == "true" ]; then
else
binTable+=(FALSE "RPCS3" "Sony PlayStation 3")
fi
if [ "$(ShadPS4_IsInstalled ""$emuDeckEmuTypeAppImage"")" == "true" ]; then
binTable+=(TRUE "ShadPS4" "Sony PlayStation 4")
else
binTable+=(FALSE "ShadPS4" "Sony PlayStation 4")
fi
if [ "$(Ryujinx_IsInstalled ""$emuDeckEmuTypeBinary"")" == "true" ]; then
binTable+=(TRUE "Ryujinx" "Nintendo Switch")
else
Expand Down
114 changes: 64 additions & 50 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ doUninstallPPSSPP=true
doUninstallPrimeHacks=true
doUninstallRMG=true
doUninstallRPCS3=true
doUninstallShadPS4=true
doUninstallRyujinx=true
doUninstallScummVM=true
doUninstallSRM=true
Expand Down Expand Up @@ -154,50 +155,50 @@ fi
flatpak uninstall re.chiaki.Chiaki -y
rm -f "$romsPath/remoteplay/Chiaki Remote Play Client.sh" &> /dev/null
rm -rf "$HOME/.var/app/re.chiaki.Chiaki" &> /dev/null
fi
fi

if [[ "$RPUninstall" != *"chiaki-ng"* ]]; then
if [[ "$RPUninstall" != *"chiaki-ng"* ]]; then
rm -f "$HOME/Applications/chiaki-ng.AppImage" &> /dev/null
rm -rf "$HOME/.config/Chiaki/" &> /dev/null
rm -rf "$HOME/.cache/Chiaki/" &> /dev/null
rm -f "$romsPath/remoteplay/chiaki-ng.sh" &> /dev/null
rm -rf "$HOME/.local/share/applications/chiaki-ng.desktop" &> /dev/null
fi
fi

if [[ "$RPUninstall" != *"Greenlight"* ]]; then
if [[ "$RPUninstall" != *"Greenlight"* ]]; then
rm -f "$HOME/Applications/Greenlight.AppImage" &> /dev/null
rm -f "$romsPath/remoteplay/Greenlight.sh" &> /dev/null
rm -rf "$HOME/.config/greenlight/" &> /dev/null
rm -rf "$HOME/.local/share/applications/Greenlight.desktop" &> /dev/null
fi
fi

if [[ "$RPUninstall" != *"Moonlight Game Streaming"* ]]; then
if [[ "$RPUninstall" != *"Moonlight Game Streaming"* ]]; then
flatpak uninstall com.moonlight_stream.Moonlight -y
rm -f "$romsPath/remoteplay/Moonlight Game Streaming.sh" &> /dev/null
rm -rf "$HOME/.var/app/com.moonlight_stream.Moonlight" &> /dev/null
fi
fi

if [[ "$RPUninstall" != *"Parsec"* ]]; then
if [[ "$RPUninstall" != *"Parsec"* ]]; then
flatpak uninstall com.parsecgaming.parsec -y
rm -f "$romsPath/remoteplay/Parsec.sh" &> /dev/null
rm -rf "$HOME/.var/app/com.parsecgaming.parsec" &> /dev/null
fi
fi

if [[ "$RPUninstall" != *"ShadowPC"* ]]; then
if [[ "$RPUninstall" != *"ShadowPC"* ]]; then
rm -f "$HOME/Applications/ShadowPC.AppImage" &> /dev/null
rm -f "$romsPath/remoteplay/ShadowPC.sh" &> /dev/null
rm -rf "$HOME/.config/shadow/" &> /dev/null
rm -rf "$HOME/.local/share/applications/ShadowPC.desktop" &> /dev/null
fi
fi

if [[ "$RPUninstall" != *"Steam Link"* ]]; then
if [[ "$RPUninstall" != *"Steam Link"* ]]; then
flatpak uninstall com.valvesoftware.SteamLink -y
rm -f "$romsPath/remoteplay/SteamLink.sh" &> /dev/null
rm -rf "$HOME/.var/app/com.valvesoftware.SteamLink" &> /dev/null
fi
fi

fi

fi

if find "$romsPath/generic-applications" -type f -name "*.sh" | grep -q .; then

GAUninstall=$(zenity --list \
Expand All @@ -216,62 +217,62 @@ fi
8 "Tidal" \
9 "Warehouse" )

if [[ "$GAUninstall" != *"Bottles"* ]]; then
if [[ "$GAUninstall" != *"Bottles"* ]]; then
flatpak uninstall com.usebottles.bottles -y
rm -f "$romsPath/generic-applications/Bottles.sh" &> /dev/null
rm -rf "$HOME/.var/app/com.usebottles.bottles" &> /dev/null
fi
fi

if [[ "$GAUninstall" != *"Cider"* ]]; then
if [[ "$GAUninstall" != *"Cider"* ]]; then
flatpak uninstall sh.cider.Cider -y
rm -f "$romsPath/generic-applications/Cider.sh" &> /dev/null
rm -rf "$HOME/.var/app/sh.cider.Cider" &> /dev/null
fi
fi

if [[ "$GAUninstall" != *"Flatseal"* ]]; then
if [[ "$GAUninstall" != *"Flatseal"* ]]; then
flatpak uninstall com.github.tchx84.Flatseal -y
rm -f "$romsPath/generic-applications/Flatseal.sh" &> /dev/null
rm -rf "$HOME/.var/app/com.github.tchx84.Flatseal" &> /dev/null
fi
fi

if [[ "$GAUninstall" != *"Heroic Games Launcher"* ]]; then
rm -f "$HOME/Applications/Heroic-Games-Launcher.AppImage" &> /dev/null
rm -f "$romsPath/generic-applications/Heroic-Games-Launcher.sh" &> /dev/null
rm -rf "$HOME/.config/heroic/" &> /dev/null
rm -rf "$HOME/.local/share/applications/Heroic-Games-Launcher.desktop" &> /dev/null
fi
fi

if [[ "$GAUninstall" != *"Lutris"* ]]; then
if [[ "$GAUninstall" != *"Lutris"* ]]; then
flatpak uninstall net.lutris.Lutris -y
rm -f "$romsPath/generic-applications/Lutris.sh" &> /dev/null
rm -rf "$HOME/.var/app/net.lutris.Lutris" &> /dev/null
fi
fi

if [[ "$GAUninstall" != *"Plexamp"* ]]; then
if [[ "$GAUninstall" != *"Plexamp"* ]]; then
flatpak uninstall com.plexamp.Plexamp -y
rm -f "$romsPath/generic-applications/Plexamp.sh" &> /dev/null
rm -rf "$HOME/.var/app/com.plexamp.Plexamp" &> /dev/null
fi
fi

if [[ "$GAUninstall" != *"Spotify"* ]]; then
if [[ "$GAUninstall" != *"Spotify"* ]]; then
flatpak uninstall com.spotify.Client -y
rm -f "$romsPath/generic-applications/Spotify.sh" &> /dev/null
rm -rf "$HOME/.var/app/com.spotify.Client" &> /dev/null
fi
fi

if [[ "$GAUninstall" != *"Tidal"* ]]; then
if [[ "$GAUninstall" != *"Tidal"* ]]; then
flatpak uninstall com.mastermindzh.tidal-hifi -y
rm -f "$romsPath/generic-applications/Tidal.sh" &> /dev/null
rm -rf "$HOME/.var/app/com.mastermindzh.tidal-hifi" &> /dev/null
fi
fi

if [[ "$GAUninstall" != *"Warehouse"* ]]; then
if [[ "$GAUninstall" != *"Warehouse"* ]]; then
flatpak uninstall io.github.flattool.Warehouse -y
rm -f "$romsPath/generic-applications/Warehouse.sh" &> /dev/null
rm -rf "$HOME/.var/app/io.github.flattool.Warehouse" &> /dev/null
fi
fi

fi
fi


#Emulator selector
Expand Down Expand Up @@ -308,11 +309,12 @@ fi
19 "RPCS3" \
20 "Ryujinx" \
21 "ScummVM" \
22 "Supermodel" \
23 "Vita3K" \
24 "Xemu" \
25 "Xenia" \
26 "Yuzu" )
22 "ShadPS4" \
23 "Supermodel" \
24 "Vita3K" \
25 "Xemu" \
26 "Xenia" \
27 "Yuzu" )

ans=$?

Expand All @@ -323,7 +325,7 @@ fi
fi
if [[ "$emusToUninstall" == *"BigPEmu"* ]]; then
doUninstallBigPEmu=false
fi
fi
if [[ "$emusToUninstall" == *"Cemu"* ]]; then
doUninstallCemu=false
fi
Expand Down Expand Up @@ -372,6 +374,9 @@ fi
if [[ "$emusToUninstall" == *"RPCS3"* ]]; then
doUninstallRPCS3=false
fi
if [[ "$emusToUninstall" == *"ShadPS4"* ]]; then
doUninstallShadPS4=false
fi
if [[ "$emusToUninstall" == *"RMG"* ]]; then
doUninstallRMG=false
fi
Expand Down Expand Up @@ -446,7 +451,7 @@ fi
if [[ "$doUninstallFlycast" == true ]]; then
flatpak uninstall org.flycast.Flycast -y
rm -rf $HOME/.var/app/org.flycast.Flycast &> /dev/null
fi
fi
if [[ "$doUninstallLime3DS" == true ]]; then
rm -rf $HOME/.config/lime3ds-emu/ &> /dev/null
rm -rf $HOME/.local/share/lime3ds-emu &> /dev/null
Expand All @@ -470,7 +475,7 @@ fi
fi
if [[ "$doUninstallModel2" == true ]]; then
find ${romsPath}/model2 -mindepth 1 -name roms -prune -o -exec rm -rf '{}' \; &>> /dev/null
# Leaving this here for Patreon users stuck with the old name.
# Leaving this here for Patreon users stuck with the old name.
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
Expand Down Expand Up @@ -510,6 +515,15 @@ fi
rm -rf $HOME/.local/share/applications/RPCS3.desktop &> /dev/null
rm -rf $HOME/Applications/rpcs3.AppImage &> /dev/null
fi
if [[ "$doUninstallShadPS4" == true ]]; then
# Flatpak
rm -rf $HOME/.config/shadps4 &> /dev/null
# AppImage
rm -rf $HOME/.local/share/shadps4 &> /dev/null
# AppImage
rm -rf $HOME/.local/share/applications/ShadPS4.desktop &> /dev/null
rm -rf $HOME/Applications/shadPS4-qt.AppImage &> /dev/null
fi
if [[ "$doUninstallRyujinx" == true ]]; then
rm -rf $HOME/.config/Ryujinx &> /dev/null
rm -rf $HOME/Applications/publish &> /dev/null
Expand Down Expand Up @@ -653,21 +667,21 @@ fi
# EmulationStation-DE
rm -rf $HOME/.emulationstation
rm -rf "$HOME/ES-DE" &> /dev/null
rm -rf "$toolsPath/EmulationStation-DE.AppImage" &> /dev/null
rm -rf $HOME/Applications/EmulationStation-DE.AppImage &> /dev/null
rm -rf $HOME/Applications/ES-DE.AppImage &> /dev/null
rm -rf "$HOME/.local/share/applications/EmulationStation-DE.desktop" &> /dev/null
rm -rf "$HOME/.local/share/applications/ES-DE.desktop" &> /dev/null
rm -rf "$toolsPath/EmulationStation-DE.AppImage" &> /dev/null
rm -rf $HOME/Applications/EmulationStation-DE.AppImage &> /dev/null
rm -rf $HOME/Applications/ES-DE.AppImage &> /dev/null
rm -rf "$HOME/.local/share/applications/EmulationStation-DE.desktop" &> /dev/null
rm -rf "$HOME/.local/share/applications/ES-DE.desktop" &> /dev/null
# ULWGL
rm -rf "$HOME/.local/share/ULWGL" &> /dev/null
# SteamDeckGyroDSU
rm -rf "$HOME/sdgyrodsu" &> /dev/null
# Pegasus
flatpak uninstall org.pegasus_frontend.Pegasus -y
rm -rf "$HOME/.var/app/org.pegasus_frontend.Pegasus/" &> /dev/null
rm -rf $HOME/Applications/pegasus-fe &> /dev/null
rm -rf $HOME/.config/pegasus-frontend &> /dev/null
rm -rf "$HOME/.local/share/applications/Pegasus.desktop" &> /dev/null
rm -rf "$HOME/.var/app/org.pegasus_frontend.Pegasus/" &> /dev/null
rm -rf $HOME/Applications/pegasus-fe &> /dev/null
rm -rf $HOME/.config/pegasus-frontend &> /dev/null
rm -rf "$HOME/.local/share/applications/Pegasus.desktop" &> /dev/null

echo "90"
echo "# Removing EmuDeck folders";
Expand Down

0 comments on commit 6798443

Please sign in to comment.