Created
November 21, 2018 23:14
-
-
Save Daodan317081/d31a22f3532740a2a84493d93efc0006 to your computer and use it in GitHub Desktop.
A script to automate the update of ReShade.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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