From 99b3166e83dcd2d5769c9843fe0c80d5764ebb38 Mon Sep 17 00:00:00 2001 From: GloriousEggroll Date: Wed, 24 Jan 2024 11:28:15 -0700 Subject: [PATCH] pas ULWGL_ID as gameid envvar and check if the second part of it is a numerical value. If it is, then it's a steam id and pass that as the SteamAppId and compat id --- gamelauncher.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gamelauncher.sh b/gamelauncher.sh index acd7c2e..b6d05ae 100755 --- a/gamelauncher.sh +++ b/gamelauncher.sh @@ -16,7 +16,12 @@ if [[ $WINEPREFIX ]]; then touch "$WINEPREFIX"/tracked_files fi export PROTONPATH="$PROTONPATH" +export ULWGL_ID="$GAMEID" export STEAM_COMPAT_APP_ID="$GAMEID" +numcheck='^[0-9]+$' +if [[ $(cat $ULWGL_ID | cut -d "-" -f 2) =~$numcheck ]]; then + export STEAM_COMPAT_APP_ID=$(cat $ULWGL_ID | cut -d "-" -f 2) +fi export SteamAppId="$STEAM_COMPAT_APP_ID" export STEAM_COMPAT_TOOL_PATHS='' export STEAM_COMPAT_LIBRARY_PATHS=''