Concerned_Hobbit

opengl_undo.cmd

Dec 5th, 2013
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.06 KB | None | 0 0
  1. @echo off
  2. color 0a
  3.  
  4. echo Undoing Starbound OpenGL Conversion...
  5. If exist "C:\Program Files\Steam\" goto WIN32
  6. If exist "C:\Program Files (x86)\Steam" goto WIN64
  7.  
  8. :WIN32
  9. set "sbpath=C:\Program Files\Steam\"
  10. set "winpath=C:\Program Files\Steam\SteamApps\common\Starbound\win32\"
  11. echo Steam detected in '%sbpath%'
  12. echo Searching for Starbound Installation
  13. If not exist "%winpath%" goto nostarbound
  14. If exist "%winpath%opengl_converter" goto run
  15. echo You have not run OpenGL Converter!
  16. goto end
  17.  
  18. :WIN64
  19. set "sbpath=C:\Program Files (x86)\Steam\"
  20. set "winpath=C:\Program Files (x86)\Steam\SteamApps\common\Starbound\win32\"
  21. echo Steam detected in '%sbpath%'
  22. echo Searching for Starbound Installation
  23. If not exist "%winpath%" goto nostarbound
  24. If exist "%winpath%opengl_converter" goto run
  25. echo You have not run OpenGL Converter!
  26. goto end
  27.  
  28. :nostarbound
  29. echo Starbound not found! Are your folders set up correctly and have you downloaded Starbound?
  30. goto end
  31.  
  32. :run
  33. echo Undoing
  34. echo Removing starbound.exe
  35. del "%winpath%starbound.exe"
  36. echo Making a backup just in case
  37. mkdir "%winpath%backup"
  38. copy /-y "%winpath%opengl_converter\starbound_opengl.exe" "%winpath%backup\starbound_opengl.exe"
  39. copy /-y "%winpath%opengl_converter\starbound.exe" "%winpath%backup\starbound.exe"
  40. echo Copying files
  41. copy /-y "%winpath%opengl_converter\starbound_opengl.exe" "%winpath%starbound_opengl.exe"
  42. copy /-y "%winpath%opengl_converter\starbound.exe" "%winpath%starbound.exe"
  43. rd /S /Q "%winpath%opengl_converter\"
  44. goto done
  45.  
  46. :done
  47. echo Done!
  48. echo I have removed all folders created by OpenGL Converter and reverted all files back to their default states.
  49. echo You can manually check that everything is ok by going to
  50. echo %winpath%
  51. echo And making sure that both starbound.exe and starbound_opengl.exe are there!
  52. echo I have kept a backup, just in case, in
  53. echo %winpath%backup
  54. echo DO NOT DELETE THAT FOLDER!
  55. echo Otherwise you may have to redownload the game if starbound.exe gets removed.
  56. goto end
  57.  
  58. :end
  59. echo Script made by Concerned Hobbit for the Starbound forums.
  60. pause
Advertisement
Add Comment
Please, Sign In to add comment