diff --git a/setup_vkd3d_proton.sh b/setup_vkd3d_proton.sh index eca3b605..9280eb63 100644 --- a/setup_vkd3d_proton.sh +++ b/setup_vkd3d_proton.sh @@ -120,11 +120,10 @@ installFile() { else rm -v "${dstfile}" fi - $file_cmd "${srcfile}" "${dstfile}" else - echo "${dstfile}: File not found in wine prefix" >&2 - return 1 + touch "${dstfile}.old_none" fi + $file_cmd "${srcfile}" "${dstfile}" fi return 0 } @@ -148,6 +147,10 @@ uninstallFile() { rm -v "${dstfile}" mv -v "${dstfile}.old" "${dstfile}" return 0 + elif [ -f "${dstfile}.old_none" ]; then + rm -v "${dstfile}.old_none" + rm -v "${dstfile}" + return 0 else return 1 fi