Subversion Repositories nw_plus

Compare Revisions

Regard whitespace Rev 30 → Rev 29

/nw_plus/NWinter.bat
5,7 → 5,7
title Duke: Nuclear Winter Plus Launcher
if "%editor%"=="1" title Duke: Nuclear Winter Plus Editor Launcher
 
pushd .
set dir=%cd%
set exedir=%~dp0
set addondir=%~dp0
set addonhrpdir=%~dp0
65,9 → 65,7
goto nonwgrp
) )
 
call :grpchecksum
:nonwgrp_return
if not "%version%"=="demo" (
if not exist nwl1.map goto mapextract
if not exist nwl2.map goto mapextract
if not exist nwl3.map goto mapextract
77,7 → 75,6
if not exist nwl7.map goto mapextract
if not exist nwl8.map goto mapextract
if not exist nwflag_%addonver%.h266 goto updateextract
)
 
 
 
89,10 → 86,6
echo Santa: "setvar skin 1".
echo.
echo.
echo.
echo.
echo.
echo.
 
:init
pause
104,7 → 97,6
echo.
echo Launching Duke Nukem 3D . . .
echo Thanks for %action%^!
echo.
 
if "%editor%"=="1" (
type "%exedir%\names.h" > "%exedir%\NWNames.h"
165,24 → 157,12
type NWINTRO.TXT
echo.
pause
call :grpchecksum
call :grpchecksum_results
goto nonwgrp_return
 
:grpchecksum
echo a6728f621f121f9db02ee67c39efdbb5eea95711 *nwinter.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
if "%ERRORLEVEL%"=="0" set version=full
if "%ERRORLEVEL%"=="1" echo 1b33b2cbb7101b5b18b15855392f55575413ecc3 *nwinter.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
if "%ERRORLEVEL%"=="0" set version=demo
if "%ERRORLEVEL%"=="1" set version=unknown
goto :eof
if "%ERRORLEVEL%"=="0" echo NWINTER.GRP checksum verified.
if "%ERRORLEVEL%"=="1" echo NWINTER.GRP checksum does not match. You may have a bad copy.
goto nonwgrp_return
 
:grpchecksum_results
if "%version%"="full" echo NWINTER.GRP checksum verified.
if "%version%"="demo" echo NWINTER.GRP (demo version) checksum verified.
if "%version%"="unknown" echo NWINTER.GRP checksum does not match. You may have a bad copy.
echo.
goto :eof
 
:cdno
echo '%cddrive%' is not valid. Please try again.
193,7 → 173,7
goto retry
 
:mapextract
echo Extracted maps not found or patched. Proceeding to installation.
echo Extracted maps not found. Proceeding to installation.
goto extract
 
:updateextract
206,8 → 186,6
echo º Installation º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo.
call :grpchecksum
call :grpchecksum_results
if not exist nwl1.patch goto nopatch
if not exist nwl2.patch goto nopatch
if not exist nwl3.patch goto nopatch
302,7 → 280,7
if not exist "%~2" goto :eof
echo %~1 *%~2 | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
if "%ERRORLEVEL%"=="0" (
ren "%~2" "NWOld_%addonver%_%~nx2"
ren "%~2" "NWOld_%~nx2"
echo %~3 %~nx2
)
goto :eof
417,11 → 395,10
 
:end
echo.
set version=
set editor=
set xxx=
set dp=
set debug=
popd
set editor=0
set xxx=0
set dp=0
set debug=0
cd %dir%
@title %ComSpec%
@color 07