Subversion Repositories nw_plus

Rev

Rev 63 | Rev 69 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 63 Rev 68
Line 185... Line 185...
185
echo.
185
echo.
186
pause
186
pause
187
goto :eof
187
goto :eof
188
188
189
:nonwgrp
189
:nonwgrp
-
 
190
set megaton=Steam\SteamApps\common\Duke Nukem 3D\gameroot\addons\nwinter.grp
-
 
191
if exist "%ProgramFiles%\%megaton%" copy "%ProgramFiles%\%megaton%" .\ && call :conprotect && goto nonwgrp_done
-
 
192
if exist "%ProgramFiles(x86)%\%megaton%" copy "%ProgramFiles(x86)%\%megaton%" .\ && call :conprotect && goto nonwgrp_done
190
echo.
193
echo.
191
echo Error: You don't have NWINTER.GRP in your directory.
194
echo Error: You don't have NWINTER.GRP in your directory.
192
195
193
196
194
:retry
197
:retry
Line 349... Line 352...
349
if exist NWDPXXX.con goto confound
352
if exist NWDPXXX.con goto confound
350
if exist NWEDuke.con goto confound
353
if exist NWEDuke.con goto confound
351
if exist NWSnow.con goto confound
354
if exist NWSnow.con goto confound
352
if exist NWUser.con goto confound
355
if exist NWUser.con goto confound
353
:confound_done
356
:confound_done
354
chdir /d "%exedir%"
357
call :conprotect
355
if not exist GAME.CON "%kextract%" DUKE3D.GRP GAME.CON
-
 
356
if not exist DEFS.CON "%kextract%" DUKE3D.GRP DEFS.CON
-
 
357
if not exist USER.CON "%kextract%" DUKE3D.GRP USER.CON
-
 
358
chdir /d "%addondir%"
358
chdir /d "%addondir%"
359
echo.
359
echo.
360
pause
360
pause
361
goto restart
361
goto restart
362
362
-
 
363
:conprotect
-
 
364
pushd "%exedir%"
-
 
365
if not exist GAME.CON "%kextract%" DUKE3D.GRP GAME.CON
-
 
366
if not exist DEFS.CON "%kextract%" DUKE3D.GRP DEFS.CON
-
 
367
if not exist USER.CON "%kextract%" DUKE3D.GRP USER.CON
-
 
368
popd
-
 
369
goto :eof
-
 
370
363
:checksum
371
:checksum
364
if not exist "%sha1sum%" (
372
if not exist "%sha1sum%" (
365
echo "%sha1sum%" not found.
373
echo "%sha1sum%" not found.
366
goto :eof
374
goto :eof
367
)
375
)