Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- color 0a
- echo Undoing Starbound OpenGL Conversion...
- If exist "C:\Program Files\Steam\" goto WIN32
- If exist "C:\Program Files (x86)\Steam" goto WIN64
- :WIN32
- set "sbpath=C:\Program Files\Steam\"
- set "winpath=C:\Program Files\Steam\SteamApps\common\Starbound\win32\"
- echo Steam detected in '%sbpath%'
- echo Searching for Starbound Installation
- If not exist "%winpath%" goto nostarbound
- If exist "%winpath%opengl_converter" goto run
- echo You have not run OpenGL Converter!
- goto end
- :WIN64
- set "sbpath=C:\Program Files (x86)\Steam\"
- set "winpath=C:\Program Files (x86)\Steam\SteamApps\common\Starbound\win32\"
- echo Steam detected in '%sbpath%'
- echo Searching for Starbound Installation
- If not exist "%winpath%" goto nostarbound
- If exist "%winpath%opengl_converter" goto run
- echo You have not run OpenGL Converter!
- goto end
- :nostarbound
- echo Starbound not found! Are your folders set up correctly and have you downloaded Starbound?
- goto end
- :run
- echo Undoing
- echo Removing starbound.exe
- del "%winpath%starbound.exe"
- echo Making a backup just in case
- mkdir "%winpath%backup"
- copy /-y "%winpath%opengl_converter\starbound_opengl.exe" "%winpath%backup\starbound_opengl.exe"
- copy /-y "%winpath%opengl_converter\starbound.exe" "%winpath%backup\starbound.exe"
- echo Copying files
- copy /-y "%winpath%opengl_converter\starbound_opengl.exe" "%winpath%starbound_opengl.exe"
- copy /-y "%winpath%opengl_converter\starbound.exe" "%winpath%starbound.exe"
- rd /S /Q "%winpath%opengl_converter\"
- goto done
- :done
- echo Done!
- echo I have removed all folders created by OpenGL Converter and reverted all files back to their default states.
- echo You can manually check that everything is ok by going to
- echo %winpath%
- echo And making sure that both starbound.exe and starbound_opengl.exe are there!
- echo I have kept a backup, just in case, in
- echo %winpath%backup
- echo DO NOT DELETE THAT FOLDER!
- echo Otherwise you may have to redownload the game if starbound.exe gets removed.
- goto end
- :end
- echo Script made by Concerned Hobbit for the Starbound forums.
- pause
Advertisement
Add Comment
Please, Sign In to add comment