Skip to content

Commit

Permalink
fix installRSdll
Browse files Browse the repository at this point in the history
  • Loading branch information
zany130 committed Nov 8, 2022
1 parent da57b7b commit 43bb296
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -7470,7 +7470,7 @@ function overrideReShadeVersion
RESHADEVERSIONS="5.4.2!5.0.0!4.2.0!3.5.3" # List some hardcoded reshade versions to selct for the override #TODO replace with a auto poplating list based on the last few releses

if ! [ "$RSVERSOVRD" -eq "0" ]; then
writelog "INFO" "ReShade version - Set to '$RSVERSOVRD'"
writelog "INFO" "Overriding ReShade version - Set to '$RSVERSOVRD'"
RSVERS="$RSVERSOVRD"
else
writelog "SKIP" "RSVERSOVRD is set to '$RSVERSOVRD' continue with reshade version - '$RSVERS'"
Expand Down Expand Up @@ -8010,13 +8010,13 @@ function installRSdll {
if [ -n "$2" ] && [ "$2" -eq 1 ]; then
writelog "SKIP" "${FUNCNAME[0]} - Skipping installation of $1 because 'NOD3D9' is enabled"
else
if [ ! -f "$RESHADESRCDIR/$3" ]; then
writelog "SKIP" "${FUNCNAME[0]} - Sourcefile '$RESHADESRCDIR/$3' missing - skipping this file"
if [ ! -f "$RESHADESRCDIR/$RSVERS/$3" ]; then
writelog "SKIP" "${FUNCNAME[0]} - Sourcefile '$RESHADESRCDIR/$RSVERS/$3' missing - skipping this file"
else
cp "$RESHADESRCDIR/$3" "$INSTDESTDIR/$1" >/dev/null 2>/dev/null
cp "$RESHADESRCDIR/$RSVERS/$3" "$INSTDESTDIR/$1" >/dev/null 2>/dev/null
echo "$1" >> "$INSTDESTDIR/$RSTXT"
sort "$INSTDESTDIR/$RSTXT" -u -o "$INSTDESTDIR/$RSTXT"
writelog "INFO" "${FUNCNAME[0]} - Copied '$RESHADESRCDIR/$3' to '$INSTDESTDIR/$1'"
writelog "INFO" "${FUNCNAME[0]} - Copied '$RESHADESRCDIR/$RSVERS/$3' to '$INSTDESTDIR/$1'"
fi
fi
else
Expand All @@ -8027,7 +8027,7 @@ function installRSdll {
writelog "SKIP" "${FUNCNAME[0]} - Destfile '$INSTDESTDIR/$1' already exists in the same version '$RSVERS' - skipping this file"
else
writelog "INFO" "${FUNCNAME[0]} - Destfile '$INSTDESTDIR/$1' already exists, but has a different version - updating"
cp "$RESHADESRCDIR/$3" "$INSTDESTDIR/$1" >/dev/null 2>/dev/null
cp "$RESHADESRCDIR/$RSVERS/$3" "$INSTDESTDIR/$1" >/dev/null 2>/dev/null
fi
fi
fi
Expand Down

0 comments on commit 43bb296

Please sign in to comment.