Skip to content

Commit

Permalink
Hotfixer: early: Handle the amd_fsr_fshack-alternative community patc…
Browse files Browse the repository at this point in the history
…h similarly to the amd_fsr_fshack community patch.

Fixes Frogging-Family/community-patches#120
  • Loading branch information
Tk-Glitch committed Jul 6, 2022
1 parent e125c8d commit f39d6cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wine-tkg-git/wine-tkg-patches/hotfixes/earlyhotfixer
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,13 @@ if [ -d "${srcdir}"/"${_stgsrcdir}" ]; then
fi

# Disable the amd_fsr_fshack patch if _proton_fs_hack is disabled.
if [[ ${_community_patches[*]} =~ "amd_fsr_fshack.mypatch" ]] && [ "$_unfrog" != "true" ]; then
if [[ ${_community_patches[*]} =~ "amd_fsr_fshack.mypatch" ]] || [[ ${_community_patches[*]} =~ "amd_fsr_fshack-alternative.mypatch" ]] && [ "$_unfrog" != "true" ]; then
if [ "$_use_staging" = "true" ] && [ "$_proton_fs_hack" = "true" ]; then
_steamvr_support="true"
elif [ "$_proton_fs_hack" != "true" ] || [ "$_use_staging" != "true" ]; then
warning "Disabling the amd_fsr_fshack community patch because its _proton_fs_hack dependency is disabled"
_community_patches=$(echo $_community_patches | sed "s/amd_fsr_fshack.mypatch//g" | tr -s " ")
_community_patches=$(echo $_community_patches | sed "s/amd_fsr_fshack-alternative.mypatch//g" | tr -s " ")
fi
fi

Expand Down

0 comments on commit f39d6cc

Please sign in to comment.