simons-public / protonfixes

A module for applying fixes at runtime to unsupported games with Steam Proton without changing game installation files
https://simons-public.github.io/protonfixes/
Other
232 stars 117 forks source link

Added STAR WARS™ Galactic Battlegrounds Saga (356500) #171

Open nils-ballmann opened 2 years ago

nils-ballmann commented 2 years ago

I have based this on my (tested) gist.

But as soldier_protonfixify seems to be broken with (at least) version 0.20220131.0 of soldier I'm not sure how to test. I tried to fix the line 11 by applying this patch

diff --git a/scripts/soldier_protonfixify b/scripts/soldier_protonfixify
index 53a45ed..4c5f3f3 100755
--- a/scripts/soldier_protonfixify
+++ b/scripts/soldier_protonfixify
@@ -8,7 +8,11 @@ set -euo pipefail
 DEBIAN_REPO_BASE="https://deb.debian.org/debian/pool/"
 BASE_DIR="${1}"
 PROTONFIXES_DIR="${2}"
-BUILD_ID="$(cat ${1}/com.valvesoftware.SteamRuntime.Platform-amd64,i386-soldier-buildid.txt)"
+if [ -f "${1}/com.valvesoftware.SteamRuntime.Platform-amd64,i386-soldier-buildid.txt" ]; then
+    BUILD_ID="$(cat ${1}/com.valvesoftware.SteamRuntime.Platform-amd64,i386-soldier-buildid.txt)"
+else
+    BUILD_ID="$(grep soldier ${1}/VERSIONS.txt | cut -f2)"
+fi
 LOGFILE="/tmp/protonfixify.log"

but unfortunately this seems not to be enough.