Subversion Repositories nw_plus

Compare Revisions

Regard whitespace Rev 12 → Rev 13

/nw_plus/NW_Mapster32.bat
1,8 → 1,39
@echo off
 
set mapster32dir=%~dp0
set nwdir=%~dp0
set nwhrpdir=%~dp0
 
:recheck
if not exist mapster32.exe goto mapster32check
:mapster32check_done
start mapster32 /jnw_plus -hnwinter.def -gNWINTER.GRP %*
set mapster32dir=%cd%
if "%debug%"=="1" echo DEBUG: Mapster32 Directory: "%mapster32dir%"
 
if exist nwinter_hrp set nwhrpdir=%cd%
:nwdircheck
cd nw_plus
set nwdir=%cd%
if exist nwinter_hrp set nwhrpdir=%cd%
if exist nw_plus goto nwdircheck
if "%debug%"=="1" echo DEBUG: NW+ Directory: "%nwdir%".
if "%debug%"=="1" echo DEBUG: NWHRP Directory: "%nwhrpdir%".
 
cd "%mapster32dir%"
 
if exist duke3d_hrp.zip set hrp=-gduke3d_hrp.zip
if exist hrp_update.zip set hrpu=-ghrp_update.zip
 
set args=-j"%nwdir%" -j"%nwhrpdir%" -hnwinter.def -gnwinter.grp %hrp% %hrpu% %*
set exe=mapster32
if "%debug%"=="1" set exe=mapster32.debug
 
if exist %exe%.bat (
call %exe%.bat %args%
) else (
%exe%.exe %args%
)
 
goto end
 
:mapster32check