Skip to content

Commit

Permalink
fixed PreprocessorDefinitions and ReShade.ini restoration for #383
Browse files Browse the repository at this point in the history
  • Loading branch information
frostworx committed Jan 14, 2022
1 parent a43633d commit feda4a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
PREFIX="/usr"
PROGNAME="SteamTinkerLaunch"
NICEPROGNAME="Steam Tinker Launch"
PROGVERS="v8.1.20220110"
PROGVERS="v8.1.20220114"
PROGCMD="${0##*/}"
SHOSTL="stl"
GHURL="https://github.com"
Expand Down Expand Up @@ -7287,7 +7287,7 @@ function checkReshade {
writelog "SKIP" "${FUNCNAME[0]} - Found a '$FRSINI' without default paths pointing to '$RSSUB' - not touching it"
fi
else
if [ -f "$FRSOINI" ] && grep -q "EffectSearchPaths=.\$RSSUB\Shaders" "$FRSOINI"; then
if [ -f "$FRSOINI" ] && grep -q "EffectSearchPaths=.*$RSSUB.*Shaders" "$FRSOINI"; then
writelog "INFO" "${FUNCNAME[0]} - Re-enabling previously disabled '$FRSOINI'"
mv "$FRSOINI" "$FRSINI"
else
Expand All @@ -7296,6 +7296,7 @@ function checkReshade {
echo "[GENERAL]"
echo "EffectSearchPaths=.\\$RSSUB\Shaders"
echo "TextureSearchPaths=.\\$RSSUB\Textures"
echo "PreprocessorDefinitions=RESHADE_DEPTH_LINEARIZATION_FAR_PLANE=1000.0,RESHADE_DEPTH_INPUT_IS_UPSIDE_DOWN=0,RESHADE_DEPTH_INPUT_IS_REVERSED=1,RESHADE_DEPTH_INPUT_IS_LOGARITHMIC=0"
} > "$FRSINI"
fi
fi
Expand Down

0 comments on commit feda4a4

Please sign in to comment.