Skip to content

Instantly share code, notes, and snippets.

@Daodan317081
Created November 21, 2018 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Daodan317081/d31a22f3532740a2a84493d93efc0006 to your computer and use it in GitHub Desktop.
Save Daodan317081/d31a22f3532740a2a84493d93efc0006 to your computer and use it in GitHub Desktop.
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