Skip to content

Instantly share code, notes, and snippets.

@withmorten
Last active November 1, 2016 02:35
Show Gist options
  • Save withmorten/f4ab0d3bca13109d7b1a45e08edd62d2 to your computer and use it in GitHub Desktop.
Save withmorten/f4ab0d3bca13109d7b1a45e08edd62d2 to your computer and use it in GitHub Desktop.
custom c&c shockwave launcher
@echo off
set /P c=Do you want Superweapons? [Y/n]
if /I "%c%" NEQ "N" goto :launcher else goto :nosuperweapons
echo Launching Shockwave ...
echo.
:nosuperweapons
move !!!NoSuperWeaponsSHW.gib !!!NoSuperWeaponsSHW.big
:launcher
del Install_Final.bmp 2>NUL
mklink /H Install_Final.bmp Install_Final_shw.bmp
move Data\scripts\MultiplayerScripts.scb Data\scripts\MultiplayerScripts.bcs
move Data\scripts\Scripts.ini Data\scripts\Scripts.nin
move Data\scripts\SkirmishScripts.scb Data\scripts\SkirmishScripts.bcs
move !!!MaxCameraHeightSHW.gib !!!MaxCameraHeightSHW.big
move !HardAIVanilla.big !HardAIVanilla.gib
move !MaxCameraHeightVanilla.big !MaxCameraHeightVanilla.gib
move !NoSuperWeaponsVanilla.big !NoSuperWeaponsVanilla.gib
move !0Shwpatch.gib !0Shwpatch.big
move !Shw_Challenge.gib !Shw_Challenge.big
move !Shw_ini.gib !Shw_ini.big
move !Shw_maps.gib !Shw_maps.big
move !Shw_scripts.gib !Shw_scripts.big
move !Shw_wnd.gib !Shw_wnd.big
move !Shw2DArt.gib !Shw2DArt.big
move !ShwAudio.gib !ShwAudio.big
move !ShwTextures.gib !ShwTextures.big
move !ShwVoice.gib !ShwVoice.big
move !ShwW3D.gib !ShwW3D.big
echo.
echo This window will close automatically after you exit the game. If you see any errors, ignore them, they're nothing to worry about.
echo.
generals.exe
echo.
echo Moving files back ...
echo.
del Install_Final.bmp
mklink /H Install_Final.bmp Install_Final_vanilla.bmp
move !!!MaxCameraHeightSHW.big !!!MaxCameraHeightSHW.gib
move !!!NoSuperWeaponsSHW.big !!!NoSuperWeaponsSHW.gib
move !0Shwpatch.big !0Shwpatch.gib
move !Shw_Challenge.big !Shw_Challenge.gib
move !Shw_ini.big !Shw_ini.gib
move !Shw_maps.big !Shw_maps.gib
move !Shw_scripts.big !Shw_scripts.gib
move !Shw_wnd.big !Shw_wnd.gib
move !Shw2DArt.big !Shw2DArt.gib
move !ShwAudio.big !ShwAudio.gib
move !ShwTextures.big !ShwTextures.gib
move !ShwVoice.big !ShwVoice.gib
move !ShwW3D.big !ShwW3D.gib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment