Skip to content

Commit

Permalink
ReShade: Use ALTEXEPATH to install ReShade DLLs for Custom Commands…
Browse files Browse the repository at this point in the history
… with `ONLY_CUSTOMCMD=1` (#1092)
  • Loading branch information
sonic2kk authored Apr 22, 2024
1 parent 384544d commit 5b5b086
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit 5b5b086

Please sign in to comment.