5,7 → 5,7 |
title Duke Caribbean: Life's A Beach Plus Launcher |
if "%editor%"=="1" title Duke Caribbean: Life's A Beach Plus Editor Launcher |
|
set dir=%cd% |
pushd . |
set exedir=%~dp0 |
set addondir=%~dp0 |
set addonhrpdir=%~dp0 |
65,7 → 65,9 |
goto novacagrp |
) ) |
|
call :grpchecksum |
:novacagrp_return |
if not "%version%"=="demo" ( |
if not exist vaca1.map goto mapextract |
if not exist vaca2.map goto mapextract |
if not exist vaca3.map goto mapextract |
79,6 → 81,7 |
if not exist vacadm3.map goto mapextract |
if not exist vacadm4.map goto mapextract |
if not exist vacaflag_%addonver%.h266 goto updateextract |
) |
cd "%exedir%" |
echo. |
echo. |
85,8 → 88,11 |
echo. |
echo. |
echo. |
echo. |
echo. |
echo. |
echo. |
|
|
:init |
pause |
echo. |
97,6 → 103,7 |
echo. |
echo Launching Duke Nukem 3D . . . |
echo Thanks for %action%^! |
echo. |
|
if "%editor%"=="1" ( |
type "%exedir%\names.h" > "%exedir%\VacaNames.h" |
245,13 → 252,25 |
goto novacagrp_done |
|
:novacagrp_done |
echo ea0a9a77b9aee6edce76afa19eaea3a810fb2390 *vacation.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check - |
if "%ERRORLEVEL%"=="0" echo VACATION.GRP checksum verified. |
if "%ERRORLEVEL%"=="1" echo VACATION.GRP checksum does not match. You may have a bad copy. |
call :grpchecksum |
call :grpchecksum_results |
goto novacagrp_return |
|
:grpchecksum |
echo ea0a9a77b9aee6edce76afa19eaea3a810fb2390 *vacation.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check - |
if "%ERRORLEVEL%"=="0" set version=full |
if "%ERRORLEVEL%"=="1" set version=unknown |
goto :eof |
|
:grpchecksum_results |
if "%version%"="full" echo VACATION.GRP checksum verified. |
if "%version%"="unknown" echo VACATION.GRP checksum does not match. You may have a bad copy. |
echo. |
goto :eof |
|
|
:mapextract |
echo Extracted maps not found. Proceeding to installation. |
echo Extracted maps not found or patched. Proceeding to installation. |
goto extract |
|
:updateextract |
264,6 → 283,8 |
echo º Installation º |
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ |
echo. |
call :grpchecksum |
call :grpchecksum_results |
if not exist vaca1.patch goto nopatch |
if not exist vaca2.patch goto nopatch |
if not exist vaca3.patch goto nopatch |
394,7 → 415,7 |
if not exist "%~2" goto :eof |
echo %~1 *%~2 | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check - |
if "%ERRORLEVEL%"=="0" ( |
ren "%~2" "VacaOld_%~nx2" |
ren "%~2" "VacaOld_%addonver%_%~nx2" |
echo %~3 %~nx2 |
) |
goto :eof |
519,10 → 540,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 |