Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- color 0a
- echo Converting Starbound to OpenGL
- 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
- echo Starbound Installation found. Checking that files have not been modified
- If not exist "%winpath%starbound_opengl.exe" goto openglexe
- If not exist "%winpath%starbound.exe" goto starboundexe
- echo Installation is clean.
- If exist "%winpath%opengl_converter" goto alreadyrun
- echo Starting OpenGL Convertion
- mkdir "%winpath%opengl_converter"
- move /-y "%winpath%starbound_opengl.exe" "%winpath%opengl_converter\starbound_opengl.exe"
- move /-y "%winpath%starbound.exe" "%winpath%opengl_converter\starbound.exe"
- echo Moved files to backup location
- echo Copying OpenGL in place of old starbound.exe
- copy /-y "%winpath%opengl_converter\starbound_opengl.exe" "%winpath%starbound.exe"
- 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
- echo Starbound Installation found. Checking that files have not been modified
- If not exist "%winpath%starbound_opengl.exe" goto openglexe
- If not exist "%winpath%starbound.exe" goto starboundexe
- echo Installation is clean.
- If exist "%winpath%opengl_converter" goto alreadyrun
- echo Starting OpenGL Convertion
- mkdir "%winpath%opengl_converter"
- move /-y "%winpath%starbound_opengl.exe" "%winpath%opengl_converter\starbound_opengl.exe"
- move /-y "%winpath%starbound.exe" "%winpath%opengl_converter\starbound.exe"
- echo Moved files to backup location
- echo Copying OpenGL in place of old starbound.exe
- copy /-y "%winpath%opengl_converter\starbound_opengl.exe" "%winpath%starbound.exe"
- goto done
- goto end
- :openglexe
- echo starbound_opengl.exe has not been found in %winpath%!
- echo This may me a broken installation.
- goto end
- :starboundexe
- echo starbound.exe has not been found in %winpath%!
- echo This may me a broken installation.
- goto end
- :nostarbound
- echo Starbound not found! Are your folders set up correctly and have you downloaded Starbound?
- goto end
- :alreadyrun
- echo You have already run OpenGL Converter!
- echo Please download the undo tool to undo this action.
- goto end
- :done
- echo Done!
- echo You can find your original .exe files in
- echo %winpath%opengl_converter\
- goto end
- :end
- echo Script made by Concerned Hobbit for the Starbound forums.
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement