Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A script to automate the update of ReShade.
:: This is a script for updating ReShade
::
:: Extract the ReShade dlls from the installer and place them in the same folder as this script.
:: Add the games as shown in the example below.
:: Run the script.
@echo off
SETLOCAL
SET d3d9=d3d9.dll
SET dxgi=dxgi.dll
SET opengl=opengl32.dll
IF NOT EXIST .\ReShade32.dll (
echo ReShade32.dll not found!
EXIT /B 0
)
IF NOT EXIST .\ReShade64.dll (
echo ReShade64.dll not found!
EXIT /B 0
)
:: ----- Example -----
:: SET steam=C:\Program Files (x86)\Steam\steamapps\common //No quotation marks here!
:: CALL :RESHADE32 "%steam%\FolderWithExecutable\%d3d9%" //32bit d3d9.dll
:: CALL :RESHADE64 "%steam%\FolderWithExecutable\%dxgi%" //64bit dxgi.dll
EXIT /B %ERRORLEVEL%
:RESHADE32
echo Installing ReShade32 to "%~1"
copy ".\ReShade32.dll" "%~1"
EXIT /B 0
:RESHADE64
echo Installing ReShade64 to "%~1"
copy ".\ReShade64.dll" "%~1"
EXIT /B 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment