Skip to content

Commit

Permalink
setFullGameExePath: Use ALTEXEPATH if defined over CUSTOMCMD path
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic2kk committed Apr 21, 2024
1 parent 8319839 commit aedb64b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -9132,8 +9132,10 @@ 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
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,9 +9584,7 @@ function installRSdll {
function installReshade {
if [ "$USERESHADE" -eq 1 ]; then
prepareReshadeFiles
# setShadDestDir
# Use setShaderDest to avoid overwriting ALTEXEPATH if defined
setShaderDest
setShadDestDir # Have to use setShadDestDir because setShadDest will use ABSGAMEEXEPATH which is not Custom Command

INSTDESTDIR="$SHADDESTDIR"

Expand Down

0 comments on commit aedb64b

Please sign in to comment.