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

This commit is contained in:
GloriousEggroll 2024-01-24 11:28:15 -07:00
parent feb79da533
commit 99b3166e83

View File

@ -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=''