196,6 → 196,9 |
goto :eof |
|
:novacagrp |
set megaton=Steam\SteamApps\common\Duke Nukem 3D\gameroot\addons\vacation.grp |
if exist "%ProgramFiles%\%megaton%" copy "%ProgramFiles%\%megaton%" .\ && call :conprotect && goto novacagrp_done |
if exist "%ProgramFiles(x86)%\%megaton%" copy "%ProgramFiles(x86)%\%megaton%" .\ && call :conprotect && goto novacagrp_done |
echo. |
echo Error: You don't have VACATION.GRP in your directory. |
echo. |
345,6 → 348,8 |
if exist "%exedir%\%vacagrpname%" chdir /d %exedir% |
echo ea0a9a77b9aee6edce76afa19eaea3a810fb2390 *%vacagrpname% | "%sha1sum%" --status --check - |
if "%ERRORLEVEL%"=="0" set version=full && popd && goto :eof |
if "%ERRORLEVEL%"=="1" echo 65b8b787616ed637f86cfcaa90de24c8e65b3dcc *%vacagrpname% | "%sha1sum%" --status --check - |
if "%ERRORLEVEL%"=="0" set version=megaton && call :conprotect && popd && goto :eof |
if "%ERRORLEVEL%"=="1" set version=unknown |
popd |
goto :eof |
351,6 → 356,7 |
|
:grpchecksum_results |
if "%version%"=="full" echo VACATION.GRP checksum verified. |
if "%version%"=="megaton" echo VACATION.GRP (Megaton Edition) checksum verified. |
if "%version%"=="unknown" echo VACATION.GRP checksum does not match. You may have a bad copy. |
echo. |
goto :eof |
489,15 → 495,20 |
if exist VDragon.con goto confound |
if exist VSeagull.con goto confound |
:confound_done |
chdir /d "%exedir%" |
if not exist GAME.CON "%kextract%" DUKE3D.GRP GAME.CON |
if not exist DEFS.CON "%kextract%" DUKE3D.GRP DEFS.CON |
if not exist USER.CON "%kextract%" DUKE3D.GRP USER.CON |
call :conprotect |
chdir /d "%addondir%" |
echo. |
pause |
goto restart |
|
:conprotect |
pushd "%exedir%" |
if not exist GAME.CON "%kextract%" DUKE3D.GRP GAME.CON |
if not exist DEFS.CON "%kextract%" DUKE3D.GRP DEFS.CON |
if not exist USER.CON "%kextract%" DUKE3D.GRP USER.CON |
popd |
goto :eof |
|
:checksum |
if not exist "%sha1sum%" ( |
echo "%sha1sum%" not found. |