diff --git a/steamtinkerlaunch b/steamtinkerlaunch index 879ecdff..38f64c69 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -7,7 +7,7 @@ PREFIX="/usr" PROGNAME="SteamTinkerLaunch" NICEPROGNAME="Steam Tinker Launch" -PROGVERS="v14.0.20240421-1" +PROGVERS="v14.0.20240423-1" PROGCMD="${0##*/}" PROGINTERNALPROTNAME="Proton-stl" SHOSTL="stl" @@ -9132,8 +9132,11 @@ function ShaderRepoDialog { function setFullGameExePath { if [[ ( "$USECUSTOMCMD" -eq 1 && -f "$CUSTOMCMD" && "$CUSTOMCMDRESHADE" -eq 1 ) || "$ONLY_CUSTOMCMD" -eq 1 ]]; then - FGEP="${CUSTOMCMD%/*}" - + # Use Alternative EXE Path if defined instead of custom command path + # We should only use the custom command directory if no alternatiive EXE path is defined, and + # we should prioritise the alt path if it is defined + DEFINEDALTEXEPATH="$(GETALTEXEPATH)" + FGEP="${DEFINEDALTEXEPATH:-${CUSTOMCMD%/*}}" writelog "INFO" "${FUNCNAME[0]} - Using the directory '$FGEP' of the used custom command as absolute game exe path" if [ "$CUSTOMCMDRESHADE" -eq 1 ]; then @@ -9582,7 +9585,7 @@ function installRSdll { function installReshade { if [ "$USERESHADE" -eq 1 ]; then prepareReshadeFiles - setShadDestDir + setShadDestDir # Have to use setShadDestDir because setShadDest will use ABSGAMEEXEPATH which is not Custom Command INSTDESTDIR="$SHADDESTDIR"