mirror of
https://github.com/tcsenpai/UWINE.git
synced 2025-06-06 11:35:20 +00:00
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:
parent
feb79da533
commit
99b3166e83
@ -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=''
|
||||
|
Loading…
x
Reference in New Issue
Block a user