mirror of
https://github.com/tcsenpai/UWINE.git
synced 2025-06-06 11:35:20 +00:00
try to autoset game install path if one isnt set
This commit is contained in:
parent
99b3166e83
commit
627ed64b93
@ -19,14 +19,18 @@ 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
|
||||
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=''
|
||||
export STEAM_COMPAT_MOUNTS=''
|
||||
export STEAM_COMPAT_INSTALL_PATH="$PROTONPATH"
|
||||
|
||||
if [[ -z $STEAM_COMPAT_INSTALL_PATH ]]; then
|
||||
exepath="$(readlink -f "$1")"
|
||||
gameinstallpath="${exepath%/*}"
|
||||
export STEAM_COMPAT_INSTALL_PATH="$gameinstallpath"
|
||||
fi
|
||||
|
||||
export STEAM_COMPAT_CLIENT_INSTALL_PATH=''
|
||||
export STEAM_COMPAT_DATA_PATH="$WINEPREFIX"
|
||||
export STEAM_COMPAT_SHADER_PATH="$STEAM_COMPAT_DATA_PATH"/shadercache
|
||||
@ -37,6 +41,11 @@ export FONTCONFIG_PATH=''
|
||||
export EXE="$1"
|
||||
shift 1
|
||||
export LAUNCHARGS="$@"
|
||||
|
||||
me="$(readlink -f "$0")"
|
||||
here="${me%/*}"
|
||||
|
||||
export STEAM_COMPAT_TOOL_PATHS="$PROTONPATH:$here"
|
||||
export STEAM_COMPAT_MOUNTS="$PROTONPATH:$here"
|
||||
|
||||
$here/ULWGL --verb=waitforexitandrun -- "$PROTONPATH"/proton waitforexitandrun "$EXE" "$1" "$2" "$3"
|
||||
|
Loading…
x
Reference in New Issue
Block a user