5,7 → 5,7 |
title Duke: Nuclear Winter Plus Launcher |
if "%editor%"=="1" title Duke: Nuclear Winter Plus Editor Launcher |
|
set dir=%cd% |
pushd . |
set exedir=%~dp0 |
set addondir=%~dp0 |
set addonhrpdir=%~dp0 |
65,7 → 65,9 |
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 |
75,6 → 77,7 |
if not exist nwl7.map goto mapextract |
if not exist nwl8.map goto mapextract |
if not exist nwflag_%addonver%.h266 goto updateextract |
) |
|
|
|
86,6 → 89,10 |
echo Santa: "setvar skin 1". |
echo. |
echo. |
echo. |
echo. |
echo. |
echo. |
|
:init |
pause |
97,6 → 104,7 |
echo. |
echo Launching Duke Nukem 3D . . . |
echo Thanks for %action%^! |
echo. |
|
if "%editor%"=="1" ( |
type "%exedir%\names.h" > "%exedir%\NWNames.h" |
157,12 → 165,24 |
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" echo NWINTER.GRP checksum verified. |
if "%ERRORLEVEL%"=="1" echo NWINTER.GRP checksum does not match. You may have a bad copy. |
goto nonwgrp_return |
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 |
|
: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. |
173,7 → 193,7 |
goto retry |
|
:mapextract |
echo Extracted maps not found. Proceeding to installation. |
echo Extracted maps not found or patched. Proceeding to installation. |
goto extract |
|
:updateextract |
186,6 → 206,8 |
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 |
280,7 → 302,7 |
if not exist "%~2" goto :eof |
echo %~1 *%~2 | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check - |
if "%ERRORLEVEL%"=="0" ( |
ren "%~2" "NWOld_%~nx2" |
ren "%~2" "NWOld_%addonver%_%~nx2" |
echo %~3 %~nx2 |
) |
goto :eof |
395,10 → 417,11 |
|
:end |
echo. |
set editor=0 |
set xxx=0 |
set dp=0 |
set debug=0 |
cd %dir% |
set version= |
set editor= |
set xxx= |
set dp= |
set debug= |
popd |
@title %ComSpec% |
@color 07 |