From d22f99075c4f9877bc02d254f623bd7b55d07d6c Mon Sep 17 00:00:00 2001 From: moraroy <88516395+moraroy@users.noreply.github.com> Date: Sat, 29 Apr 2023 23:21:01 -0700 Subject: [PATCH] compatabilitytools.d Check - added check to create folder or not --- NonSteamLaunchers.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index e85649d..3f53492 100644 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -26,10 +26,20 @@ else use_separate_appids=false fi -( + echo "0" echo "# Detecting and Installing GE-Proton" +# check to make sure compatabilitytools.d exists and makes it if it doesnt + if [ ! -d "$HOME/.steam/root/compatibilitytools.d" ]; then + mkdir -p "$HOME/.steam/root/compatibilitytools.d" +fi + + + +( + + # Create NonSteamLaunchersInstallation subfolder in Downloads folder mkdir -p ~/Downloads/NonSteamLaunchersInstallation @@ -40,6 +50,13 @@ proton_dir=$(find ~/.steam/root/compatibilitytools.d -maxdepth 1 -type d -name " ge_proton_url1=https://github.com/GloriousEggroll/proton-ge-custom/releases/latest/download/GE-Proton.tar.gz ge_proton_url2=https://github.com/GloriousEggroll/proton-ge-custom/releases/download/GE-Proton7-55/GE-Proton7-55.tar.gz + + + + + + + # Check if GE-Proton is installed if [ -z "$proton_dir" ]; then # Download GE-Proton using the first URL @@ -292,6 +309,8 @@ while true; do # Compare the size of the file with the expected size if [ "$file_size" -eq "$expected_size" ]; then sleep 2 + + # The sizes match echo "The size of the GalaxySetup.exe file matches the expected size." break