kenshinakh

ToFDX12Switcher

Dec 29th, 2022 (edited)
1,883
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.42 KB | Gaming | 0 0
  1. @echo off
  2.  
  3. echo Tower of Fantasy DX12 Switcher
  4. echo Run in Administrator mode!!!
  5.  
  6. :: Set TOFDIR to your ToF install folder
  7. set TOFDIR=C:\Tower Of Fantasy
  8.  
  9. if not exist "%TOFDIR%\Hotta\Binaries\Win64\QRSL.exe" goto BADDIR
  10.  
  11. echo Install folder: %TOFDIR%
  12.  
  13. echo Commands:
  14. echo 1 - Enable DX12
  15. echo 2 - Revert all changes
  16. echo Q - Quit
  17. echo Enter command:
  18.  
  19. :REQUESTINPUT
  20. set /p input=""
  21.  
  22. echo %input%
  23. if "%input%" == "1" goto ENABLE
  24. if "%input%" == "2" goto DISABLE
  25. if "%input%" == "Q" goto :EOF
  26.  
  27. echo Invalid command. Retry:
  28. goto REQUESTINPUT
  29.  
  30. :ENABLE
  31. echo Enable DX12 requested.
  32. copy /y "%TOFDIR%\Hotta\Binaries\Win64\QRSL.exe" "%TOFDIR%\Hotta\Binaries\Win64\QRSL_dx12.exe"
  33. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\QRSL.exe" /f /v Debugger /t REG_SZ /d "%TOFDIR%\Hotta\Binaries\Win64\QRSL_dx12.exe updater -dx12 """
  34. echo DX12 enabled. Launch game via launcher and enjoy.
  35. pause
  36. goto :EOF
  37.  
  38. :DISABLE
  39. echo Revert all changes requested.
  40. reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\QRSL.exe" /f /v Debugger
  41. del "%TOFDIR%\Hotta\Binaries\Win64\QRSL_dx12.exe"
  42. echo Revert completed.
  43. pause
  44. goto :EOF
  45.  
  46. :BADDIR
  47. echo Invalid ToF install folder, file not found: %TOFDIR%\Hotta\Binaries\Win64\QRSL.exe
  48. echo Edit %0 file and set TOFDIR to point to a ToF install folder (e.g. C:\Tower Of Fantasy)
  49. pause
  50.  
  51.  
Advertisement
Add Comment
Please, Sign In to add comment