Rev 68 | Rev 76 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 68 | Rev 75 | ||
---|---|---|---|
Line 194... | Line 194... | ||
194 | echo. |
194 | echo. |
195 | pause |
195 | pause |
196 | goto :eof |
196 | goto :eof |
197 | 197 | ||
198 | :novacagrp |
198 | :novacagrp |
- | 199 | set megaton=Steam\SteamApps\common\Duke Nukem 3D\gameroot\addons\vacation.grp |
|
- | 200 | if exist "%ProgramFiles%\%megaton%" copy "%ProgramFiles%\%megaton%" .\ && call :conprotect && goto novacagrp_done |
|
- | 201 | if exist "%ProgramFiles(x86)%\%megaton%" copy "%ProgramFiles(x86)%\%megaton%" .\ && call :conprotect && goto novacagrp_done |
|
199 | echo. |
202 | echo. |
200 | echo Error: You don't have VACATION.GRP in your directory. |
203 | echo Error: You don't have VACATION.GRP in your directory. |
201 | echo. |
204 | echo. |
202 | goto ssicheck |
205 | goto ssicheck |
203 | :retry |
206 | :retry |
Line 343... | Line 346... | ||
343 | pushd . |
346 | pushd . |
344 | if exist "%addondir%\%vacagrpname%" chdir /d %addondir% |
347 | if exist "%addondir%\%vacagrpname%" chdir /d %addondir% |
345 | if exist "%exedir%\%vacagrpname%" chdir /d %exedir% |
348 | if exist "%exedir%\%vacagrpname%" chdir /d %exedir% |
346 | echo ea0a9a77b9aee6edce76afa19eaea3a810fb2390 *%vacagrpname% | "%sha1sum%" --status --check - |
349 | echo ea0a9a77b9aee6edce76afa19eaea3a810fb2390 *%vacagrpname% | "%sha1sum%" --status --check - |
347 | if "%ERRORLEVEL%"=="0" set version=full && popd && goto :eof |
350 | if "%ERRORLEVEL%"=="0" set version=full && popd && goto :eof |
- | 351 | if "%ERRORLEVEL%"=="1" echo 65b8b787616ed637f86cfcaa90de24c8e65b3dcc *%vacagrpname% | "%sha1sum%" --status --check - |
|
- | 352 | if "%ERRORLEVEL%"=="0" set version=megaton && call :conprotect && popd && goto :eof |
|
348 | if "%ERRORLEVEL%"=="1" set version=unknown |
353 | if "%ERRORLEVEL%"=="1" set version=unknown |
349 | popd |
354 | popd |
350 | goto :eof |
355 | goto :eof |
351 | 356 | ||
352 | :grpchecksum_results |
357 | :grpchecksum_results |
353 | if "%version%"=="full" echo VACATION.GRP checksum verified. |
358 | if "%version%"=="full" echo VACATION.GRP checksum verified. |
- | 359 | if "%version%"=="megaton" echo VACATION.GRP (Megaton Edition) checksum verified. |
|
354 | if "%version%"=="unknown" echo VACATION.GRP checksum does not match. You may have a bad copy. |
360 | if "%version%"=="unknown" echo VACATION.GRP checksum does not match. You may have a bad copy. |
355 | echo. |
361 | echo. |
356 | goto :eof |
362 | goto :eof |
357 | 363 | ||
358 | 364 | ||
Line 487... | Line 493... | ||
487 | if exist VBeachBall.con goto confound |
493 | if exist VBeachBall.con goto confound |
488 | if exist VBeachBather.con goto confound |
494 | if exist VBeachBather.con goto confound |
489 | if exist VDragon.con goto confound |
495 | if exist VDragon.con goto confound |
490 | if exist VSeagull.con goto confound |
496 | if exist VSeagull.con goto confound |
491 | :confound_done |
497 | :confound_done |
492 | chdir /d "%exedir%" |
498 | call :conprotect |
493 | if not exist GAME.CON "%kextract%" DUKE3D.GRP GAME.CON |
- | |
494 | if not exist DEFS.CON "%kextract%" DUKE3D.GRP DEFS.CON |
- | |
495 | if not exist USER.CON "%kextract%" DUKE3D.GRP USER.CON |
- | |
496 | chdir /d "%addondir%" |
499 | chdir /d "%addondir%" |
497 | echo. |
500 | echo. |
498 | pause |
501 | pause |
499 | goto restart |
502 | goto restart |
500 | 503 | ||
- | 504 | :conprotect |
|
- | 505 | pushd "%exedir%" |
|
- | 506 | if not exist GAME.CON "%kextract%" DUKE3D.GRP GAME.CON |
|
- | 507 | if not exist DEFS.CON "%kextract%" DUKE3D.GRP DEFS.CON |
|
- | 508 | if not exist USER.CON "%kextract%" DUKE3D.GRP USER.CON |
|
- | 509 | popd |
|
- | 510 | goto :eof |
|
- | 511 | ||
501 | :checksum |
512 | :checksum |
502 | if not exist "%sha1sum%" ( |
513 | if not exist "%sha1sum%" ( |
503 | echo "%sha1sum%" not found. |
514 | echo "%sha1sum%" not found. |
504 | goto :eof |
515 | goto :eof |
505 | ) |
516 | ) |