luluco250

ReShade 3.0b5 Environment Creator

Sep 10th, 2016
547
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ::ReShade 3.0b5 Environment Creator
  2.  
  3. @echo off
  4.  
  5. if [%1]==[] goto:noname
  6. set _RESHADE_NAME_=%~n1
  7. goto:havename
  8.  
  9. :noname
  10. echo Reminder you can simply drag and drop the ReShade .dll on this batch file to skip this step.
  11. :tryagain
  12. echo.
  13. echo Select a graphics API:
  14. echo 0 - DirectX 9
  15. echo 1 - DirectX 10/11
  16. echo 2 - OpenGL
  17. echo ReShade 3.0 doesn't natively support DirectX 8 for performance reasons,
  18. echo use an external D3D8-to-D3D9 converter/wrapper if you need it.
  19. set /p _API_=
  20.  
  21. if [%_API_%]==[0] (
  22.     set _RESHADE_NAME_=d3d9
  23.     goto:havename
  24. )
  25. if [%_API_%]==[1] (
  26.     set _RESHADE_NAME_=dxgi
  27.     goto:havename
  28. )
  29. if [%_API_%]==[2] (
  30.     set _RESHADE_NAME_=opengl32
  31.     goto:havename
  32. )
  33.  
  34. echo Invalid API, please try again or press Ctrl+C to quit.
  35. goto:tryagain
  36.  
  37. :havename
  38.  
  39. ::Create folders
  40. md "ReShade\Presets" >nul 2>&1
  41. md "ReShade\Screenshots" >nul 2>&1
  42. md "ReShade\Shaders" >nul 2>&1
  43. md "ReShade\Textures" >nul 2>&1
  44.  
  45. ::Create a default preset file if none exists
  46. if not exist "ReShade\Presets\Default.ini" (
  47.     type NUL > "ReShade\Presets\Default.ini"
  48. )
  49.  
  50. ::Create ReShade game configuration file.
  51. (
  52.     echo [INPUT]
  53.     echo KeyMenu=123,0,0
  54.     echo KeyScreenshot=44,0,0
  55.     echo InputProcessing=1
  56.     echo.
  57.     echo [GENERAL]
  58.     echo PerformanceMode=0
  59.     echo ScreenshotPath=%cd%\ReShade\Screenshots
  60.     echo EffectSearchPaths=%cd%\ReShade\Shaders
  61.     echo TextureSearchPaths=%cd%\ReShade\Textures
  62.     echo PreprocessorDefinitions=RESHADE_DEPTH_LINEARIZATION_FAR_PLANE=1000.0,RESHADE_DEPTH_INPUT_IS_UPSIDE_DOWN=0,RESHADE_DEPTH_INPUT_IS_REVERSED=0,RESHADE_DEPTH_INPUT_IS_LOGARITHMIC=0
  63.     echo TutorialProgress=4
  64.     echo PresetFiles=%cd%\ReShade\Presets\Default.ini
  65.     echo CurrentPreset=0
  66.     echo ScreenshotFormat=1
  67.     echo.
  68.     echo [STYLE]
  69.     echo ColActive=0.313726,0.313726,0.313726
  70.     echo Alpha=0.950000
  71.     echo ColBackground=0.086275,0.086275,0.086275
  72.     echo ColText=0.866667,0.866667,0.866667
  73.     echo ColItemBackground=0.196078,0.196078,0.196078
  74.     echo.
  75. ) > %_RESHADE_NAME_%.ini
  76.  
  77. exit
RAW Paste Data